Home
last modified time | relevance | path

Searched refs:SplitAtFirst (Results 1 – 10 of 10) sorted by relevance

/external/libbrillo/brillo/strings/
Dstring_utils_unittest.cc74 TEST(StringUtils, SplitAtFirst) { in TEST() argument
77 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", true); in TEST()
81 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", false); in TEST()
85 pair = string_utils::SplitAtFirst("", "="); in TEST()
89 pair = string_utils::SplitAtFirst("=", "="); in TEST()
93 pair = string_utils::SplitAtFirst("a=", "="); in TEST()
97 pair = string_utils::SplitAtFirst("abc=", "="); in TEST()
101 pair = string_utils::SplitAtFirst("=a", "="); in TEST()
105 pair = string_utils::SplitAtFirst("=abc=", "="); in TEST()
109 pair = string_utils::SplitAtFirst("abc", "="); in TEST()
[all …]
Dstring_utils.h40 BRILLO_EXPORT std::pair<std::string, std::string> SplitAtFirst(
46 inline std::pair<std::string, std::string> SplitAtFirst( in SplitAtFirst() function
49 return SplitAtFirst(str, delimiter, true); in SplitAtFirst()
55 BRILLO_EXPORT bool SplitAtFirst(const std::string& str,
61 inline bool SplitAtFirst(const std::string& str, in SplitAtFirst() function
65 return SplitAtFirst(str, delimiter, left_part, right_part, true); in SplitAtFirst()
Dstring_utils.cc40 bool SplitAtFirst(const std::string& str, in SplitAtFirst() function
64 std::pair<std::string, std::string> SplitAtFirst(const std::string& str, in SplitAtFirst() function
68 SplitAtFirst(str, delimiter, &pair.first, &pair.second, trim_whitespaces); in SplitAtFirst()
/external/libbrillo/brillo/
Dmime_utils.cc84 auto pair = brillo::string_utils::SplitAtFirst(parts[i], "="); in Split()
96 auto types = brillo::string_utils::SplitAtFirst(mime, "/"); in Split()
121 return brillo::string_utils::SplitAtFirst(mime, "/").first; in GetType()
126 return brillo::string_utils::SplitAtFirst(mime, "/").second; in GetSubtype()
141 return brillo::string_utils::SplitAtFirst(mime_string, ";").first; in RemoveParameters()
Dosrelease_reader.cc49 content = brillo::string_utils::SplitAtFirst(content, "\n", true).first; in Load()
Dkey_value_store.cc59 if (!string_utils::SplitAtFirst(line, "=", &key, &value, false)) in LoadFromString()
Ddata_encoding.cc106 auto pair = brillo::string_utils::SplitAtFirst(p, "="); in WebParamsDecode()
/external/libbrillo/brillo/http/
Dhttp_connection_curl.cc240 using brillo::string_utils::SplitAtFirst; in header_callback()
254 auto pair = SplitAtFirst(header, " "); in header_callback()
256 me->status_text_ = SplitAtFirst(pair.second, " ").second; in header_callback()
259 auto pair = SplitAtFirst(header, ":"); in header_callback()
Dhttp_utils_unittest.cc424 auto pair = brillo::string_utils::SplitAtFirst(item, ";"); in TEST()
/external/libbrillo/brillo/message_loops/
Dbase_message_loop.cc291 if (!string_utils::SplitAtFirst(line, " ", &number, &name, false)) in ParseBinderMinor()