Home
last modified time | relevance | path

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

123

/external/libcxx/test/std/strings/string.view/string.view.find/
Dfind_last_not_of_char_size.pass.cpp25 assert(s.find_last_not_of(c, pos) == x); in test()
34 assert(s.find_last_not_of(c) == x); in test()
76 static_assert (sv1.find_last_not_of( 'i', 0 ) == SV::npos, "" ); in main()
77 static_assert (sv1.find_last_not_of( 'i', 1 ) == SV::npos, "" ); in main()
78 static_assert (sv2.find_last_not_of( 'a', 0 ) == SV::npos, "" ); in main()
79 static_assert (sv2.find_last_not_of( 'a', 1 ) == 1, "" ); in main()
80 static_assert (sv2.find_last_not_of( 'e', 5 ) == 3, "" ); in main()
Dfind_last_not_of_pointer_size.pass.cpp25 assert(s.find_last_not_of(str, pos) == x); in test()
34 assert(s.find_last_not_of(str) == x); in test()
159 static_assert (sv1.find_last_not_of( "", 0) == SV::npos, "" ); in main()
160 static_assert (sv1.find_last_not_of( "irkhs", 5) == SV::npos, "" ); in main()
161 static_assert (sv2.find_last_not_of( "", 0) == 0, "" ); in main()
162 static_assert (sv2.find_last_not_of( "gfsrt", 5) == 4, "" ); in main()
163 static_assert (sv2.find_last_not_of( "lecar", 5) == 3, "" ); in main()
Dfind_last_not_of_pointer_size_size.pass.cpp25 assert(s.find_last_not_of(str, pos, n) == x); in test()
386 static_assert (sv1.find_last_not_of( "", 0, 0) == SV::npos, "" ); in main()
387 static_assert (sv1.find_last_not_of( "irkhs", 0, 5) == SV::npos, "" ); in main()
388 static_assert (sv2.find_last_not_of( "", 0, 0) == 0, "" ); in main()
389 static_assert (sv2.find_last_not_of( "gfsrt", 5, 0) == 4, "" ); in main()
390 static_assert (sv2.find_last_not_of( "lecar", 5, 0) == 4, "" ); in main()
Dfind_last_not_of_string_view_size.pass.cpp21 assert(s.find_last_not_of(str, pos) == x); in test()
30 assert(s.find_last_not_of(str) == x); in test()
/external/libchrome/base/strings/
Dstring_piece_unittest.cc427 ASSERT_EQ(a.find_last_not_of(b), a.size()-1); in TYPED_TEST()
428 ASSERT_EQ(a.find_last_not_of(c), 22U); in TYPED_TEST()
429 ASSERT_EQ(b.find_last_not_of(a), Piece::npos); in TYPED_TEST()
430 ASSERT_EQ(b.find_last_not_of(b), Piece::npos); in TYPED_TEST()
431 ASSERT_EQ(f.find_last_not_of(i), 4U); in TYPED_TEST()
432 ASSERT_EQ(a.find_last_not_of(c, 24), 22U); in TYPED_TEST()
433 ASSERT_EQ(a.find_last_not_of(b, 3), 3U); in TYPED_TEST()
434 ASSERT_EQ(a.find_last_not_of(b, 2), Piece::npos); in TYPED_TEST()
436 ASSERT_EQ(f.find_last_not_of(d), f.size()-1); in TYPED_TEST()
437 ASSERT_EQ(f.find_last_not_of(e), f.size()-1); in TYPED_TEST()
[all …]
Dstring_piece.h123 BASE_EXPORT size_t find_last_not_of(const StringPiece& self,
126 BASE_EXPORT size_t find_last_not_of(const StringPiece16& self,
129 BASE_EXPORT size_t find_last_not_of(const StringPiece16& self,
132 BASE_EXPORT size_t find_last_not_of(const StringPiece& self,
358 size_type find_last_not_of(const BasicStringPiece& s,
360 return internal::find_last_not_of(*this, s, pos);
362 size_type find_last_not_of(value_type c,
364 return internal::find_last_not_of(*this, c, pos);
Dstring_piece.cc344 size_t find_last_not_of(const StringPiece& self, in find_last_not_of() function
356 return find_last_not_of(self, s.data()[0], pos); in find_last_not_of()
370 size_t find_last_not_of(const StringPiece16& self, in find_last_not_of() function
408 size_t find_last_not_of(const StringPiece& self, in find_last_not_of() function
414 size_t find_last_not_of(const StringPiece16& self, in find_last_not_of() function
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc503 EXPECT_EQ(a.find_last_not_of(b), a.size()-1); in TEST()
504 EXPECT_EQ(a.find_last_not_of(c), 22); in TEST()
505 EXPECT_EQ(b.find_last_not_of(a), StringPiece::npos); in TEST()
506 EXPECT_EQ(b.find_last_not_of(b), StringPiece::npos); in TEST()
507 EXPECT_EQ(f.find_last_not_of(i), 4); in TEST()
508 EXPECT_EQ(a.find_last_not_of(c, 24), 22); in TEST()
509 EXPECT_EQ(a.find_last_not_of(b, 3), 3); in TEST()
510 EXPECT_EQ(a.find_last_not_of(b, 2), StringPiece::npos); in TEST()
512 EXPECT_EQ(f.find_last_not_of(d), f.size()-1); in TEST()
513 EXPECT_EQ(f.find_last_not_of(e), f.size()-1); in TEST()
[all …]
Dstringpiece.cc226 stringpiece_ssize_type StringPiece::find_last_not_of(StringPiece s, in find_last_not_of() function in google::protobuf::StringPiece
234 if (s.length_ == 1) return find_last_not_of(s.ptr_[0], pos); in find_last_not_of()
246 stringpiece_ssize_type StringPiece::find_last_not_of(char c, in find_last_not_of() function in google::protobuf::StringPiece
Dstringpiece.h392 stringpiece_ssize_type find_last_not_of(StringPiece s,
394 stringpiece_ssize_type find_last_not_of(char c, size_type pos = npos) const;
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTString.h441 size_t find_last_not_of(char _Ch, size_t _Off = 0) const;
449 size_t find_last_not_of(const char* _Ptr, size_t _Off = 0) const;
458 size_t find_last_not_of(const char* _Ptr, size_t _Off, size_t _Count) const;
466 size_t find_last_not_of(const CPVRTString& _Str, size_t _Off = 0) const;
DPVRTString.cpp966 size_t CPVRTString::find_last_not_of(char _Ch, size_t _Off) const in find_last_not_of() function in CPVRTString
985 size_t CPVRTString::find_last_not_of(const char* _Ptr, size_t _Off) const in find_last_not_of() function in CPVRTString
1011 size_t CPVRTString::find_last_not_of(const char* _Ptr, size_t _Off, size_t _Count) const in find_last_not_of() function in CPVRTString
1037 size_t CPVRTString::find_last_not_of(const CPVRTString& _Str, size_t _Off) const in find_last_not_of() function in CPVRTString
1875 size_t end = strLine.find_last_not_of(" \t \n\r"); in PVRTStringStripWhiteSpaceFromEndOf()
/external/libcxx/test/std/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()
Dstring_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()
162 assert(s.find_last_not_of({"abc", 1}) == s.size() - 1); in main()
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_view_size.pass.cpp23 assert(s.find_last_not_of(sv, pos) == x); in test()
32 assert(s.find_last_not_of(sv) == x); in test()
/external/llvm/include/llvm/ADT/
DStringRef.h332 size_t find_last_not_of(char C, size_t From = npos) const;
338 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
565 return drop_back(Length - std::min(Length, find_last_not_of(Char) + 1)); in rtrim()
571 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
/external/libcxx/include/
Dstring_view141 … constexpr size_type find_last_not_of(basic_string_view s, size_type pos = npos) const noexcept;
142 constexpr size_type find_last_not_of(charT c, size_type pos = npos) const noexcept;
143 constexpr size_type find_last_not_of(const charT* s, size_type pos, size_type n) const;
144 constexpr size_type find_last_not_of(const charT* s, size_type pos = npos) const;
546 // find_last_not_of
548 size_type find_last_not_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
550 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_last_not_of(): receive…
556 size_type find_last_not_of(_CharT __c, size_type __pos=npos) const _NOEXCEPT
563 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const
565 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_last_not_of(): received nullptr");
[all …]
/external/perf_data_converter/src/quipper/
Dstring_utils.cc13 size_t end = str->find_last_not_of(kWhitespaceCharacters); in TrimWhitespace()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringRef.h432 size_t find_last_not_of(char C, size_t From = npos) const;
439 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
812 return drop_back(Length - std::min(Length, find_last_not_of(Char) + 1)); in rtrim()
819 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DStringRef.h435 size_t find_last_not_of(char C, size_t From = npos) const;
442 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
835 return drop_back(Length - std::min(Length, find_last_not_of(Char) + 1)); in rtrim()
842 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
/external/libchrome/base/files/
Dfile_util.cc107 std::string::size_type end1 = line1.find_last_not_of("\r\n"); in TextContentsEqual()
113 std::string::size_type end2 = line2.find_last_not_of("\r\n"); in TextContentsEqual()
/external/libchrome/base/
Dbase64url.cc39 output->find_last_not_of(kPaddingChar); in Base64UrlEncode()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc333 ? src.find_last_not_of('=') + 1 in DecodeBase64()
347 ? src.find_last_not_of('=') + 1 in DecodeBase64()
/external/parameter-framework/upstream/remote-processor/
DRequestMessage.cpp147 strTrimmed.erase(strTrimmed.find_last_not_of(gacDelimiters) + 1); in trim()

123