Home
last modified time | relevance | path

Searched refs:StringSplit (Results 1 – 6 of 6) sorted by relevance

/system/bt/gd/common/
Dstrings_test.cc31 using bluetooth::common::StringSplit;
46 ASSERT_THAT(StringSplit("", ","), ElementsAre("")); in TEST()
47 ASSERT_THAT(StringSplit("1,2,3", ","), ElementsAre("1", "2", "3")); in TEST()
48 ASSERT_THAT(StringSplit("1,2,3", "!"), ElementsAre("1,2,3")); in TEST()
49 ASSERT_THAT(StringSplit("1,2,3", ",", 2), ElementsAre("1", "2,3")); in TEST()
50 ASSERT_THAT(StringSplit("a,b,", ","), ElementsAre("a", "b", "")); in TEST()
51 ASSERT_THAT(StringSplit("ab,", ",", 2), ElementsAre("ab", "")); in TEST()
52 ASSERT_THAT(StringSplit("ab,,", ",", 2), ElementsAre("ab", ",")); in TEST()
53 ASSERT_THAT(StringSplit("ab,,", ",", 1), ElementsAre("ab,,")); in TEST()
54 ASSERT_THAT(StringSplit("1,,2,,3", ",,"), ElementsAre("1", "2", "3")); in TEST()
[all …]
Dstrings.h60 std::vector<std::string> StringSplit(const std::string& str, const std::string& delim, size_t max_t…
Dstrings.cc83 std::vector<std::string> StringSplit(const std::string& str, const std::string& delim, size_t max_t… in StringSplit() function
/system/iorap/tests/src/inode2filename/
Dsearch_directories_test.cc66 struct StringSplit { struct
167 it.rest_of_string = StringSplit::EmptySubstringAtEnd(whole); in MakeBegin()
196 current_split = StringSplit::EmptySubstringAtEnd(rest_of_string); in UpdateValues()
288 std::ostream& operator<<(std::ostream& os, const StringSplit::SplitIterator& it) { in operator <<() argument
293 static constexpr const StringSplit::SplitIterator kBlankSplit;
352 auto iterable = StringSplit::Iterable(what, separator); in IterableSplitStringViewVec()
515 std::string_view component = StringSplit::EmptySubstringAtEnd(path_); in Name()
808 using SplitIterable = StringSplit::SplitIterable;
809 using SplitIterator = StringSplit::SplitIterator;
1064 StringSplit::Iterable(path.AsStringView(), PurePath::kRoot), in FromPath()
[all …]
/system/bt/gd/storage/
Dlegacy_config_file.cc60 auto tokens = common::StringSplit(line, "=", 2); in Read()
Dconfig_cache_helper.h126 auto values = common::StringSplit(*value, " "); in Get()