/external/libcxx/test/std/experimental/string.view/string.view.find/ |
D | rfind_char_size.pass.cpp | 23 assert(s.rfind(c, pos) == x); in test() 32 assert(s.rfind(c) == x); in test() 74 static_assert (sv1.rfind( 'b', 0 ) == SV::npos, "" ); in main() 75 static_assert (sv1.rfind( 'b', 1 ) == SV::npos, "" ); in main() 76 static_assert (sv2.rfind( 'b', 0 ) == SV::npos, "" ); in main() 77 static_assert (sv2.rfind( 'b', 1 ) == 1, "" ); in main() 78 static_assert (sv2.rfind( 'b', 2 ) == 1, "" ); in main() 79 static_assert (sv2.rfind( 'b', 3 ) == 1, "" ); in main() 80 static_assert (sv2.rfind( 'b', 4 ) == 1, "" ); in main()
|
D | rfind_pointer_size.pass.cpp | 23 assert(s.rfind(str, pos) == x); in test() 35 assert(s.rfind(str) == x); in test() 164 static_assert (sv1.rfind( "") == 0, "" ); in main() 165 static_assert (sv1.rfind( "abcde") == SV::npos, "" ); in main() 166 static_assert (sv2.rfind( "") == 5, "" ); in main() 167 static_assert (sv2.rfind( "abcde") == 0, "" ); in main() 168 static_assert (sv2.rfind( "abcde", 1) == 0, "" ); in main()
|
D | rfind_string_view_size.pass.cpp | 23 assert(s.rfind(str, pos) == x); in test() 32 assert(s.rfind(str) == x); in test() 157 static_assert (sv1.rfind(sv1) == 0, "" ); in main() 158 static_assert (sv1.rfind(sv2) == SV::npos, "" ); in main() 159 static_assert (sv2.rfind(sv1) == 5, "" ); in main() 160 static_assert (sv2.rfind(sv2) == 0, "" ); in main() 161 static_assert (sv2.rfind(sv2, 1) == 0, "" ); in main()
|
D | rfind_pointer_size_size.pass.cpp | 23 assert(s.rfind(str, pos, n) == x); in test() 384 static_assert (sv1.rfind( "", 0, 0 ) == 0, "" ); in main() 385 static_assert (sv1.rfind( "abcde", 0, 0 ) == 0, "" ); in main() 386 static_assert (sv1.rfind( "abcde", 0, 1 ) == SV::npos, "" ); in main() 387 static_assert (sv2.rfind( "", 0, 0 ) == 0, "" ); in main() 388 static_assert (sv2.rfind( "abcde", 0, 0 ) == 0, "" ); in main() 389 static_assert (sv2.rfind( "abcde", 0, 1 ) == 0, "" ); in main()
|
/external/libweave/third_party/chromium/base/strings/ |
D | string_piece_unittest.cc | 277 ASSERT_EQ(a.rfind(b), 0U); in TYPED_TEST() 278 ASSERT_EQ(a.rfind(b, 1), 0U); in TYPED_TEST() 279 ASSERT_EQ(a.rfind(c), 23U); in TYPED_TEST() 280 ASSERT_EQ(a.rfind(c, 22U), Piece::npos); in TYPED_TEST() 281 ASSERT_EQ(a.rfind(c, 1U), Piece::npos); in TYPED_TEST() 282 ASSERT_EQ(a.rfind(c, 0U), Piece::npos); in TYPED_TEST() 283 ASSERT_EQ(b.rfind(c), Piece::npos); in TYPED_TEST() 284 ASSERT_EQ(b.rfind(c, 0U), Piece::npos); in TYPED_TEST() 285 ASSERT_EQ(a.rfind(d), static_cast<size_t>(a.as_string().rfind(TypeParam()))); in TYPED_TEST() 286 ASSERT_EQ(a.rfind(e), a.as_string().rfind(TypeParam())); in TYPED_TEST() [all …]
|
D | string_piece.h | 58 size_t rfind(const StringPiece& self, const StringPiece& s, size_t pos); 59 size_t rfind(const StringPiece& self, char c, size_t pos); 226 size_type rfind(const BasicStringPiece& s, 228 return internal::rfind(*this, s, pos); 230 size_type rfind(value_type c, size_type pos = BasicStringPiece::npos) const { 231 return internal::rfind(*this, c, pos); 259 return rfind(c, pos);
|
/external/libchrome/base/strings/ |
D | string_piece_unittest.cc | 288 ASSERT_EQ(a.rfind(b), 0U); in TYPED_TEST() 289 ASSERT_EQ(a.rfind(b, 1), 0U); in TYPED_TEST() 290 ASSERT_EQ(a.rfind(c), 23U); in TYPED_TEST() 291 ASSERT_EQ(a.rfind(c, 22U), Piece::npos); in TYPED_TEST() 292 ASSERT_EQ(a.rfind(c, 1U), Piece::npos); in TYPED_TEST() 293 ASSERT_EQ(a.rfind(c, 0U), Piece::npos); in TYPED_TEST() 294 ASSERT_EQ(b.rfind(c), Piece::npos); in TYPED_TEST() 295 ASSERT_EQ(b.rfind(c, 0U), Piece::npos); in TYPED_TEST() 296 ASSERT_EQ(a.rfind(d), static_cast<size_t>(a.as_string().rfind(TypeParam()))); in TYPED_TEST() 297 ASSERT_EQ(a.rfind(e), a.as_string().rfind(TypeParam())); in TYPED_TEST() [all …]
|
D | string_piece.h | 80 BASE_EXPORT size_t rfind(const StringPiece& self, 83 BASE_EXPORT size_t rfind(const StringPiece16& self, 86 BASE_EXPORT size_t rfind(const StringPiece& self, 89 BASE_EXPORT size_t rfind(const StringPiece16& self, 307 size_type rfind(const BasicStringPiece& s, 309 return internal::rfind(*this, s, pos); 311 size_type rfind(value_type c, size_type pos = BasicStringPiece::npos) const { 312 return internal::rfind(*this, c, pos); 340 return rfind(c, pos);
|
D | string_piece.cc | 166 size_t rfind(const StringPiece& self, const StringPiece& s, size_t pos) { in rfind() function 170 size_t rfind(const StringPiece16& self, const StringPiece16& s, size_t pos) { in rfind() function 191 size_t rfind(const StringPiece& self, char c, size_t pos) { in rfind() function 195 size_t rfind(const StringPiece16& self, char16 c, size_t pos) { in rfind() function 310 return rfind(self, s.data()[0], pos); in find_last_of()
|
/external/llvm/unittests/ADT/ |
D | SmallStringTest.cpp | 129 EXPECT_EQ(3U, theString.rfind('l')); in TEST_F() 130 EXPECT_EQ(StringRef::npos, theString.rfind('z')); in TEST_F() 131 EXPECT_EQ(StringRef::npos, theString.rfind("helloworld")); in TEST_F() 132 EXPECT_EQ(0U, theString.rfind("hello")); in TEST_F() 133 EXPECT_EQ(1U, theString.rfind("ello")); in TEST_F() 134 EXPECT_EQ(StringRef::npos, theString.rfind("zz")); in TEST_F()
|
D | StringRefTest.cpp | 361 EXPECT_EQ(3U, Str.rfind('l')); in TEST() 362 EXPECT_EQ(StringRef::npos, Str.rfind('z')); in TEST() 363 EXPECT_EQ(StringRef::npos, Str.rfind("helloworld")); in TEST() 364 EXPECT_EQ(0U, Str.rfind("hello")); in TEST() 365 EXPECT_EQ(1U, Str.rfind("ello")); in TEST() 366 EXPECT_EQ(StringRef::npos, Str.rfind("zz")); in TEST()
|
/external/llvm/include/llvm/ADT/ |
D | SmallString.h | 163 size_t rfind(char C, size_t From = StringRef::npos) const { 164 return str().rfind(C, From); 171 size_t rfind(StringRef Str) const { in rfind() function 172 return str().rfind(Str); in rfind()
|
D | StringRef.h | 272 size_t rfind(char C, size_t From = npos) const { 287 size_t rfind(StringRef Str) const; 314 return rfind(C, From); 536 size_t Idx = rfind(Separator); in rsplit()
|
/external/google-breakpad/src/processor/ |
D | pathname_stripper.cc | 42 string::size_type slash = path.rfind('/'); in File() 43 string::size_type backslash = path.rfind('\\'); in File()
|
/external/chromium-trace/catapult/third_party/pipeline/pipeline/ |
D | util.py | 96 if fq_name.rfind(".") >= 0: 97 (module_name, short_name) = (fq_name[:fq_name.rfind(".")], 98 fq_name[fq_name.rfind(".") + 1:])
|
/external/opencv3/modules/core/include/opencv2/core/ |
D | cvstd.hpp | 534 size_t rfind(const char* s, size_t pos, size_t n) const; 535 size_t rfind(char c, size_t pos = npos) const; 536 size_t rfind(const String& str, size_t pos = npos) const; 537 size_t rfind(const char* s, size_t pos = npos) const; 839 size_t String::rfind(const char* s, size_t pos, size_t n) const in rfind() function in cv::String 853 size_t String::rfind(char c, size_t pos) const in rfind() function in cv::String 855 return rfind(&c, pos, 1); in rfind() 859 size_t String::rfind(const String& str, size_t pos) const in rfind() function in cv::String 861 return rfind(str.c_str(), pos, str.len_); in rfind() 865 size_t String::rfind(const char* s, size_t pos) const in rfind() function in cv::String [all …]
|
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/ |
D | util.py | 209 if fq_name.rfind(".") >= 0: 210 (module_name, short_name) = (fq_name[:fq_name.rfind(".")], 211 fq_name[fq_name.rfind(".") + 1:])
|
/external/skia/src/animator/ |
D | SkTDArray_Experimental.h | 50 int rfind(const int32_t& elem) const; 124 int rfind(const T& elem) const { return SkDS32Array::rfind((const int32_t&) elem); } in rfind() function
|
/external/blktrace/btt/ |
D | btt_plot.py | 79 get_base = lambda file: file[file.find('_')+1:file.rfind('_')] 195 prog = args[0][args[0].rfind('/')+1:] 201 type = prog[prog.rfind('_')+1:prog.rfind('.py')]
|
/external/llvm/utils/ |
D | wciia.py | 31 rpar = filesfolders.rfind(')') 85 rstar = path.rfind('*')
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_rfind/ |
D | char_size.pass.cpp | 24 assert(s.rfind(c, pos) == x); in test() 33 assert(s.rfind(c) == x); in test()
|
/external/regex-re2/util/ |
D | stringpiece.cc | 60 int StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind() function in StringPiece 70 int StringPiece::rfind(char c, size_type pos) const { in rfind() function in StringPiece
|
/external/libcxx/include/experimental/ |
D | string_view | 136 constexpr size_type rfind(basic_string_view s, size_type pos = npos) const noexcept; 137 constexpr size_type rfind(charT c, size_type pos = npos) const noexcept; 138 constexpr size_type rfind(const charT* s, size_type pos, size_type n) const; 139 constexpr size_type rfind(const charT* s, size_type pos = npos) const; 444 // rfind 446 size_type rfind(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT 454 size_type rfind(_CharT __c, size_type __pos = npos) const _NOEXCEPT 461 size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const 463 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::rfind(): recieved nullptr"); 469 size_type rfind(const _CharT* __s, size_type __pos=npos) const [all …]
|
/external/vulkan-validation-layers/demos/smoke/ |
D | generate-dispatch-table | 451 minor_end = line.rfind(",") 452 minor_begin = line.rfind(",", 0, minor_end) + 1 463 version_begin = line.rfind(" ") + 1 466 name_end = line.rfind("\"") 467 name_begin = line.rfind("\"", 0, name_end) + 1
|
/external/regex-re2/re2/ |
D | stringpiece.h | 143 int rfind(const StringPiece& s, size_type pos = npos) const; 144 int rfind(char c, size_type pos = npos) const;
|