/third_party/protobuf/src/google/protobuf/stubs/ |
D | stringpiece_unittest.cc | 371 EXPECT_EQ(a.rfind(b), 0); in TEST() 372 EXPECT_EQ(a.rfind(b, 1), 0); in TEST() 373 EXPECT_EQ(a.rfind(c), 23); in TEST() 374 EXPECT_EQ(a.rfind(c, 22), StringPiece::npos); in TEST() 375 EXPECT_EQ(a.rfind(c, 1), StringPiece::npos); in TEST() 376 EXPECT_EQ(a.rfind(c, 0), StringPiece::npos); in TEST() 377 EXPECT_EQ(b.rfind(c), StringPiece::npos); in TEST() 378 EXPECT_EQ(b.rfind(c, 0), StringPiece::npos); in TEST() 379 EXPECT_EQ(a.rfind(d), a.as_string().rfind(string())); in TEST() 380 EXPECT_EQ(a.rfind(e), a.as_string().rfind(string())); in TEST() [all …]
|
D | stringpiece.h | 368 stringpiece_ssize_type rfind(StringPiece s, size_type pos = npos) const; 369 stringpiece_ssize_type rfind(char c, size_type pos = npos) const; 381 return rfind(c, pos);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | string_view_test.cc | 470 EXPECT_EQ(a.rfind(b), 0); in TEST() 471 EXPECT_EQ(a.rfind(b, 1), 0); in TEST() 472 EXPECT_EQ(a.rfind(c), 23); in TEST() 473 EXPECT_EQ(a.rfind(c, 22), absl::string_view::npos); in TEST() 474 EXPECT_EQ(a.rfind(c, 1), absl::string_view::npos); in TEST() 475 EXPECT_EQ(a.rfind(c, 0), absl::string_view::npos); in TEST() 476 EXPECT_EQ(b.rfind(c), absl::string_view::npos); in TEST() 477 EXPECT_EQ(b.rfind(c, 0), absl::string_view::npos); in TEST() 478 EXPECT_EQ(a.rfind(d), std::string(a).rfind(std::string())); in TEST() 479 EXPECT_EQ(a.rfind(e), std::string(a).rfind(std::string())); in TEST() [all …]
|
D | string_view.h | 480 size_type rfind(string_view s, size_type pos = npos) const noexcept; 484 size_type rfind(char c, size_type pos = npos) const noexcept; 488 size_type rfind(const char* s, size_type pos, size_type count) const { in rfind() function 489 return rfind(string_view(s, count), pos); in rfind() 494 size_type rfind(const char* s, size_type pos = npos) const { 495 return rfind(string_view(s), pos); 534 return rfind(c, pos);
|
/third_party/rust/crates/memchr/bench/src/memmem/ |
D | imp.rs | 68 memmem::rfind(haystack.as_bytes(), needle.as_bytes()).is_some() in oneshot() 75 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt() 172 finder(needle.as_bytes()).rfind(haystack.as_bytes()).is_some() in oneshot() 179 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt() 189 |h, n| finder(n).rfind(h), in oneshotiter() 264 bstr::ByteSlice::rfind(haystack.as_bytes(), needle.as_bytes()) in oneshot() 272 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt() 297 move |h, _| self.0.rfind(h), in iter() 835 mut rfind: impl FnMut(&[u8], &[u8]) -> Option<usize> + 'a, in iter_from_rfind() 843 match rfind(&haystack[..end], needle) { in iter_from_rfind()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/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()
|
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
D | section_parser.cc | 55 size_t pos = data.rfind(" spirv hex"); in NameToNodeType() 60 pos = data.rfind(" spirv"); in NameToNodeType() 69 pos = data.rfind(" passthrough"); in NameToNodeType() 191 size_t name_end = line.rfind("]"); in SplitSections()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | SmallString.h | 162 size_t rfind(char C, size_t From = StringRef::npos) const { 163 return str().rfind(C, From); 170 size_t rfind(StringRef Str) const { in rfind() function 171 return str().rfind(Str); in rfind()
|
/third_party/python/Lib/ |
D | genericpath.py | 128 sepIndex = p.rfind(sep) 130 altsepIndex = p.rfind(altsep) 133 dotIndex = p.rfind(extsep)
|
/third_party/rust/crates/memchr/src/memmem/ |
D | mod.rs | 296 pub fn rfind(haystack: &[u8], needle: &[u8]) -> Option<usize> { in rfind() function 298 rabinkarp::rfind(haystack, needle) in rfind() 300 FinderRev::new(needle).rfind(haystack) in rfind() 420 let result = self.finder.rfind(&self.haystack[..pos]); in next() 614 pub fn rfind<B: AsRef<[u8]>>(&self, haystack: B) -> Option<usize> { in rfind() method 615 self.searcher.rfind(haystack.as_ref()) in rfind() 1109 fn rfind(&self, haystack: &[u8]) -> Option<usize> { in rfind() method 1125 tw.rfind(haystack, needle) in rfind() 1142 define_memmem_quickcheck_tests!(super::find, super::rfind); 1235 define_memmem_simple_tests!(super::find, super::rfind);
|
D | rabinkarp.rs | 71 pub(crate) fn rfind(haystack: &[u8], needle: &[u8]) -> Option<usize> { in rfind() function 227 define_memmem_simple_tests!(super::find, super::rfind); 232 define_memmem_quickcheck_tests!(super::find, super::rfind);
|
/third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/ |
D | filtration.py | 55 start = file.filename.rfind("/") 56 limit = file.filename.rfind(".") 61 limit = file.filename.rfind("/") 230 i = locale.rfind("_") 340 file.filename[file.filename.rfind("/")+1:]
|
/third_party/icu/icu4c/source/python/icutools/databuilder/ |
D | filtration.py | 55 start = file.filename.rfind("/") 56 limit = file.filename.rfind(".") 61 limit = file.filename.rfind("/") 230 i = locale.rfind("_") 343 file.filename[file.filename.rfind("/")+1:]
|
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/ |
D | string_piece.h | 140 size_type rfind(const StringPiece& s, size_type pos = npos) const; 141 size_type rfind(char c, size_type pos = npos) const; 151 return rfind(c, pos);
|
/third_party/python/Lib/idlelib/ |
D | pyparse.py | 156 i = code.rfind(":\n", 0, limit) 159 i = code.rfind('\n', 0, i) + 1 # start of colon line (-1+1=0) 374 p = code.rfind('\n', 0, p-1) + 1 472 origi = i = code.rfind('\n', 0, j) + 1
|
/third_party/python/Objects/stringlib/ |
D | find.h | 27 STRINGLIB(rfind)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() argument 58 return STRINGLIB(rfind)(str + start, end - start, sub, sub_len, start); in STRINGLIB()
|
/third_party/rust/crates/os_str_bytes/src/ |
D | raw_str.rs | 25 use memchr::memmem::rfind; 46 fn rfind(string: &[u8], pat: &[u8]) -> Option<usize> { in rfind() function 48 .rfind(|&x| string[..x].ends_with(pat)) in rfind() 434 pub fn rfind<P>(&self, pat: P) -> Option<usize> in rfind() method 441 rfind(&self.0, pat) in rfind() 465 self.split_once_raw_with(pat, rfind) in rsplit_once_raw()
|
/third_party/skia/third_party/externals/icu/source/tools/escapesrc/ |
D | escapesrc.cpp | 333 while((pos>0) && (pos = linestr.rfind("u\"", pos)) != std::string::npos) { in fixLine() 342 while((pos>0) && (pos = linestr.rfind("u'", pos)) != std::string::npos) { in fixLine() 351 while((pos>0) && (pos = linestr.rfind("u8\"", pos)) != std::string::npos) { in fixLine()
|
/third_party/icu/icu4c/source/tools/escapesrc/ |
D | escapesrc.cpp | 333 while((pos>0) && (pos = linestr.rfind("u\"", pos)) != std::string::npos) { in fixLine() 342 while((pos>0) && (pos = linestr.rfind("u'", pos)) != std::string::npos) { in fixLine() 351 while((pos>0) && (pos = linestr.rfind("u8\"", pos)) != std::string::npos) { in fixLine()
|
/third_party/node/deps/icu-small/source/tools/escapesrc/ |
D | escapesrc.cpp | 333 while((pos>0) && (pos = linestr.rfind("u\"", pos)) != std::string::npos) { in fixLine() 342 while((pos>0) && (pos = linestr.rfind("u'", pos)) != std::string::npos) { in fixLine() 351 while((pos>0) && (pos = linestr.rfind("u8\"", pos)) != std::string::npos) { in fixLine()
|
/third_party/python/Tools/stringbench/ |
D | stringbench.py | 228 s1_rfind = s1.rfind 236 s1_rfind = s1.rfind 245 s1_rfind = s1.rfind 253 s1_rfind = s1.rfind 261 s1_rfind = s1.rfind 269 s1_rfind = s1.rfind 277 s1_rfind = s1.rfind 289 s1_rfind = s1.rfind 301 s1_rfind = s1.rfind
|
/third_party/node/deps/googletest/include/gtest/internal/ |
D | gtest-type-util.h | 112 if (s.rfind("struct ", 0) == 0) { in GetTypeName() 114 } else if (s.rfind("class ", 0) == 0) { in GetTypeName()
|
/third_party/vulkan-loader/tests/framework/ |
D | test_util.cpp | 313 auto last_div = contents.rfind(path_separator); in parent_path() 318 auto last_div = contents.rfind(path_separator); in has_parent_path() 322 auto last_div = contents.rfind(path_separator); in filename() 327 auto last_div = contents.rfind(path_separator); in extension() 328 auto ext_div = contents.rfind('.'); in extension() 337 auto last_div = contents.rfind(path_separator); in stem() 338 auto ext_div = contents.rfind('.'); in stem()
|
/third_party/glslang/gtests/ |
D | TestFixture.cpp | 176 const size_t pos = name.rfind('.'); in GetSuffix() 177 return (pos == std::string::npos) ? "" : name.substr(name.rfind('.') + 1); in GetSuffix()
|
/third_party/python/Lib/test/ |
D | test_bigmem.py | 294 self.assertEqual(s.rfind(_(' ')), sublen + size + SUBSTR.rfind(_(' '))) 295 self.assertEqual(s.rfind(SUBSTR), sublen + size) 296 self.assertEqual(s.rfind(_(' '), 0, size), SUBSTR.rfind(_(' '))) 297 self.assertEqual(s.rfind(SUBSTR, 0, sublen + size), 0) 298 self.assertEqual(s.rfind(_('i')), sublen + size + SUBSTR.rfind(_('i'))) 299 self.assertEqual(s.rfind(_('i'), 0, sublen), SUBSTR.rfind(_('i'))) 300 self.assertEqual(s.rfind(_('i'), 0, sublen + size), 301 SUBSTR.rfind(_('i'))) 302 self.assertEqual(s.rfind(_('j')), -1)
|