Searched refs:StringSplit (Results 1 – 6 of 6) sorted by relevance
/system/bt/gd/common/ |
D | strings_test.cc | 31 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 …]
|
D | strings.h | 60 std::vector<std::string> StringSplit(const std::string& str, const std::string& delim, size_t max_t…
|
D | strings.cc | 83 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/ |
D | search_directories_test.cc | 66 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/ |
D | legacy_config_file.cc | 60 auto tokens = common::StringSplit(line, "=", 2); in Read()
|
D | config_cache_helper.h | 126 auto values = common::StringSplit(*value, " "); in Get()
|