Home
last modified time | relevance | path

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

12345

/external/chromium/base/
Dstring_piece_unittest.cc219 ASSERT_EQ(a.rfind(b), 0U); in TEST()
220 ASSERT_EQ(a.rfind(b, 1), 0U); in TEST()
221 ASSERT_EQ(a.rfind(c), 23U); in TEST()
222 ASSERT_EQ(a.rfind(c, 22U), StringPiece::npos); in TEST()
223 ASSERT_EQ(a.rfind(c, 1U), StringPiece::npos); in TEST()
224 ASSERT_EQ(a.rfind(c, 0U), StringPiece::npos); in TEST()
225 ASSERT_EQ(b.rfind(c), StringPiece::npos); in TEST()
226 ASSERT_EQ(b.rfind(c, 0U), StringPiece::npos); in TEST()
227 ASSERT_EQ(a.rfind(d), (size_t) a.as_string().rfind(std::string())); in TEST()
228 ASSERT_EQ(a.rfind(e), a.as_string().rfind(std::string())); in TEST()
[all …]
Dstring_piece.h140 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);
Dstring_piece.cc55 size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind() function in base::StringPiece
67 size_type StringPiece::rfind(char c, size_type pos) const { in rfind() function in base::StringPiece
/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()
DStringRefTest.cpp256 EXPECT_EQ(3U, Str.rfind('l')); in TEST()
257 EXPECT_EQ(StringRef::npos, Str.rfind('z')); in TEST()
258 EXPECT_EQ(StringRef::npos, Str.rfind("helloworld")); in TEST()
259 EXPECT_EQ(0U, Str.rfind("hello")); in TEST()
260 EXPECT_EQ(1U, Str.rfind("ello")); in TEST()
261 EXPECT_EQ(StringRef::npos, Str.rfind("zz")); in TEST()
/external/stlport/test/unit/
Dstring_test.cpp64 CPPUNIT_TEST(rfind);
123 void rfind();
729 string::size_type p = s.rfind( "", 0, 0 ); in bogus_edge_find()
736 string::size_type p = s.rfind( "", 0, 0 ); in bogus_edge_find()
742 string::size_type p = s.rfind( "", 1, 0 ); in bogus_edge_find()
748 string::size_type p = s.rfind( "", 1, 0 ); in bogus_edge_find()
754 string::size_type p = s.rfind( "", 3, 0 ); in bogus_edge_find()
760 void StringTest::rfind() in rfind() function in StringTest
765 CPPUNIT_ASSERT( s.rfind("two") == 18 ); in rfind()
766 CPPUNIT_ASSERT( s.rfind("two", 0) == string::npos ); in rfind()
[all …]
/external/llvm/include/llvm/ADT/
DSmallString.h161 size_t rfind(char C, size_t From = StringRef::npos) const {
162 return str().rfind(C, From);
169 size_t rfind(StringRef Str) const { in rfind() function
170 return str().rfind(Str); in rfind()
DStringRef.h244 size_t rfind(char C, size_t From = npos) const {
259 size_t rfind(StringRef Str) const;
286 return rfind(C, From);
477 size_t Idx = rfind(Separator); in rsplit()
/external/bluetooth/bluez/test/
Dmonitor-bluetooth9 iface = interface[interface.rfind(".") + 1:]
14 iface = interface[interface.rfind(".") + 1:]
Dlist-devices14 list = list + val[val.rfind("/") + 1:] + " "
/external/chromium/third_party/libjingle/overrides/talk/xmllite/
Dqname.cc24 size_t i = name.rfind(':'); in QName_LocalPart()
32 size_t i = name.rfind(':'); in QName_Namespace()
/external/skia/src/animator/
DSkTDArray_Experimental.h50 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/
Dbtt_plot.py79 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')]
Dbno_plot.py105 t = t[t.rfind('/')+1:]
/external/stlport/stlport/stl/
D_string_sum.h194 …size_type rfind(const _BString& __s, size_type __pos = _BString::npos) const { return _M_get_stora…
195 …size_type rfind(const _CharT* __s, size_type __pos = _BString::npos) const { return _M_get_storage…
196 …size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const { return _M_get_storage()… in rfind() function
197 …size_type rfind(_CharT __c, size_type __pos = _BString::npos) const { return _M_get_storage().rfin…
215 { return _M_get_storage().rfind(__c, __pos); }
/external/regex-re2/util/
Dstringpiece.cc60 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/chromium/third_party/libjingle/source/talk/xmllite/
Dqname.cc113 size_t i = name.rfind(':'); in QName_LocalPart()
121 size_t i = name.rfind(':'); in QName_Namespace()
/external/regex-re2/re2/
Dstringpiece.h143 int rfind(const StringPiece& s, size_type pos = npos) const;
144 int rfind(char c, size_type pos = npos) const;
/external/stlport/stlport/stl/debug/
D_string.h711 size_type rfind(const _Self& __s, size_type __pos = npos) const
712 { return _M_non_dbg_impl.rfind(__s._M_non_dbg_impl, __pos); }
713 size_type rfind(const _CharT* __s, size_type __pos = npos) const {
716 return _M_non_dbg_impl.rfind(__s, __pos);
718 size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const { in rfind() function
721 return _M_non_dbg_impl.rfind(__s, __pos, __n); in rfind()
723 size_type rfind(_CharT __c, size_type __pos = npos) const
724 { return _M_non_dbg_impl.rfind(__c, __pos); }
756 { return _M_non_dbg_impl.rfind(__c, __pos); }
/external/oprofile/libpp/
Dparse_filename.cpp182 pos = filename_spec.rfind('.'); in parse_filename()
183 pos = filename_spec.rfind('.', pos-1); in parse_filename()
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/
Dtest.py47 self.base = name[(name.rfind("/") + 1):name.rfind(".html")]
194 dirname = test.name[0:test.name.rfind('/')]
/external/llvm/lib/Support/Unix/
DPath.inc369 std::string::size_type slash = path.rfind('/');
375 std::string::size_type dot = path.rfind('.');
385 std::string::size_type slash = path.rfind('/');
391 std::string::size_type dot = path.rfind('.');
473 size_t pos = path.rfind('/');
482 size_t pos2 = path.rfind('/', pos-1);
600 size_t slashpos = path.rfind('/',path.size());
606 slashpos = path.rfind('/',slashpos-1);
617 size_t dotpos = path.rfind('.',path.size());
618 size_t slashpos = path.rfind('/',path.size());
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/
Dmetered_stream.py144 last_newline = str.rfind("\n")
/external/astl/tests/
Dtest_string.cpp1040 EXPECT_TRUE(s.rfind('a') == string::npos); in testCharSearch()
1041 EXPECT_TRUE(s.rfind('a', 0) == string::npos); in testCharSearch()
1042 EXPECT_TRUE(s.rfind('a', 10) == string::npos); in testCharSearch()
1044 EXPECT_TRUE(s.rfind('a', 10) == 10); in testCharSearch()
1045 EXPECT_TRUE(s.rfind('a', 9) == 7); in testCharSearch()
1046 EXPECT_TRUE(s.rfind('a', 0) == 0); in testCharSearch()
1048 EXPECT_TRUE(s.rfind('a') == 0); in testCharSearch()
/external/llvm/lib/Support/Windows/
DPath.inc82 pos = path.rfind(':',len);
318 size_t slash = path.rfind('/');
324 size_t dot = path.rfind('.');
334 size_t slash = path.rfind('/');
340 size_t dot = path.rfind('.');
405 size_t pos = path.rfind('/');
563 size_t slashpos = path.rfind('/',path.size());
577 size_t dotpos = path.rfind('.',path.size());
578 size_t slashpos = path.rfind('/',path.size());

12345