Lines Matching refs:StrSplit
77 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()
140 std::vector<std::string> v = absl::StrSplit(embedded_nulls, null_delim); in TEST()
146 std::pair<std::string, std::string> p = absl::StrSplit("a,b,c", ','); in TEST()
154 std::set<std::string> v = absl::StrSplit("a,b,c,a,b,c,a,b,c", ','); in TEST()
162 std::vector<std::string> v = absl::StrSplit("a,b,c", d); in TEST()
169 std::vector<std::string> v = absl::StrSplit("a,b;c", ByAnyChar(",;")); in TEST()
177 absl::StrSplit(" a , ,,b,", ',', SkipWhitespace()); in TEST()
184 std::vector<std::string> v = absl::StrSplit("abcdefg", ByLength(3)); in TEST()
190 std::vector<std::string> v1 = absl::StrSplit("a,b,c", ','); in TEST()
192 std::vector<std::string> v2(absl::StrSplit("a,b,c", ',')); in TEST()
194 auto v3 = std::vector<std::string>(absl::StrSplit("a,b,c", ',')); in TEST()
196 v3 = absl::StrSplit("a,b,c", ','); in TEST()
202 std::map<std::string, std::string> m = absl::StrSplit("a,1,b,2,a,3", ','); in TEST()
211 absl::StrSplit("a,1,b,2,a,3", ','); in TEST()
224 for (absl::string_view sp : absl::StrSplit(s, ',')) { in TEST()
233 for (absl::string_view sp : absl::StrSplit(s, ',', SkipWhitespace())) { in TEST()
244 for (absl::string_view sp : absl::StrSplit("a=b=c,d=e,f=,g", ',')) { in TEST()
245 m.insert(absl::StrSplit(sp, absl::MaxSplits('=', 1))); in TEST()
259 auto splitter = absl::StrSplit("a,b", ','); in TEST()
284 auto splitter = absl::StrSplit("a,b,c", ',', Skip("b")); in TEST()
315 auto splitter = absl::StrSplit(spec.in, ','); in TEST()
327 const auto splitter = absl::StrSplit("a,b,c", ','); in TEST()
338 EXPECT_THAT(absl::StrSplit(absl::string_view(""), '-'), ElementsAre("")); in TEST()
339 EXPECT_THAT(absl::StrSplit(absl::string_view(), '-'), ElementsAre()); in TEST()
343 auto splitter = absl::StrSplit("a,b,c", ','); in TEST()
368 auto splitter = absl::StrSplit("a,b,c", ','); in TEST()
396 auto splitter = absl::StrSplit("a,b,c,d", ','); in TEST()
454 std::pair<std::string, std::string> p = absl::StrSplit("", ','); in TEST()
461 std::pair<std::string, std::string> p = absl::StrSplit("a", ','); in TEST()
468 std::pair<std::string, std::string> p = absl::StrSplit(",b", ','); in TEST()
475 std::pair<std::string, std::string> p = absl::StrSplit("a,b", ','); in TEST()
482 std::pair<std::string, std::string> p = absl::StrSplit("a,b,c", ','); in TEST()
497 auto splitter = absl::StrSplit(kTestChars, ','); in TEST()
504 auto splitter = absl::StrSplit(kTestChars, ',', AllowEmpty()); in TEST()
509 auto splitter_nopredicate = absl::StrSplit(kTestChars, ','); in TEST()
516 auto splitter = absl::StrSplit(kTestChars, ',', SkipEmpty()); in TEST()
523 auto splitter = absl::StrSplit(kTestChars, ',', SkipWhitespace()); in TEST()
537 absl::StrSplit("a,b,c", ','); in TEST()
541 std::vector<absl::string_view> v = absl::StrSplit("a,b,c", ','); in TEST()
546 std::vector<std::string> v = absl::StrSplit("a,b,c", ','); in TEST()
554 v = absl::StrSplit("a,b,c", ','); in TEST()
558 m = absl::StrSplit("a,b,c", ','); in TEST()
561 hm = absl::StrSplit("a,b,c", ','); in TEST()
572 v = absl::StrSplit(ReturnStringView(), ' '); in TEST()
574 v = absl::StrSplit(ReturnConstCharP(), ' '); in TEST()
576 v = absl::StrSplit(ReturnCharP(), ' '); in TEST()
589 auto splitter = absl::StrSplit(std::string(input), ','); in TEST()
598 auto std_splitter = absl::StrSplit(std::string(input), ','); in TEST()
614 auto heap_splitter = CopyToHeap(absl::StrSplit(input, ',')); in TEST()
622 auto heap_splitter = CopyToHeap(absl::StrSplit(std::string("a,b"), ',')); in TEST()
630 auto a = absl::StrSplit("foo", '-'); in TEST()
643 std::vector<absl::string_view> v = absl::StrSplit("a,b", ','); in TEST()
648 std::vector<absl::string_view> v = absl::StrSplit("a,b", std::string(",")); in TEST()
654 absl::StrSplit("a,b", absl::string_view(",")); in TEST()
670 std::vector<absl::string_view> v = absl::StrSplit(to_split, ','); in TEST()
679 absl::StrSplit(to_split, unicode_delimiter); in TEST()
686 absl::StrSplit(u8"Foo h\u00E4llo th\u4E1Ere", absl::ByAnyChar(" \t")); in TEST()
697 std::vector<std::string> v = absl::StrSplit("", ""); in TEST()
702 std::vector<std::string> v = absl::StrSplit("a", ""); in TEST()
707 std::vector<std::string> v = absl::StrSplit("ab", ""); in TEST()
712 std::vector<std::string> v = absl::StrSplit("a b", ""); in TEST()
721 results = absl::StrSplit("", delim); in TEST()
724 results = absl::StrSplit("//", delim); in TEST()
727 results = absl::StrSplit("ab", delim); in TEST()
730 results = absl::StrSplit("ab//", delim); in TEST()
733 results = absl::StrSplit("ab/", delim); in TEST()
736 results = absl::StrSplit("a/b", delim); in TEST()
739 results = absl::StrSplit("a//b", delim); in TEST()
742 results = absl::StrSplit("a///b", delim); in TEST()
745 results = absl::StrSplit("a////b", delim); in TEST()
752 results = absl::StrSplit("", '#'); in TEST()
755 results = absl::StrSplit("#", '#'); in TEST()
758 results = absl::StrSplit("#cd", '#'); in TEST()
761 results = absl::StrSplit("ab#cd#", '#'); in TEST()
764 results = absl::StrSplit("ab##cd", '#'); in TEST()
767 results = absl::StrSplit("ab##", '#'); in TEST()
770 results = absl::StrSplit("ab#ab#", '#'); in TEST()
773 results = absl::StrSplit("aaaa", 'a'); in TEST()
776 results = absl::StrSplit("", '#', absl::SkipEmpty()); in TEST()
927 std::vector<absl::string_view> v = absl::StrSplit(s, '-'); in TEST()