Home
last modified time | relevance | path

Searched refs:string_utils (Results 1 – 25 of 47) sorted by relevance

12

/external/libbrillo/brillo/strings/
Dstring_utils_test.cc19 parts = string_utils::Split("", ",", false, false); in TEST()
22 parts = string_utils::Split("abc", ",", false, false); in TEST()
26 parts = string_utils::Split(",a,bc , d, ,e, ", ",", true, true); in TEST()
33 parts = string_utils::Split(",a,bc , d, ,e, ", ",", false, true); in TEST()
42 parts = string_utils::Split(",a,bc , d, ,e, ", ",", true, false); in TEST()
52 parts = string_utils::Split(",a,bc , d, ,e, ", ",", false, false); in TEST()
62 parts = string_utils::Split("abc:=xyz", ":=", false, false); in TEST()
67 parts = string_utils::Split("abc", "", false, false); in TEST()
77 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", true); in TEST()
81 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", false); in TEST()
[all …]
Dstring_utils.cc15 namespace string_utils { namespace
Dstring_utils.h15 namespace string_utils {
/external/autotest/client/common_lib/cros/
Dstring_utils_unittest.py16 from autotest_lib.client.common_lib.cros import string_utils
27 result = list(string_utils.join_longest_with_length_limit(
35 result = list(string_utils.join_longest_with_length_limit(
42 with self.assertRaises(string_utils.StringTooLongError):
43 list(string_utils.join_longest_with_length_limit(strings, 6))
47 result = list(string_utils.join_longest_with_length_limit(
55 result = list(string_utils.join_longest_with_length_limit(
/external/libbrillo/brillo/
Dmime_utils.cc73 brillo::string_utils::Split(mime_string, ";"); in Split()
84 auto pair = brillo::string_utils::SplitAtFirst(parts[i], "="); in Split()
96 auto types = brillo::string_utils::SplitAtFirst(mime, "/"); in Split()
111 parts.push_back(brillo::string_utils::Join("/", type, subtype)); in Combine()
114 brillo::string_utils::Join("=", pair.first, EncodeParam(pair.second))); in Combine()
116 return brillo::string_utils::Join("; ", parts); in Combine()
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()
149 mime += brillo::string_utils::Join("=", paramName, EncodeParam(paramValue)); in AppendParameter()
Ddata_encoding.cc96 pairs.push_back(brillo::string_utils::Join("=", key, value)); in WebParamsEncode()
99 return brillo::string_utils::Join("&", pairs); in WebParamsEncode()
104 std::vector<std::string> params = brillo::string_utils::Split(data, "&"); in WebParamsDecode()
106 auto pair = brillo::string_utils::SplitAtFirst(p, "="); in WebParamsDecode()
Dosrelease_reader.cc49 content = brillo::string_utils::SplitAtFirst(content, "\n", true).first; in Load()
Dkey_value_store.cc62 if (!string_utils::SplitAtFirst(line, "=", &key, &value, false)) in LoadFromString()
/external/llvm-project/libc/src/string/
DCMakeLists.txt4 string_utils
6 string_utils.h
19 .string_utils
30 .string_utils
58 .string_utils
92 .string_utils
118 .string_utils
138 .string_utils
148 .string_utils
158 .string_utils
/external/llvm-project/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/
DBUILD.gn46 "string_utils.cpp",
47 "string_utils.h",
/external/google-breakpad/src/common/windows/
Dcommon_windows.gyp90 'string_utils.cc',
91 'string_utils-inl.h',
/external/libbrillo/brillo/http/
Dhttp_request.cc254 range = brillo::string_utils::ToString(p.first); in SendRequestIfNeeded()
258 range += brillo::string_utils::ToString(p.second); in SendRequestIfNeeded()
267 "bytes=" + brillo::string_utils::Join(",", ranges)); in SendRequestIfNeeded()
Dhttp_connection_curl.cc130 brillo::string_utils::Join(": ", pair.first, pair.second); in PrepareRequest()
242 using brillo::string_utils::SplitAtFirst; in header_callback()
Dhttp_connection_fake.cc42 using brillo::string_utils::ToString; in FinishRequest()
Dhttp_connection_curl_test.cc89 header_lines.push_back(string_utils::Join(": ", pair.first, pair.second) + in DoPerform()
126 test_headers.insert(string_utils::Join(": ", pair.first, pair.second));
Dhttp_transport_curl.cc318 brillo::string_utils::ToString(code), in AddEasyCurlError()
327 brillo::string_utils::ToString(code), in AddMultiCurlError()
Dhttp_utils_test.cc424 auto pair = brillo::string_utils::SplitAtFirst(item, ";"); in TEST()
435 EXPECT_EQ(pair.first, brillo::string_utils::ToString(code)); in TEST()
Dhttp_transport_fake.cc244 brillo::string_utils::ToString(data_size)}, in Reply()
/external/llvm-project/compiler-rt/lib/scudo/standalone/
DCMakeLists.txt76 string_utils.h
97 string_utils.cpp
/external/perfetto/include/perfetto/ext/base/
DBUILD.gn38 "string_utils.h",
/external/libbrillo/brillo/dbus/
Dutils.cc55 std::vector<std::string> parts = string_utils::Split(dbus_error_message, ";"); in AddDBusError()
/external/libbrillo/brillo/message_loops/
Dbase_message_loop.cc206 if (!string_utils::SplitAtFirst(line, " ", &number, &name, false)) in ParseBinderMinor()
/external/google-breakpad/src/client/windows/
Dbreakpad_client.gyp62 '<(DEPTH)/common/windows/string_utils.cc',
/external/google-breakpad/src/common/
Dcommon.gyp199 'windows/string_utils-inl.h',
200 'windows/string_utils.cc',
/external/perfetto/src/base/
DBUILD.gn45 "string_utils.cc",

12