Searched refs:find_last_not_of (Results 1 - 14 of 14) sorted by relevance

/external/chromium/base/
H A Dstring_piece_unittest.cc351 ASSERT_EQ(a.find_last_not_of(b), a.size()-1);
352 ASSERT_EQ(a.find_last_not_of(c), 22U);
353 ASSERT_EQ(b.find_last_not_of(a), StringPiece::npos);
354 ASSERT_EQ(b.find_last_not_of(b), StringPiece::npos);
355 ASSERT_EQ(f.find_last_not_of(i), 4U);
356 ASSERT_EQ(a.find_last_not_of(c, 24), 22U);
357 ASSERT_EQ(a.find_last_not_of(b, 3), 3U);
358 ASSERT_EQ(a.find_last_not_of(b, 2), StringPiece::npos);
360 ASSERT_EQ(f.find_last_not_of(d), f.size()-1);
361 ASSERT_EQ(f.find_last_not_of(
[all...]
H A Dstring_piece.cc174 size_type StringPiece::find_last_not_of(const StringPiece& s, function in class:base::StringPiece
185 return find_last_not_of(s.ptr_[0], pos);
198 size_type StringPiece::find_last_not_of(char c, size_type pos) const { function in class:base::StringPiece
H A Dstring_piece.h155 size_type find_last_not_of(const StringPiece& s, size_type pos = npos) const;
156 size_type find_last_not_of(char c, size_type pos = npos) const;
H A Dfile_util.cc161 std::string::size_type end1 = line1.find_last_not_of("\r\n");
167 std::string::size_type end2 = line2.find_last_not_of("\r\n");
H A Dstring_util.cc403 input.find_last_not_of(trim_chars) : last_char;
/external/stlport/test/unit/
H A Dstring_test.cpp66 CPPUNIT_TEST(find_last_not_of);
125 void find_last_not_of();
799 void StringTest::find_last_not_of() function in class:StringTest
804 CPPUNIT_ASSERT( s.find_last_not_of("ehortw ") == 15 );
808 CPPUNIT_CHECK( test.find_last_not_of( "a", 2, 1 ) == 1 );
809 CPPUNIT_CHECK( test.find_last_not_of( "b", 2, 1 ) == 2 );
810 CPPUNIT_CHECK( test.find_last_not_of( "a", 1, 1 ) == 1 );
811 CPPUNIT_CHECK( test.find_last_not_of( "b", 1, 1 ) == 0 );
812 CPPUNIT_CHECK( test.find_last_not_of( "a", 0, 1 ) == string::npos );
813 CPPUNIT_CHECK( test.find_last_not_of( "
[all...]
/external/astl/tests/
H A Dtest_string.cpp1064 EXPECT_TRUE(s.find_last_not_of('a') == string::npos);
1065 EXPECT_TRUE(s.find_last_not_of('a', 0) == string::npos);
1066 EXPECT_TRUE(s.find_last_not_of('a', 10) == string::npos);
1068 EXPECT_TRUE(s.find_last_not_of('a') == 9);
1069 EXPECT_TRUE(s.find_last_not_of('a', 10) == 9);
1070 EXPECT_TRUE(s.find_last_not_of('a', 9) == 9);
1071 EXPECT_TRUE(s.find_last_not_of('a', 0) == string::npos);
1073 EXPECT_TRUE(s.find_last_not_of('a') == 7);
/external/stlport/stlport/stl/
H A D_string_sum.h226 size_type find_last_not_of(const _BString& __s, size_type __pos = _BString::npos) const function in class:__bstr_sum
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 function in class:__bstr_sum
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 function in class:__bstr_sum
231 { return _M_get_storage().find_last_not_of(__s, __pos, __n); }
232 size_type find_last_not_of(_CharT __c, size_type __pos = _BString::npos) const function in class:__bstr_sum
233 { return _M_get_storage().find_last_not_of(__c, __pos); }
H A D_string.h1010 public: // find_last_not_of
1011 size_type find_last_not_of(const _Self& __s, size_type __pos = npos) const function in class:basic_string
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 function in class:basic_string
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;
H A D_string.c540 basic_string<_CharT,_Traits,_Alloc>::find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const function in class:_Alloc
559 basic_string<_CharT, _Traits, _Alloc>::find_last_not_of(_CharT __c, size_type __pos) const function in class:_Alloc
/external/stlport/stlport/stl/debug/
H A D_string.h774 // find_last_not_of
775 size_type find_last_not_of(const _Self& __s, size_type __pos = npos) const function in class:basic_string
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 { function in class:basic_string
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 { function in class:basic_string
785 return _M_non_dbg_impl.find_last_not_of(__s, __pos, __n);
787 size_type find_last_not_of(_CharT __c, size_type __pos = npos) const function in class:basic_string
788 { return _M_non_dbg_impl.find_last_not_of(__c, __pos); }
/external/astl/include/
H A Dstring301 size_type find_last_not_of(value_type c, size_type pos = npos) const;
/external/astl/src/
H A Dstring.cpp638 string::size_type string::find_last_not_of(value_type c, size_type pos) const { function in class:std::string
/external/srec/tools/grxmlcompile/
H A Dgrxmldoc.cpp499 cdata.erase(cdata.find_last_not_of(whitespace) + 1);

Completed in 134 milliseconds