Home
last modified time | relevance | path

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

12

/third_party/abseil-cpp/absl/strings/
Dstr_split_test.cc77 std::vector<std::string> v = absl::StrSplit("a,b,c", ","); // NOLINT in TEST()
82 v = absl::StrSplit("a,b,c", ByString(",")); in TEST()
86 EXPECT_THAT(absl::StrSplit("a,b,c", ByString(",")), in TEST()
92 std::vector<std::string> v = absl::StrSplit("a,b,c", ','); in TEST()
97 v = absl::StrSplit("a,b,c", ByChar(',')); in TEST()
103 const std::vector<std::string> v = absl::StrSplit("a=>b=>c", "=>"); in TEST()
109 std::vector<absl::string_view> v = absl::StrSplit("a,b,c", ','); in TEST()
115 std::vector<std::string> v = absl::StrSplit(",a,b,c,", ','); in TEST()
121 std::vector<std::string> v = absl::StrSplit("abc", ','); in TEST()
128 std::vector<std::string> v = absl::StrSplit("abc", ""); in TEST()
[all …]
Dstr_split_benchmark.cc41 std::vector<absl::string_view> result = absl::StrSplit(test, ';'); in BM_Split2StringView()
64 absl::StrSplit(test, absl::ByAnyChar(kDelimiters)); in BM_Split2StringViewByAnyChar()
74 result = absl::StrSplit(test, ';'); in BM_Split2StringViewLifted()
83 std::vector<std::string> result = absl::StrSplit(test, ';'); in BM_Split2String()
96 absl::StrSplit(test, ';', absl::SkipEmpty()); in BM_Split2SplitStringUsing()
110 absl::StrSplit(test, ':', absl::SkipEmpty()); in BM_SplitStringToUnorderedSet()
124 absl::StrSplit(test, ':', absl::SkipEmpty()); in BM_SplitStringToUnorderedMap()
137 std::vector<std::string> result = absl::StrSplit(test, ';'); in BM_SplitStringAllowEmpty()
157 pieces = absl::StrSplit("The quick brown fox jumps over the lazy dog", in BM_SplitStringWithOneChar()
171 auto splitter = absl::StrSplit( in BM_SplitStringWithOneCharNoVector()
Dstr_split.h493 StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d) {
503 StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d,
Dstr_replace_test.cc186 auto splitter = absl::StrSplit(c.data, ':'); in get()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstr_split_test.cc79 std::vector<std::string> v = absl::StrSplit("a,b,c", ","); // NOLINT in TEST()
84 v = absl::StrSplit("a,b,c", ByString(",")); in TEST()
88 EXPECT_THAT(absl::StrSplit("a,b,c", ByString(",")), in TEST()
94 std::vector<std::string> v = absl::StrSplit("a,b,c", ','); in TEST()
99 v = absl::StrSplit("a,b,c", ByChar(',')); in TEST()
105 const std::vector<std::string> v = absl::StrSplit("a=>b=>c", "=>"); in TEST()
111 std::vector<absl::string_view> v = absl::StrSplit("a,b,c", ','); in TEST()
117 std::vector<std::string> v = absl::StrSplit(",a,b,c,", ','); in TEST()
123 std::vector<std::string> v = absl::StrSplit("abc", ','); in TEST()
130 std::vector<std::string> v = absl::StrSplit("abc", ""); in TEST()
[all …]
Dstr_split_benchmark.cc41 std::vector<absl::string_view> result = absl::StrSplit(test, ';'); in BM_Split2StringView()
64 absl::StrSplit(test, absl::ByAnyChar(kDelimiters)); in BM_Split2StringViewByAnyChar()
74 result = absl::StrSplit(test, ';'); in BM_Split2StringViewLifted()
83 std::vector<std::string> result = absl::StrSplit(test, ';'); in BM_Split2String()
96 absl::StrSplit(test, ';', absl::SkipEmpty()); in BM_Split2SplitStringUsing()
110 absl::StrSplit(test, ':', absl::SkipEmpty()); in BM_SplitStringToUnorderedSet()
124 absl::StrSplit(test, ':', absl::SkipEmpty()); in BM_SplitStringToUnorderedMap()
137 std::vector<std::string> result = absl::StrSplit(test, ';'); in BM_SplitStringAllowEmpty()
157 pieces = absl::StrSplit("The quick brown fox jumps over the lazy dog", in BM_SplitStringWithOneChar()
171 auto splitter = absl::StrSplit( in BM_SplitStringWithOneCharNoVector()
Dstr_split.h500 StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d) {
513 StrSplit(StringType&& text, Delimiter d) {
524 StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d,
538 StrSplit(StringType&& text, Delimiter d, Predicate p) {
Dstr_replace_test.cc186 auto splitter = absl::StrSplit(c.data, ':'); in get()
/third_party/benchmark/test/
Dstring_util_gtest.cc144 TEST(StringUtilTest, StrSplit) { in TEST() argument
145 EXPECT_EQ(benchmark::StrSplit("", ','), std::vector<std::string>{}); in TEST()
146 EXPECT_EQ(benchmark::StrSplit("hello", ','), in TEST()
148 EXPECT_EQ(benchmark::StrSplit("hello,there,is,more", ','), in TEST()
/third_party/benchmark/src/
Dcommandlineflags.cc90 for (const auto& kvpair : StrSplit(str, ',')) { in ParseKvPairs()
91 const auto kv = StrSplit(kvpair, '='); in ParseKvPairs()
257 for (const auto& kvpair : StrSplit(value_str, ',')) { in ParseKeyValueFlag()
258 const auto kv = StrSplit(kvpair, '='); in ParseKeyValueFlag()
Dstring_util.h41 std::vector<std::string> StrSplit(const std::string& str, char delim);
Dstring_util.cc166 std::vector<std::string> StrSplit(const std::string& str, char delim) { in StrSplit() function
/third_party/grpc/src/core/lib/uri/
Duri_parser.cc132 for (absl::string_view query_param : absl::StrSplit(tmp_query, '&')) { in Parse()
134 absl::StrSplit(query_param, absl::MaxSplits('=', 1)); in Parse()
/third_party/mindspore/mindspore/lite/tools/converter/
Dconverter_flags.cc174 auto shape_strs = lite::StrSplit(content, std::string(";")); in InitInTensorShape()
180 auto string_split = lite::StrSplit(shape_str, std::string(":")); in InitInTensorShape()
190 auto dims = lite::StrSplit(dim_strs, std::string(",")); in InitInTensorShape()
/third_party/grpc/test/cpp/interop/
Dxds_interop_client.cc297 absl::StrSplit(FLAGS_rpc, ',', absl::SkipEmpty()); in RunTestLoop()
304 absl::StrSplit(FLAGS_metadata, ',', absl::SkipEmpty()); in RunTestLoop()
309 absl::StrSplit(data, ':', absl::SkipEmpty()); in RunTestLoop()
/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()
/third_party/mindspore/mindspore/lite/tools/cropper/
Dcropper.cc130 auto files = StrSplit(this->flags_->model_file_, std::string(kDelimComma)); in GetModelFiles()
181 auto mapping = StrSplit(buf_str, kDelimComma); in GetOpMatchFiles()
/third_party/skia/third_party/externals/abseil-cpp/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()
/third_party/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/
Dsockaddr_resolver.cc93 for (absl::string_view ith_path : absl::StrSplit(uri.path(), ',')) { in ParseUri()
/third_party/mindspore/mindspore/lite/src/common/
Dutils.cc81 std::vector<std::string> StrSplit(const std::string &str, const std::string &pattern) { in StrSplit() function
Dutils.h165 std::vector<std::string> StrSplit(const std::string &str, const std::string &pattern);
/third_party/grpc/src/core/lib/security/credentials/external/
Durl_external_account_credentials.cc63 absl::StrSplit(it->second.string_value(), absl::MaxSplits('/', 3)); in UrlExternalAccountCredentials()
Daws_request_signer.cc184 absl::StrSplit(url_.authority(), absl::MaxSplits('.', 1)); in GetSignedRequestHeaders()
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/
Dmarshalling.cc158 *dst = absl::StrSplit(text, ',', absl::AllowEmpty()); in AbslParseFlag()
/third_party/abseil-cpp/absl/flags/
Dmarshalling.cc158 *dst = absl::StrSplit(text, ',', absl::AllowEmpty()); in AbslParseFlag()

12