Home
last modified time | relevance | path

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

12

/external/chromium_org/base/strings/
Dstring_piece_unittest.cc423 ASSERT_EQ(a.find_last_not_of(b), a.size()-1); in TYPED_TEST()
424 ASSERT_EQ(a.find_last_not_of(c), 22U); in TYPED_TEST()
425 ASSERT_EQ(b.find_last_not_of(a), Piece::npos); in TYPED_TEST()
426 ASSERT_EQ(b.find_last_not_of(b), Piece::npos); in TYPED_TEST()
427 ASSERT_EQ(f.find_last_not_of(i), 4U); in TYPED_TEST()
428 ASSERT_EQ(a.find_last_not_of(c, 24), 22U); in TYPED_TEST()
429 ASSERT_EQ(a.find_last_not_of(b, 3), 3U); in TYPED_TEST()
430 ASSERT_EQ(a.find_last_not_of(b, 2), Piece::npos); in TYPED_TEST()
432 ASSERT_EQ(f.find_last_not_of(d), f.size()-1); in TYPED_TEST()
433 ASSERT_EQ(f.find_last_not_of(e), f.size()-1); in TYPED_TEST()
[all …]
Dstring_piece.h132 BASE_EXPORT size_t find_last_not_of(const StringPiece& self,
135 BASE_EXPORT size_t find_last_not_of(const StringPiece16& self,
138 BASE_EXPORT size_t find_last_not_of(const StringPiece16& self,
141 BASE_EXPORT size_t find_last_not_of(const StringPiece& self,
333 size_type find_last_not_of(const BasicStringPiece& s,
335 return internal::find_last_not_of(*this, s, pos);
337 size_type find_last_not_of(value_type c,
339 return internal::find_last_not_of(*this, c, pos);
Dstring_piece.cc339 size_t find_last_not_of(const StringPiece& self, in find_last_not_of() function
351 return find_last_not_of(self, s.data()[0], pos); in find_last_not_of()
365 size_t find_last_not_of(const StringPiece16& self, in find_last_not_of() function
403 size_t find_last_not_of(const StringPiece& self, in find_last_not_of() function
409 size_t find_last_not_of(const StringPiece16& self, in find_last_not_of() function
/external/chromium_org/third_party/cython/src/Cython/Includes/libcpp/
Dstring.pxd88 size_t find_last_not_of(string&, size_t) nogil
89 size_t find_last_not_of(char* s, size_t, size_t) nogil
90 size_t find_last_not_of(char*, size_t pos) nogil
96 size_t find_last_not_of(char c, size_t) nogil
97 size_t find_last_not_of(char c) nogil
/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/libcxx/test/strings/basic.string/string.ops/string_find.last.not.of/
Dchar_size.pass.cpp24 assert(s.find_last_not_of(c, pos) == x); in test()
33 assert(s.find_last_not_of(c) == x); in test()
Dpointer_size.pass.cpp24 assert(s.find_last_not_of(str, pos) == x); in test()
33 assert(s.find_last_not_of(str) == x); in test()
Dstring_size.pass.cpp23 assert(s.find_last_not_of(str, pos) == x); in test()
32 assert(s.find_last_not_of(str) == x); in test()
/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;
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/
Dstring_piece.cc175 size_type StringPiece::find_last_not_of(const StringPiece& s, in find_last_not_of() function in i18n::phonenumbers::StringPiece
186 return find_last_not_of(s.ptr_[0], pos); in find_last_not_of()
199 size_type StringPiece::find_last_not_of(char c, size_type pos) const { in find_last_not_of() function in i18n::phonenumbers::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;
/external/chromium_org/components/omnibox/
Dautocomplete_provider.cc150 input_text.find_last_not_of(base::ASCIIToUTF16("/\\")); in FixupUserInput()
155 output.find_last_not_of(base::ASCIIToUTF16("/\\")); in FixupUserInput()
/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/llvm/include/llvm/ADT/
DStringRef.h309 size_t find_last_not_of(char C, size_t From = npos) const;
315 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
511 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
/external/chromium_org/base/files/
Dfile_util.cc111 std::string::size_type end1 = line1.find_last_not_of("\r\n"); in TextContentsEqual()
117 std::string::size_type end2 = line2.find_last_not_of("\r\n"); in TextContentsEqual()
/external/chromium_org/net/base/
Dfilename_util_internal.cc32 size_t pos = filename->find_last_not_of(FILE_PATH_LITERAL(" .")); in SanitizeGeneratedFileName()
269 if (result_str.find_last_not_of(FILE_PATH_LITERAL("-_")) == in GetSuggestedFilenameImpl()
/external/chromium_org/sync/internal_api/
Dsyncapi_internal.cc69 size_t untrimmed_count = name.find_last_not_of(' ') + 1; in IsNameServerIllegalAfterTrimming()
/external/chromium_org/third_party/webrtc/base/
Dstringutils.cc124 std::string::size_type last = s.find_last_not_of(kWhitespace); in string_trim()
/external/oprofile/libutil++/
Dstring_manip.cpp96 return result.erase(result.find_last_not_of(totrim) + 1); in rtrim()
/external/llvm/unittests/ADT/
DStringRefTest.cpp323 EXPECT_EQ(3U, Str.find_last_not_of('o')); in TEST()
324 EXPECT_EQ(1U, Str.find_last_not_of("lo")); in TEST()
325 EXPECT_EQ(StringRef::npos, Str.find_last_not_of("helo")); in TEST()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_generator.cc56 string::size_type end = s.find_last_not_of(" \n\r\t") + 1; in TrimString()
/external/llvm/lib/Support/
DStringRef.cpp253 StringRef::size_type StringRef::find_last_not_of(char C, size_t From) const { in find_last_not_of() function in StringRef
264 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() function in StringRef
/external/chromium_org/extensions/browser/
Dfile_highlighter.cc136 size_t trim = contents_.find_last_not_of(" \t\n\r", end_ - 1); in Parse()
/external/clang/lib/Format/
DBreakableToken.cpp66 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) { in getCommentSplit()
331 Lines[LineIndex - 1].find_last_not_of(Blanks, EndOfPreviousLine); in adjustWhitespace()

12