Home
last modified time | relevance | path

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

123456

/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()
/external/libchrome/base/strings/
Dstring_piece_unittest.cc393 ASSERT_EQ(h.find_last_of(a), Piece::npos); in TYPED_TEST()
394 ASSERT_EQ(g.find_last_of(a), g.size()-1); in TYPED_TEST()
395 ASSERT_EQ(a.find_last_of(b), 2U); in TYPED_TEST()
396 ASSERT_EQ(a.find_last_of(c), a.size()-1); in TYPED_TEST()
397 ASSERT_EQ(f.find_last_of(i), 6U); in TYPED_TEST()
398 ASSERT_EQ(a.find_last_of('a'), 0U); in TYPED_TEST()
399 ASSERT_EQ(a.find_last_of('b'), 1U); in TYPED_TEST()
400 ASSERT_EQ(a.find_last_of('z'), 25U); in TYPED_TEST()
401 ASSERT_EQ(a.find_last_of('a', 5), 0U); in TYPED_TEST()
402 ASSERT_EQ(a.find_last_of('b', 5), 1U); in TYPED_TEST()
[all …]
Dstring_piece.h110 BASE_EXPORT size_t find_last_of(const StringPiece& self,
113 BASE_EXPORT size_t find_last_of(const StringPiece16& self,
116 BASE_EXPORT size_t find_last_of(const StringPiece& self,
119 BASE_EXPORT size_t find_last_of(const StringPiece16& self,
348 size_type find_last_of(const BasicStringPiece& s,
350 return internal::find_last_of(*this, s, pos);
352 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/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dgenerated_examples_zip_test.cc66 string tflite_dir = test_path.substr(0, test_path.find_last_of("/")); in TEST_P()
67 string test_name = test_path.substr(test_path.find_last_of('/')); in TEST_P()
83 size_t last_slash = param_name.find_last_of("\\/"); in operator ()()
/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/swiftshader/third_party/llvm-7.0/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/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/src/Common/
DSharedLibrary.cpp29 return directory.substr(0, directory.find_last_of("\\/") + 1).c_str(); in getModuleDirectory()
45 return directory.substr(0, directory.find_last_of("\\/") + 1).c_str(); in getModuleDirectory()
/external/flatbuffers/src/
Dutil.cpp127 size_t i = filepath.find_last_of("."); in StripExtension()
132 size_t i = filepath.find_last_of("."); in GetExtension()
137 size_t i = filepath.find_last_of(PathSeparatorSet); in StripPath()
142 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/swiftshader/src/System/
DSharedLibrary.hpp103 return directory.substr(0, directory.find_last_of("\\/") + 1).c_str(); in getModuleDirectory()
162 return directory.substr(0, directory.find_last_of("\\/") + 1).c_str(); in getModuleDirectory()
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/
Dstring_size.pass.cpp24 assert(s.find_last_of(str, pos) == x); in test()
33 assert(s.find_last_of(str) == x); in test()
162 assert(s.find_last_of({"abc", 1}) == std::string::npos); in main()
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()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_scope.cc50 auto last_slash = name.find_last_of("/"); in AddNode()
56 last_slash = name.find_last_of("/"); in AddNode()
67 auto last_slash = node->name().find_last_of("/"); in Build()
/external/libcxx/include/
Dstring_view133 constexpr size_type find_last_of(basic_string_view s, size_type pos = npos) const noexcept;
134 constexpr size_type find_last_of(charT c, size_type pos = npos) const noexcept;
135 constexpr size_type find_last_of(const charT* s, size_type pos, size_type n) const;
136 constexpr size_type find_last_of(const charT* s, size_type pos = npos) const;
485 // find_last_of
487 size_type find_last_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
489 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_last_of(): received nu…
495 size_type find_last_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT
499 size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
501 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_last_of(): received nullptr");
[all …]
/external/tensorflow/tensorflow/lite/testing/
Dgenerated_examples_zip_test.cc256 string tflite_dir = test_path.substr(0, test_path.find_last_of("/")); in TEST_P()
257 string test_name = test_path.substr(test_path.find_last_of('/')); in TEST_P()
300 size_t last_slash = param_name.find_last_of("\\/"); in operator ()()
/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()

123456