Home
last modified time | relevance | path

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

123

/third_party/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.cc228 stringpiece_ssize_type StringPiece::find_last_not_of(StringPiece s, in find_last_not_of() function in google::protobuf::StringPiece
236 if (s.length_ == 1) return find_last_not_of(s.ptr_[0], pos); in find_last_not_of()
248 stringpiece_ssize_type StringPiece::find_last_not_of(char c, in find_last_not_of() function in google::protobuf::StringPiece
Dstringpiece.h383 stringpiece_ssize_type find_last_not_of(StringPiece s,
385 stringpiece_ssize_type find_last_not_of(char c, size_type pos = npos) const;
/third_party/abseil-cpp/absl/strings/
Dstring_view_test.cc628 EXPECT_EQ(a.find_last_not_of(b), a.size()-1); in TEST()
629 EXPECT_EQ(a.find_last_not_of(c), 22); in TEST()
630 EXPECT_EQ(b.find_last_not_of(a), absl::string_view::npos); in TEST()
631 EXPECT_EQ(b.find_last_not_of(b), absl::string_view::npos); in TEST()
632 EXPECT_EQ(f.find_last_not_of(i), 4); in TEST()
633 EXPECT_EQ(a.find_last_not_of(c, 24), 22); in TEST()
634 EXPECT_EQ(a.find_last_not_of(b, 3), 3); in TEST()
635 EXPECT_EQ(a.find_last_not_of(b, 2), absl::string_view::npos); in TEST()
637 EXPECT_EQ(f.find_last_not_of(d), f.size()-1); in TEST()
638 EXPECT_EQ(f.find_last_not_of(e), f.size()-1); in TEST()
[all …]
Dstring_view.cc183 string_view::size_type string_view::find_last_not_of(string_view s, in find_last_not_of() function in absl::string_view
190 if (s.length_ == 1) return find_last_not_of(s.ptr_[0], pos); in find_last_not_of()
201 string_view::size_type string_view::find_last_not_of(char c, in find_last_not_of() function in absl::string_view
Dstring_view.h516 size_type find_last_not_of(string_view s,
521 size_type find_last_not_of(char c, size_type pos = npos) const
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstring_view_test.cc654 EXPECT_EQ(a.find_last_not_of(b), a.size()-1); in TEST()
655 EXPECT_EQ(a.find_last_not_of(c), 22); in TEST()
656 EXPECT_EQ(b.find_last_not_of(a), absl::string_view::npos); in TEST()
657 EXPECT_EQ(b.find_last_not_of(b), absl::string_view::npos); in TEST()
658 EXPECT_EQ(f.find_last_not_of(i), 4); in TEST()
659 EXPECT_EQ(a.find_last_not_of(c, 24), 22); in TEST()
660 EXPECT_EQ(a.find_last_not_of(b, 3), 3); in TEST()
661 EXPECT_EQ(a.find_last_not_of(b, 2), absl::string_view::npos); in TEST()
663 EXPECT_EQ(f.find_last_not_of(d), f.size()-1); in TEST()
664 EXPECT_EQ(f.find_last_not_of(e), f.size()-1); in TEST()
[all …]
Dstring_view.h578 size_type find_last_not_of(string_view s,
583 size_type find_last_not_of(char c, size_type pos = npos) const noexcept;
587 size_type find_last_not_of(const char* s, size_type pos, in find_last_not_of() function
589 return find_last_not_of(string_view(s, count), pos); in find_last_not_of()
594 size_type find_last_not_of(const char* s, size_type pos = npos) const {
595 return find_last_not_of(string_view(s), pos);
Dstring_view.cc180 string_view::size_type string_view::find_last_not_of( in find_last_not_of() function in absl::string_view
186 if (s.length_ == 1) return find_last_not_of(s.ptr_[0], pos); in find_last_not_of()
197 string_view::size_type string_view::find_last_not_of( in find_last_not_of() function in absl::string_view
/third_party/boost/libs/test/test/utils-ts/
Dalgorithm-test.cpp83 …BOOST_TEST( utu::find_last_not_of( cs.begin(), cs.end(), another.begin(), another.end() ) == cs.en… in BOOST_AUTO_TEST_CASE()
112 …BOOST_TEST( TEST_SURROUND_EXPRESSION(utu::find_last_not_of( cs.begin(), cs.end(), another.begin(),… in BOOST_AUTO_TEST_CASE()
115 …BOOST_TEST( TEST_SURROUND_EXPRESSION(utu::find_last_not_of( cs.begin(), cs.end(), another.begin(),… in BOOST_AUTO_TEST_CASE()
118 …BOOST_TEST( utu::find_last_not_of( cs.begin(), cs.end(), another.begin(), another.end() ) == cs.en… in BOOST_AUTO_TEST_CASE()
/third_party/libphonenumber/cpp/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;
/third_party/boost/libs/static_string/doc/html/
Dstatic_string_HTML.manifest187 static_string/ref/boost__static_strings__basic_static_string/find_last_not_of.html
188 static_string/ref/boost__static_strings__basic_static_string/find_last_not_of/overload1.html
189 static_string/ref/boost__static_strings__basic_static_string/find_last_not_of/overload2.html
190 static_string/ref/boost__static_strings__basic_static_string/find_last_not_of/overload3.html
191 static_string/ref/boost__static_strings__basic_static_string/find_last_not_of/overload4.html
192 static_string/ref/boost__static_strings__basic_static_string/find_last_not_of/overload5.html
/third_party/boost/boost/utility/
Dstring_view.hpp350 …BOOST_CXX14_CONSTEXPR size_type find_last_not_of(basic_string_view s, size_type pos = npos) const … in find_last_not_of() function in boost::basic_string_view
359 …BOOST_CXX14_CONSTEXPR size_type find_last_not_of(charT c, size_type pos = npos) const BOOST_NOEXCE… in find_last_not_of() function in boost::basic_string_view
360 { return find_last_not_of(basic_string_view(&c, 1), pos); } in find_last_not_of()
361 …BOOST_CXX14_CONSTEXPR size_type find_last_not_of(const charT* s, size_type pos, size_type n) const… in find_last_not_of() function in boost::basic_string_view
362 { return find_last_not_of(basic_string_view(s, n), pos); } in find_last_not_of()
363 …BOOST_CXX14_CONSTEXPR size_type find_last_not_of(const charT* s, size_type pos = npos) const BOOST… in find_last_not_of() function in boost::basic_string_view
364 { return find_last_not_of(basic_string_view(s), pos); } in find_last_not_of()
/third_party/gn/src/base/files/
Dfile_util.cc98 std::string::size_type end1 = line1.find_last_not_of("\r\n"); in TextContentsEqual()
104 std::string::size_type end2 = line2.find_last_not_of("\r\n"); in TextContentsEqual()
/third_party/skia/third_party/externals/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));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringRef.h441 size_t find_last_not_of(char C, size_t From = npos) const;
448 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
826 return drop_back(Length - std::min(Length, find_last_not_of(Char) + 1)); in rtrim()
833 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
/third_party/boost/boost/test/utils/
Dalgorithm.hpp183 find_last_not_of( BidirectionalIterator1 first1, BidirectionalIterator1 last1, in find_last_not_of() function
207 find_last_not_of( BidirectionalIterator1 first1, BidirectionalIterator1 last1, in find_last_not_of() function
/third_party/boost/libs/utility/test/
Dstring_ref_test2.cpp224 BOOST_TEST ( sr1.find_last_not_of ( sr2 ) == string_ref::npos ); in find()
232 string_ref::size_type pos2 = sr1.find_last_not_of(*p); in find()
Dstring_view_test2.cpp228 BOOST_TEST ( sr1.find_last_not_of ( sr2 ) == string_view::npos ); in find()
236 string_view::size_type pos2 = sr1.find_last_not_of(*p); in find()
/third_party/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc377 0, HasSuffixString(src, "=") ? src.find_last_not_of('=') + 1 in DecodeBase64()
390 0, HasSuffixString(src, "=") ? src.find_last_not_of('=') + 1 in DecodeBase64()
/third_party/mindspore/mindspore/lite/src/
Dcpu_info.cc114 prefix.erase(prefix.find_last_not_of('\t') + 1); in GetArmProcCpuInfo()
/third_party/boost/libs/program_options/src/
Dconfig_file.cpp75 n2 = s.find_last_not_of(" \t\r\n"); in trim_ws()
/third_party/mindspore/mindspore/lite/src/common/
Dutils.h151 input->erase(input->find_last_not_of(WHITESPACE) + 1); in Trim()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/string/
Dnormalize.cc58 auto end = str.find_last_not_of(pattern); in Trim()

123