Home
last modified time | relevance | path

Searched refs:ByAnyChar (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dabseil-faster-strsplit-delimiter.cpp29 class ByAnyChar { class
31 explicit ByAnyChar(absl::string_view);
32 ~ByAnyChar();
72 absl::StrSplit("ABC", absl::ByAnyChar("\n")); in SplitDelimiters()
83 absl::StrSplit("ABC", absl::ByAnyChar("")); in SplitDelimiters()
84 absl::StrSplit("ABC", absl::ByAnyChar(" \t")); in SplitDelimiters()
99 auto delim = absl::MaxSplits(absl::ByAnyChar(" "), 1); in SplitDelimiters()
123 FunctionTemplate<absl::ByAnyChar>(); in FunctionTemplateCaller()
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dabseil-faster-strsplit-delimiter.rst9 It will also catch code using ``absl::ByAnyChar()`` for just a single character
27 // Original - the argument is a string literal inside absl::ByAnyChar call.
28 for (auto piece : absl::StrSplit(str, absl::ByAnyChar("B"))) {
31 // overload of absl::StrSplit() to be used and we do not need absl::ByAnyChar
/external/libtextclassifier/abseil-cpp/absl/strings/
Dstr_split.cc113 ByAnyChar::ByAnyChar(absl::string_view sp) : delimiters_(sp) {} in ByAnyChar() function in absl::ByAnyChar
115 absl::string_view ByAnyChar::Find(absl::string_view text, size_t pos) const { in Find()
Dstr_split.h182 class ByAnyChar {
184 explicit ByAnyChar(absl::string_view sp);
Dstr_split_test.cc168 using absl::ByAnyChar; in TEST()
169 std::vector<std::string> v = absl::StrSplit("a,b;c", ByAnyChar(",;")); in TEST()
686 absl::StrSplit(u8"Foo h\u00E4llo th\u4E1Ere", absl::ByAnyChar(" \t")); in TEST()
858 TEST(Delimiter, ByAnyChar) { in TEST() argument
859 using absl::ByAnyChar; in TEST()
860 ByAnyChar one_delim(","); in TEST()
873 ByAnyChar two_delims(",;"); in TEST()
895 ByAnyChar empty(""); in TEST()
/external/abseil-cpp/absl/strings/
Dstr_split.cc113 ByAnyChar::ByAnyChar(absl::string_view sp) : delimiters_(sp) {} in ByAnyChar() function in absl::ByAnyChar
115 absl::string_view ByAnyChar::Find(absl::string_view text, size_t pos) const { in Find()
Dstr_split.h181 class ByAnyChar {
183 explicit ByAnyChar(absl::string_view sp);
Dstr_split_test.cc166 using absl::ByAnyChar; in TEST()
167 std::vector<std::string> v = absl::StrSplit("a,b;c", ByAnyChar(",;")); in TEST()
672 absl::StrSplit(u8"Foo h\u00E4llo th\u4E1Ere", absl::ByAnyChar(" \t")); in TEST()
844 TEST(Delimiter, ByAnyChar) { in TEST() argument
845 using absl::ByAnyChar; in TEST()
846 ByAnyChar one_delim(","); in TEST()
859 ByAnyChar two_delims(",;"); in TEST()
881 ByAnyChar empty(""); in TEST()
/external/openscreen/third_party/abseil/src/absl/strings/
Dstr_split.cc113 ByAnyChar::ByAnyChar(absl::string_view sp) : delimiters_(sp) {} in ByAnyChar() function in absl::ByAnyChar
115 absl::string_view ByAnyChar::Find(absl::string_view text, size_t pos) const { in Find()
Dstr_split_test.cc168 using absl::ByAnyChar; in TEST()
169 std::vector<std::string> v = absl::StrSplit("a,b;c", ByAnyChar(",;")); in TEST()
686 absl::StrSplit(u8"Foo h\u00E4llo th\u4E1Ere", absl::ByAnyChar(" \t")); in TEST()
858 TEST(Delimiter, ByAnyChar) { in TEST() argument
859 using absl::ByAnyChar; in TEST()
860 ByAnyChar one_delim(","); in TEST()
873 ByAnyChar two_delims(",;"); in TEST()
895 ByAnyChar empty(""); in TEST()
Dstr_split.h182 class ByAnyChar {
184 explicit ByAnyChar(absl::string_view sp);
Dstr_split_benchmark.cc64 absl::StrSplit(test, absl::ByAnyChar(kDelimiters)); in BM_Split2StringViewByAnyChar()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dstr_split.cc113 ByAnyChar::ByAnyChar(absl::string_view sp) : delimiters_(sp) {} in ByAnyChar() function in absl::ByAnyChar
115 absl::string_view ByAnyChar::Find(absl::string_view text, size_t pos) const { in Find()
Dstr_split.h181 class ByAnyChar {
183 explicit ByAnyChar(absl::string_view sp);
Dstr_split_test.cc166 using absl::ByAnyChar; in TEST()
167 std::vector<std::string> v = absl::StrSplit("a,b;c", ByAnyChar(",;")); in TEST()
672 absl::StrSplit(u8"Foo h\u00E4llo th\u4E1Ere", absl::ByAnyChar(" \t")); in TEST()
844 TEST(Delimiter, ByAnyChar) { in TEST() argument
845 using absl::ByAnyChar; in TEST()
846 ByAnyChar one_delim(","); in TEST()
859 ByAnyChar two_delims(",;"); in TEST()
881 ByAnyChar empty(""); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dstr_split.cc113 ByAnyChar::ByAnyChar(absl::string_view sp) : delimiters_(sp) {} in ByAnyChar() function in absl::ByAnyChar
115 absl::string_view ByAnyChar::Find(absl::string_view text, size_t pos) const { in Find()
Dstr_split.h182 class ByAnyChar {
184 explicit ByAnyChar(absl::string_view sp);
Dstr_split_test.cc168 using absl::ByAnyChar; in TEST()
169 std::vector<std::string> v = absl::StrSplit("a,b;c", ByAnyChar(",;")); in TEST()
686 absl::StrSplit(u8"Foo h\u00E4llo th\u4E1Ere", absl::ByAnyChar(" \t")); in TEST()
858 TEST(Delimiter, ByAnyChar) { in TEST() argument
859 using absl::ByAnyChar; in TEST()
860 ByAnyChar one_delim(","); in TEST()
873 ByAnyChar two_delims(",;"); in TEST()
895 ByAnyChar empty(""); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DFasterStrsplitDelimiterCheck.cpp114 if (const auto *ByAnyChar = Result.Nodes.getNodeAs<Expr>("ByAnyChar")) in check() local
115 Range = ByAnyChar->getSourceRange(); in check()
/external/tensorflow/tensorflow/core/platform/
Dstr_util.h134 : absl::StrSplit(text, absl::ByAnyChar(delims)); in Split()
140 : absl::StrSplit(text, absl::ByAnyChar(delims), p); in Split()
/external/libtextclassifier/abseil-cpp/absl/flags/internal/
Dusage.cc124 for (auto line : absl::StrSplit(str, absl::ByAnyChar("\n\r"))) { in Write()
130 absl::StrSplit(line, absl::ByAnyChar(" \t"), absl::SkipEmpty())) { in Write()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/flags/internal/
Dusage.cc124 for (auto line : absl::StrSplit(str, absl::ByAnyChar("\n\r"))) { in Write()
130 absl::StrSplit(line, absl::ByAnyChar(" \t"), absl::SkipEmpty())) { in Write()
/external/webrtc/third_party/abseil-cpp/absl/flags/internal/
Dusage.cc142 for (auto line : absl::StrSplit(str, absl::ByAnyChar("\n\r"))) { in Write()
148 absl::StrSplit(line, absl::ByAnyChar(" \t"), absl::SkipEmpty())) { in Write()
/external/abseil-cpp/absl/flags/internal/
Dusage.cc142 for (auto line : absl::StrSplit(str, absl::ByAnyChar("\n\r"))) { in Write()
148 absl::StrSplit(line, absl::ByAnyChar(" \t"), absl::SkipEmpty())) { in Write()
/external/openscreen/third_party/abseil/src/absl/flags/internal/
Dusage.cc127 for (auto line : absl::StrSplit(str, absl::ByAnyChar("\n\r"))) { in Write()
133 absl::StrSplit(line, absl::ByAnyChar(" \t"), absl::SkipEmpty())) { in Write()

12