Home
last modified time | relevance | path

Searched refs:StrSplit (Results 1 – 7 of 7) sorted by relevance

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/abseil/
H A Dfaster-strsplit-delimiter.cpp20 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 Dfaster-strsplit-delimiter.rst6 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 Dstring_util_gtest.cc156 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 Dcommandlineflags.cc90 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 Dstring_util.h46 std::vector<std::string> StrSplit(const std::string& str, char delim);
H A Dstring_util.cc155 std::vector<std::string> StrSplit(const std::string& str, char delim) { in StrSplit() function
H A Dbenchmark.cc389 StrSplit(FLAGS_benchmark_perf_counters, ',')); in RunBenchmarks()