Home
last modified time | relevance | path

Searched refs:rfind (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc371 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 …]
/external/libchrome/base/strings/
Dstring_piece_unittest.cc288 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 …]
Dstring_piece.h77 BASE_EXPORT size_t rfind(const StringPiece& self,
80 BASE_EXPORT size_t rfind(const StringPiece16& self,
83 BASE_EXPORT size_t rfind(const StringPiece& self,
86 BASE_EXPORT size_t rfind(const StringPiece16& self,
321 size_type rfind(const BasicStringPiece& s,
323 return internal::rfind(*this, s, pos);
325 size_type rfind(value_type c, size_type pos = BasicStringPiece::npos) const {
326 return internal::rfind(*this, c, pos);
354 return rfind(c, pos);
/external/libcxx/test/std/strings/string.view/string.view.find/
Drfind_char_size.pass.cpp24 assert(s.rfind(c, pos) == x); in test()
33 assert(s.rfind(c) == x); in test()
75 static_assert (sv1.rfind( 'b', 0 ) == SV::npos, "" ); in main()
76 static_assert (sv1.rfind( 'b', 1 ) == SV::npos, "" ); in main()
77 static_assert (sv2.rfind( 'b', 0 ) == SV::npos, "" ); in main()
78 static_assert (sv2.rfind( 'b', 1 ) == 1, "" ); in main()
79 static_assert (sv2.rfind( 'b', 2 ) == 1, "" ); in main()
80 static_assert (sv2.rfind( 'b', 3 ) == 1, "" ); in main()
81 static_assert (sv2.rfind( 'b', 4 ) == 1, "" ); in main()
Drfind_pointer_size.pass.cpp24 assert(s.rfind(str, pos) == x); in test()
36 assert(s.rfind(str) == x); in test()
165 static_assert (sv1.rfind( "") == 0, "" ); in main()
166 static_assert (sv1.rfind( "abcde") == SV::npos, "" ); in main()
167 static_assert (sv2.rfind( "") == 5, "" ); in main()
168 static_assert (sv2.rfind( "abcde") == 0, "" ); in main()
169 static_assert (sv2.rfind( "abcde", 1) == 0, "" ); in main()
Drfind_string_view_size.pass.cpp24 assert(s.rfind(str, pos) == x); in test()
33 assert(s.rfind(str) == x); in test()
158 static_assert (sv1.rfind(sv1) == 0, "" ); in main()
159 static_assert (sv1.rfind(sv2) == SV::npos, "" ); in main()
160 static_assert (sv2.rfind(sv1) == 5, "" ); in main()
161 static_assert (sv2.rfind(sv2) == 0, "" ); in main()
162 static_assert (sv2.rfind(sv2, 1) == 0, "" ); in main()
Drfind_pointer_size_size.pass.cpp24 assert(s.rfind(str, pos, n) == x); in test()
385 static_assert (sv1.rfind( "", 0, 0 ) == 0, "" ); in main()
386 static_assert (sv1.rfind( "abcde", 0, 0 ) == 0, "" ); in main()
387 static_assert (sv1.rfind( "abcde", 0, 1 ) == SV::npos, "" ); in main()
388 static_assert (sv2.rfind( "", 0, 0 ) == 0, "" ); in main()
389 static_assert (sv2.rfind( "abcde", 0, 0 ) == 0, "" ); in main()
390 static_assert (sv2.rfind( "abcde", 0, 1 ) == 0, "" ); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DSmallStringTest.cpp129 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()
/external/llvm/unittests/ADT/
DSmallStringTest.cpp129 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()
/external/perfetto/src/base/
Dstring_view_unittest.cc67 EXPECT_EQ(StringView().rfind('x'), StringView::npos); in TEST()
68 EXPECT_EQ(StringView("").rfind('x'), StringView::npos); in TEST()
69 EXPECT_EQ(StringView("foo").rfind('x'), StringView::npos); in TEST()
70 EXPECT_EQ(StringView("foo").rfind('f'), 0u); in TEST()
71 EXPECT_EQ(StringView("foo").rfind('o'), 2u); in TEST()
/external/grpc-grpc/tools/buildgen/plugins/
Dlist_api.py34 args = args_and_close[:args_and_close.rfind(')')].strip()
35 last_space = type_and_name.rfind(' ')
36 last_star = type_and_name.rfind('*')
/external/python/cpython2/Lib/
Dgenericpath.py99 sepIndex = p.rfind(sep)
101 altsepIndex = p.rfind(altsep)
104 dotIndex = p.rfind(extsep)
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallString.h163 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()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DSmallString.h163 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()
/external/llvm/include/llvm/ADT/
DSmallString.h163 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()
/external/python/cpython3/Lib/
Dgenericpath.py124 sepIndex = p.rfind(sep)
126 altsepIndex = p.rfind(altsep)
129 dotIndex = p.rfind(extsep)
/external/swiftshader/third_party/LLVM/unittests/ADT/
DStringRefTest.cpp249 EXPECT_EQ(3U, Str.rfind('l')); in TEST()
250 EXPECT_EQ(StringRef::npos, Str.rfind('z')); in TEST()
251 EXPECT_EQ(StringRef::npos, Str.rfind("helloworld")); in TEST()
252 EXPECT_EQ(0U, Str.rfind("hello")); in TEST()
253 EXPECT_EQ(1U, Str.rfind("ello")); in TEST()
254 EXPECT_EQ(StringRef::npos, Str.rfind("zz")); in TEST()
/external/google-breakpad/src/processor/
Dpathname_stripper.cc42 string::size_type slash = path.rfind('/'); in File()
43 string::size_type backslash = path.rfind('\\'); in File()
/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVUtil.h99 bool Found = rfind(Key, &Val); in rmap()
145 static bool rfind(Ty2 Key, Ty1 *Val = nullptr) {
242 if (SPIRVMap<KT, VT>::rfind(I, &V)) in rmap()
253 if (SPIRVMap<KT, VT>::rfind(I, &V)) in rmap()
264 if (SPIRVMap<KT, VT>::rfind(I.first, &V)) in rmap()
281 return SPIRVMap<K, std::string>::rfind(Name, &Key); in getByName()
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DStringRef.h233 size_t rfind(char C, size_t From = npos) const {
248 size_t rfind(StringRef Str) const;
275 return rfind(C, From);
427 size_t Idx = rfind(Separator); in rsplit()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/
Dwciia.py31 rpar = filesfolders.rfind(')')
85 rstar = path.rfind('*')
/external/llvm/utils/
Dwciia.py31 rpar = filesfolders.rfind(')')
85 rstar = path.rfind('*')
/external/libcxx/test/std/strings/basic.string/string.ops/string_rfind/
Dchar_size.pass.cpp24 assert(s.rfind(c, pos) == x); in test()
33 assert(s.rfind(c) == x); in test()
Dstring_size.pass.cpp24 assert(s.rfind(str, pos) == x); in test()
33 assert(s.rfind(str) == x); in test()
162 assert(s.rfind({"abc", 1}) == std::string::npos); in main()
/external/tensorflow/tensorflow/core/lib/io/
Dpath.cc75 auto pos = path.rfind('/'); in SplitPath()
77 if (pos == StringPiece::npos) pos = path.rfind('\\'); in SplitPath()
101 auto pos = path.rfind('.'); in SplitBasename()

12345678910>>...15