Home
last modified time | relevance | path

Searched refs:find_last_of (Results 1 – 25 of 92) sorted by relevance

1234

/external/libcxx/test/std/strings/string.view/string.view.find/
Dfind_last_of_char_size.pass.cpp25 assert(s.find_last_of(c, pos) == x); in test()
34 assert(s.find_last_of(c) == x); in test()
76 static_assert (sv1.find_last_of( 'i', 0 ) == SV::npos, "" ); in main()
77 static_assert (sv1.find_last_of( 'i', 1 ) == SV::npos, "" ); in main()
78 static_assert (sv2.find_last_of( 'a', 0 ) == 0, "" ); in main()
79 static_assert (sv2.find_last_of( 'a', 1 ) == 0, "" ); in main()
80 static_assert (sv2.find_last_of( 'e', 5 ) == 4, "" ); in main()
Dfind_last_of_pointer_size.pass.cpp25 assert(s.find_last_of(str, pos) == x); in test()
34 assert(s.find_last_of(str) == x); in test()
159 static_assert (sv1.find_last_of( "", 0) == SV::npos, "" ); in main()
160 static_assert (sv1.find_last_of( "irkhs", 5) == SV::npos, "" ); in main()
161 static_assert (sv2.find_last_of( "", 0) == SV::npos, "" ); in main()
162 static_assert (sv2.find_last_of( "gfsrt", 5) == SV::npos, "" ); in main()
163 static_assert (sv2.find_last_of( "lecar", 5) == 4, "" ); in main()
Dfind_last_of_pointer_size_size.pass.cpp25 assert(s.find_last_of(str, pos, n) == x); in test()
386 static_assert (sv1.find_last_of( "", 0, 0) == SV::npos, "" ); in main()
387 static_assert (sv1.find_last_of( "irkhs", 0, 5) == SV::npos, "" ); in main()
388 static_assert (sv2.find_last_of( "", 0, 0) == SV::npos, "" ); in main()
389 static_assert (sv2.find_last_of( "gfsrt", 5, 5) == SV::npos, "" ); in main()
390 static_assert (sv2.find_last_of( "lecar", 5, 5) == 4, "" ); in main()
Dfind_last_of_string_view_size.pass.cpp21 assert(s.find_last_of(str, pos) == x); in test()
30 assert(s.find_last_of(str) == x); in test()
/external/libcxx/test/std/experimental/string.view/string.view.find/
Dfind_last_of_char_size.pass.cpp25 assert(s.find_last_of(c, pos) == x); in test()
34 assert(s.find_last_of(c) == x); in test()
76 static_assert (sv1.find_last_of( 'i', 0 ) == SV::npos, "" ); in main()
77 static_assert (sv1.find_last_of( 'i', 1 ) == SV::npos, "" ); in main()
78 static_assert (sv2.find_last_of( 'a', 0 ) == 0, "" ); in main()
79 static_assert (sv2.find_last_of( 'a', 1 ) == 0, "" ); in main()
80 static_assert (sv2.find_last_of( 'e', 5 ) == 4, "" ); in main()
Dfind_last_of_pointer_size.pass.cpp25 assert(s.find_last_of(str, pos) == x); in test()
34 assert(s.find_last_of(str) == x); in test()
159 static_assert (sv1.find_last_of( "", 0) == SV::npos, "" ); in main()
160 static_assert (sv1.find_last_of( "irkhs", 5) == SV::npos, "" ); in main()
161 static_assert (sv2.find_last_of( "", 0) == SV::npos, "" ); in main()
162 static_assert (sv2.find_last_of( "gfsrt", 5) == SV::npos, "" ); in main()
163 static_assert (sv2.find_last_of( "lecar", 5) == 4, "" ); in main()
Dfind_last_of_pointer_size_size.pass.cpp25 assert(s.find_last_of(str, pos, n) == x); in test()
386 static_assert (sv1.find_last_of( "", 0, 0) == SV::npos, "" ); in main()
387 static_assert (sv1.find_last_of( "irkhs", 0, 5) == SV::npos, "" ); in main()
388 static_assert (sv2.find_last_of( "", 0, 0) == SV::npos, "" ); in main()
389 static_assert (sv2.find_last_of( "gfsrt", 5, 5) == SV::npos, "" ); in main()
390 static_assert (sv2.find_last_of( "lecar", 5, 5) == 4, "" ); in main()
Dfind_last_of_string_view_size.pass.cpp21 assert(s.find_last_of(str, pos) == x); in test()
30 assert(s.find_last_of(str) == x); in test()
/external/libchrome/base/strings/
Dstring_piece_unittest.cc391 ASSERT_EQ(h.find_last_of(a), Piece::npos); in TYPED_TEST()
392 ASSERT_EQ(g.find_last_of(a), g.size()-1); in TYPED_TEST()
393 ASSERT_EQ(a.find_last_of(b), 2U); in TYPED_TEST()
394 ASSERT_EQ(a.find_last_of(c), a.size()-1); in TYPED_TEST()
395 ASSERT_EQ(f.find_last_of(i), 6U); in TYPED_TEST()
396 ASSERT_EQ(a.find_last_of('a'), 0U); in TYPED_TEST()
397 ASSERT_EQ(a.find_last_of('b'), 1U); in TYPED_TEST()
398 ASSERT_EQ(a.find_last_of('z'), 25U); in TYPED_TEST()
399 ASSERT_EQ(a.find_last_of('a', 5), 0U); in TYPED_TEST()
400 ASSERT_EQ(a.find_last_of('b', 5), 1U); in TYPED_TEST()
[all …]
Dstring_piece.h112 BASE_EXPORT size_t find_last_of(const StringPiece& self,
115 BASE_EXPORT size_t find_last_of(const StringPiece16& self,
118 BASE_EXPORT size_t find_last_of(const StringPiece& self,
121 BASE_EXPORT size_t find_last_of(const StringPiece16& self,
335 size_type find_last_of(const BasicStringPiece& s,
337 return internal::find_last_of(*this, s, pos);
339 size_type find_last_of(value_type c,
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc469 EXPECT_EQ(h.find_last_of(a), StringPiece::npos); in TEST()
470 EXPECT_EQ(g.find_last_of(a), g.size()-1); in TEST()
471 EXPECT_EQ(a.find_last_of(b), 2); in TEST()
472 EXPECT_EQ(a.find_last_of(c), a.size()-1); in TEST()
473 EXPECT_EQ(f.find_last_of(i), 6); in TEST()
474 EXPECT_EQ(a.find_last_of('a'), 0); in TEST()
475 EXPECT_EQ(a.find_last_of('b'), 1); in TEST()
476 EXPECT_EQ(a.find_last_of('z'), 25); in TEST()
477 EXPECT_EQ(a.find_last_of('a', 5), 0); in TEST()
478 EXPECT_EQ(a.find_last_of('b', 5), 1); in TEST()
[all …]
/external/eigen/scripts/
Deigen_gen_credits.cpp85 size_t last_space = line.find_last_of(' '); in contributors_map_from_churn_output()
112 size_t last_space = name.find_last_of(' '); in lastname()
142 size_t last_bar = line.find_last_of('|'); in add_online_info_into_contributors_list()
148 last_bar = line.find_last_of('|'); in add_online_info_into_contributors_list()
154 last_bar = line.find_last_of('|'); in add_online_info_into_contributors_list()
/external/llvm/include/llvm/ADT/
DSmallString.h205 size_t find_last_of(char C, size_t From = StringRef::npos) const {
206 return str().find_last_of(C, From);
213 size_t find_last_of(
215 return str().find_last_of(Chars, From);
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallString.h205 size_t find_last_of(char C, size_t From = StringRef::npos) const {
206 return str().find_last_of(C, From);
213 size_t find_last_of(
215 return str().find_last_of(Chars, From);
/external/flatbuffers/include/flatbuffers/
Dutil.h173 size_t i = filepath.find_last_of("."); in StripExtension()
179 size_t i = filepath.find_last_of("."); in GetExtension()
185 size_t i = filepath.find_last_of(PathSeparatorSet); in StripPath()
191 size_t i = filepath.find_last_of(PathSeparatorSet); in StripFileName()
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTString.h474 size_t find_last_of(char _Ch, size_t _Off = 0) const;
482 size_t find_last_of(const char* _Ptr, size_t _Off = 0) const;
491 size_t find_last_of(const char* _Ptr, size_t _Off, size_t _Count) const;
499 size_t find_last_of(const CPVRTString& _Str, size_t _Off = 0) const;
DPVRTString.cpp1063 size_t CPVRTString::find_last_of(char _Ch, size_t _Off) const in find_last_of() function in CPVRTString
1082 size_t CPVRTString::find_last_of(const char* _Ptr, size_t _Off) const in find_last_of() function in CPVRTString
1104 size_t CPVRTString::find_last_of(const char* _Ptr, size_t _Off, size_t _Count) const in find_last_of() function in CPVRTString
1125 size_t CPVRTString::find_last_of(const CPVRTString& _Str, size_t _Off) const in find_last_of() function in CPVRTString
1804 CPVRTString::size_type idx = strFilePath.find_last_of ( '.' ); in PVRTStringGetFileExtension()
1820 size_t i32sep = strFilePath.find_last_of('/'); in PVRTStringGetContainingDirectoryPath()
1823 i32sep = strFilePath.find_last_of('\\'); in PVRTStringGetContainingDirectoryPath()
1840 size_t i32sep = strFilePath.find_last_of('/'); in PVRTStringGetFileName()
1843 i32sep = strFilePath.find_last_of('\\'); in PVRTStringGetFileName()
/external/webrtc/webrtc/test/testsupport/
Dfileutils.cc92 temp_path = temp_path.substr(0, temp_path.find_last_of(kPathDelimiter)); in SetExecutablePath()
127 size_t path_delimiter_index = path.find_last_of(kPathDelimiter); in ProjectRootPath()
135 path_delimiter_index = path.find_last_of(kPathDelimiter); in ProjectRootPath()
/external/webrtc/webrtc/base/
Dpathutils.cc117 std::string::size_type pos = pathname.find_last_of(FOLDER_DELIMS); in SetPathname()
146 pos = folder_.find_last_of(FOLDER_DELIMS, folder_.length() - 2); in folder_name()
158 pos = folder_.find_last_of(FOLDER_DELIMS, folder_.length() - 2); in parent_folder()
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/
Dchar_size.pass.cpp24 assert(s.find_last_of(c, pos) == x); in test()
33 assert(s.find_last_of(c) == x); in test()
Dpointer_size.pass.cpp24 assert(s.find_last_of(str, pos) == x); in test()
33 assert(s.find_last_of(str) == x); in test()
Dstring_size.pass.cpp23 assert(s.find_last_of(str, pos) == x); in test()
32 assert(s.find_last_of(str) == x); in test()
/external/libcxx/include/
Dstring_view134 constexpr size_type find_last_of(basic_string_view s, size_type pos = npos) const noexcept;
135 constexpr size_type find_last_of(charT c, size_type pos = npos) const noexcept;
136 constexpr size_type find_last_of(const charT* s, size_type pos, size_type n) const;
137 constexpr size_type find_last_of(const charT* s, size_type pos = npos) const;
476 // find_last_of
478 size_type find_last_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
480 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_last_of(): received nu…
486 size_type find_last_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT
490 size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
492 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_last_of(): received nullptr");
[all …]
/external/libcxx/include/experimental/
Dstring_view144 constexpr size_type find_last_of(basic_string_view s, size_type pos = npos) const noexcept;
145 constexpr size_type find_last_of(charT c, size_type pos = npos) const noexcept;
146 constexpr size_type find_last_of(const charT* s, size_type pos, size_type n) const;
147 constexpr size_type find_last_of(const charT* s, size_type pos = npos) const;
506 // find_last_of
508 size_type find_last_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
510 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_last_of(): received nu…
516 size_type find_last_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT
520 size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
522 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_last_of(): received nullptr");
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DPathV2.cpp86 size_t pos = str.find_last_of(separators, str.size() - 1); in filename_pos()
90 pos = str.find_last_of(':', str.size() - 2); in filename_pos()
420 size_t pos = p.find_last_of('.'); in replace_extension()
459 size_t pos = fname.find_last_of('.'); in stem()
472 size_t pos = fname.find_last_of('.'); in extension()

1234