Home
last modified time | relevance | path

Searched refs:find_last_not_of (Results 1 – 25 of 27) sorted by relevance

12

/external/chromium/base/
Dstring_piece_unittest.cc351 ASSERT_EQ(a.find_last_not_of(b), a.size()-1); in TEST()
352 ASSERT_EQ(a.find_last_not_of(c), 22U); in TEST()
353 ASSERT_EQ(b.find_last_not_of(a), StringPiece::npos); in TEST()
354 ASSERT_EQ(b.find_last_not_of(b), StringPiece::npos); in TEST()
355 ASSERT_EQ(f.find_last_not_of(i), 4U); in TEST()
356 ASSERT_EQ(a.find_last_not_of(c, 24), 22U); in TEST()
357 ASSERT_EQ(a.find_last_not_of(b, 3), 3U); in TEST()
358 ASSERT_EQ(a.find_last_not_of(b, 2), StringPiece::npos); in TEST()
360 ASSERT_EQ(f.find_last_not_of(d), f.size()-1); in TEST()
361 ASSERT_EQ(f.find_last_not_of(e), f.size()-1); in TEST()
[all …]
Dstring_piece.cc169 size_type StringPiece::find_last_not_of(const StringPiece& s, in find_last_not_of() function in base::StringPiece
180 return find_last_not_of(s.ptr_[0], pos); in find_last_not_of()
193 size_type StringPiece::find_last_not_of(char c, size_type pos) const { in find_last_not_of() function in base::StringPiece
Dstring_piece.h153 size_type find_last_not_of(const StringPiece& s, size_type pos = npos) const;
154 size_type find_last_not_of(char c, size_type pos = npos) const;
Dfile_util.cc134 std::string::size_type end1 = line1.find_last_not_of("\r\n"); in TextContentsEqual()
140 std::string::size_type end2 = line2.find_last_not_of("\r\n"); in TextContentsEqual()
Dstring_util.cc217 input.find_last_not_of(trim_chars) : last_char; in TrimStringT()
/external/stlport/test/unit/
Dstring_test.cpp66 CPPUNIT_TEST(find_last_not_of);
125 void find_last_not_of();
799 void StringTest::find_last_not_of() in find_last_not_of() function in StringTest
804 CPPUNIT_ASSERT( s.find_last_not_of("ehortw ") == 15 ); in find_last_not_of()
808 CPPUNIT_CHECK( test.find_last_not_of( "a", 2, 1 ) == 1 ); in find_last_not_of()
809 CPPUNIT_CHECK( test.find_last_not_of( "b", 2, 1 ) == 2 ); in find_last_not_of()
810 CPPUNIT_CHECK( test.find_last_not_of( "a", 1, 1 ) == 1 ); in find_last_not_of()
811 CPPUNIT_CHECK( test.find_last_not_of( "b", 1, 1 ) == 0 ); in find_last_not_of()
812 CPPUNIT_CHECK( test.find_last_not_of( "a", 0, 1 ) == string::npos ); in find_last_not_of()
813 CPPUNIT_CHECK( test.find_last_not_of( "b", 0, 1 ) == 0 ); in find_last_not_of()
[all …]
/external/stlport/stlport/stl/
D_string_sum.h226 size_type find_last_not_of(const _BString& __s, size_type __pos = _BString::npos) const
227 { return _M_get_storage().find_last_not_of(__s, __pos); }
228 size_type find_last_not_of(const _CharT* __s, size_type __pos =_BString:: npos) const
229 { return _M_get_storage().find_last_not_of(__s, __pos); }
230 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const in find_last_not_of() function
231 { return _M_get_storage().find_last_not_of(__s, __pos, __n); } in find_last_not_of()
232 size_type find_last_not_of(_CharT __c, size_type __pos = _BString::npos) const
233 { return _M_get_storage().find_last_not_of(__c, __pos); }
D_string.h1011 size_type find_last_not_of(const _Self& __s, size_type __pos = npos) const
1012 { return find_last_not_of(__s._M_Start(), __pos, __s.size()); }
1014 size_type find_last_not_of(const _CharT* __s, size_type __pos = npos) const
1015 { _STLP_FIX_LITERAL_BUG(__s) return find_last_not_of(__s, __pos, _Traits::length(__s)); }
1017 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const;
1019 size_type find_last_not_of(_CharT __c, size_type __pos = npos) const;
D_string.c540 basic_string<_CharT,_Traits,_Alloc>::find_last_not_of(const _CharT* __s, size_type __pos, size_type… in find_last_not_of() function
559 basic_string<_CharT, _Traits, _Alloc>::find_last_not_of(_CharT __c, size_type __pos) const in find_last_not_of() function
/external/chromium/chrome/browser/autocomplete/
Dhistory_provider.cc115 input_text.find_last_not_of(ASCIIToUTF16("/\\")); in FixupUserInput()
119 output.find_last_not_of(ASCIIToUTF16("/\\")); in FixupUserInput()
/external/llvm/include/llvm/ADT/
DStringRef.h297 size_type find_last_not_of(char C, size_t From = npos) const;
303 size_type find_last_not_of(StringRef Chars, size_t From = npos) const;
499 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
/external/stlport/stlport/stl/debug/
D_string.h775 size_type find_last_not_of(const _Self& __s, size_type __pos = npos) const
776 { return _M_non_dbg_impl.find_last_not_of(__s._M_non_dbg_impl, __pos); }
777 size_type find_last_not_of(const _CharT* __s, size_type __pos = npos) const {
780 return _M_non_dbg_impl.find_last_not_of(__s, __pos);
782 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const { in find_last_not_of() function
785 return _M_non_dbg_impl.find_last_not_of(__s, __pos, __n); in find_last_not_of()
787 size_type find_last_not_of(_CharT __c, size_type __pos = npos) const
788 { return _M_non_dbg_impl.find_last_not_of(__c, __pos); }
/external/chromium/third_party/libjingle/source/talk/base/
Dstringutils.cc136 std::string::size_type last = s.find_last_not_of(kWhitespace); in string_trim()
/external/llvm/unittests/ADT/
DStringRefTest.cpp295 EXPECT_EQ(3U, Str.find_last_not_of('o')); in TEST()
296 EXPECT_EQ(1U, Str.find_last_not_of("lo")); in TEST()
297 EXPECT_EQ(StringRef::npos, Str.find_last_not_of("helo")); in TEST()
/external/oprofile/libutil++/
Dstring_manip.cpp96 return result.erase(result.find_last_not_of(totrim) + 1); in rtrim()
/external/llvm/lib/Support/
DStringRef.cpp235 StringRef::size_type StringRef::find_last_not_of(char C, size_t From) const { in find_last_not_of() function in StringRef
246 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() function in StringRef
DSourceMgr.cpp438 CaretLine.erase(CaretLine.find_last_not_of(' ')+1); in print()
/external/chromium/third_party/libjingle/source/talk/p2p/client/
Dhttpportallocator.cc53 ASSERT(str.find_last_not_of(" \t\r\n") != std::string::npos); in Trim()
/external/chromium/chrome/browser/net/
Durl_fixer_upper.cc260 size_t last_nondot(domain.find_last_not_of('.')); in FixupHost()
/external/chromium/chrome/browser/ui/views/
Dshell_dialogs_win.cc60 size_t index = return_value.find_last_not_of(L'.'); in AppendExtensionIfNeeded()
/external/chromium/third_party/libjingle/source/talk/session/phone/
Ddevicemanager.cc736 std::string::size_type last = s.find_last_not_of(drop); in Trim()
/external/srec/tools/grxmlcompile/
Dgrxmldoc.cpp499 cdata.erase(cdata.find_last_not_of(whitespace) + 1); in processCDATA()
/external/chromium/net/base/
Dnet_util.cc1538 std::string::size_type pos = filename.find_last_not_of(" ."); in GetSuggestedFilename()
/external/chromium/chrome/browser/sync/engine/
Dsyncapi.cc140 size_t untrimmed_count = name.find_last_not_of(' ') + 1; in IsNameServerIllegalAfterTrimming()
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/
DContext.cpp3266 std::string::size_type end = mExtensionString.find_last_not_of(' '); in initExtensionString()

12