Searched refs:SplitAtFirst (Results 1 – 10 of 10) sorted by relevance
/external/libbrillo/brillo/strings/ |
D | string_utils_test.cc | 74 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 …]
|
D | string_utils.h | 40 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()
|
D | string_utils.cc | 40 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/ |
D | mime_utils.cc | 84 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()
|
D | osrelease_reader.cc | 49 content = brillo::string_utils::SplitAtFirst(content, "\n", true).first; in Load()
|
D | key_value_store.cc | 62 if (!string_utils::SplitAtFirst(line, "=", &key, &value, false)) in LoadFromString()
|
D | data_encoding.cc | 106 auto pair = brillo::string_utils::SplitAtFirst(p, "="); in WebParamsDecode()
|
/external/libbrillo/brillo/http/ |
D | http_connection_curl.cc | 242 using brillo::string_utils::SplitAtFirst; in header_callback() 256 auto pair = SplitAtFirst(header, " "); in header_callback() 258 me->status_text_ = SplitAtFirst(pair.second, " ").second; in header_callback() 261 auto pair = SplitAtFirst(header, ":"); in header_callback()
|
D | http_utils_test.cc | 424 auto pair = brillo::string_utils::SplitAtFirst(item, ";"); in TEST()
|
/external/libbrillo/brillo/message_loops/ |
D | base_message_loop.cc | 206 if (!string_utils::SplitAtFirst(line, " ", &number, &name, false)) in ParseBinderMinor()
|