Searched refs:StrSplit (Results 1 – 7 of 7) sorted by relevance
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/abseil/ |
H A D | faster-strsplit-delimiter.cpp | 20 strings_internal::Splitter StrSplit(absl::string_view, Delim) { in StrSplit() function 24 strings_internal::Splitter StrSplit(absl::string_view, Delim, Pred) { in StrSplit() function 42 absl::StrSplit("ABC", "A"); in SplitDelimiters() 46 absl::StrSplit("ABC", "\x01"); in SplitDelimiters() 50 absl::StrSplit("ABC", "\001"); in SplitDelimiters() 54 absl::StrSplit("ABC", R"(A)"); in SplitDelimiters() 58 absl::StrSplit("ABC", R"(')"); in SplitDelimiters() 62 absl::StrSplit("ABC", R"( in SplitDelimiters() 67 absl::StrSplit("ABC", R"delimiter(A)delimiter"); in SplitDelimiters() 71 absl::StrSplit("ABC", absl::ByAnyChar("\n")); in SplitDelimiters() [all …]
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/abseil/ |
H A D | faster-strsplit-delimiter.rst | 6 Finds instances of ``absl::StrSplit()`` or ``absl::MaxSplits()`` where the 20 for (auto piece : absl::StrSplit(str, "B")) { 23 // overload of absl::StrSplit() to be used. 24 for (auto piece : absl::StrSplit(str, 'B')) { 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 33 for (auto piece : absl::StrSplit(str, 'B')) { 37 for (auto piece : absl::StrSplit(str, absl::MaxSplits("B", 1))) { 40 // overload of absl::StrSplit() to be used. 41 for (auto piece : absl::StrSplit(str, absl::MaxSplits('B', 1))) {
|
/llvm-project/third-party/benchmark/test/ |
H A D | string_util_gtest.cc | 156 TEST(StringUtilTest, StrSplit) { in TEST() argument 157 EXPECT_EQ(benchmark::StrSplit("", ','), std::vector<std::string>{}); in TEST() 158 EXPECT_EQ(benchmark::StrSplit("hello", ','), in TEST() 160 EXPECT_EQ(benchmark::StrSplit("hello,there,is,more", ','), in TEST()
|
/llvm-project/third-party/benchmark/src/ |
H A D | commandlineflags.cc | 90 for (const auto& kvpair : StrSplit(str, ',')) { in ParseKvPairs() 91 const auto kv = StrSplit(kvpair, '='); in ParseKvPairs() 267 for (const auto& kvpair : StrSplit(value_str, ',')) { in ParseKeyValueFlag() 268 const auto kv = StrSplit(kvpair, '='); in ParseKeyValueFlag()
|
H A D | string_util.h | 46 std::vector<std::string> StrSplit(const std::string& str, char delim);
|
H A D | string_util.cc | 155 std::vector<std::string> StrSplit(const std::string& str, char delim) { in StrSplit() function
|
H A D | benchmark.cc | 389 StrSplit(FLAGS_benchmark_perf_counters, ',')); in RunBenchmarks()
|