Home
last modified time | relevance | path

Searched refs:delimiter (Results 1 – 25 of 394) sorted by relevance

12345678910>>...16

/external/libbrillo/brillo/strings/
Dstring_utils.h23 const std::string& delimiter,
28 const std::string& delimiter) { in Split() argument
29 return Split(str, delimiter, true, true); in Split()
33 const std::string& delimiter, in Split() argument
35 return Split(str, delimiter, trim_whitespaces, true); in Split()
42 const std::string& delimiter,
48 const std::string& delimiter) { in SplitAtFirst() argument
49 return SplitAtFirst(str, delimiter, true); in SplitAtFirst()
56 const std::string& delimiter,
62 const std::string& delimiter, in SplitAtFirst() argument
[all …]
Dstring_utils.cc18 const std::string& delimiter, in Split() argument
27 delimiter.empty() ? (i + 1) : str.find(delimiter, i); in Split()
35 i = pos + delimiter.size(); in Split()
41 const std::string& delimiter, in SplitAtFirst() argument
46 std::string::size_type pos = str.find(delimiter); in SplitAtFirst()
49 *right_part = str.substr(pos + delimiter.size()); in SplitAtFirst()
65 const std::string& delimiter, in SplitAtFirst() argument
68 SplitAtFirst(str, delimiter, &pair.first, &pair.second, trim_whitespaces); in SplitAtFirst()
/external/tensorflow/tensorflow/lite/testing/
Dsplit.h36 const string& delimiter);
40 std::vector<T> Split(const string& s, const string& delimiter);
43 inline std::vector<string> Split(const string& s, const string& delimiter) { in Split() argument
45 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
52 inline std::vector<int> Split(const string& s, const string& delimiter) { in Split() argument
54 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
61 inline std::vector<int64_t> Split(const string& s, const string& delimiter) { in Split() argument
63 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
70 inline std::vector<float> Split(const string& s, const string& delimiter) { in Split() argument
72 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
[all …]
Djoin.h29 string JoinDefault(T* data, size_t len, const string& delimiter) { in JoinDefault() argument
36 result << delimiter << data[i]; in JoinDefault()
43 string Join(T* data, size_t len, const string& delimiter) { in Join() argument
50 result << std::setprecision(9) << delimiter << data[i]; in Join()
59 const string& delimiter) {
66 result << delimiter << static_cast<int>(data[i]);
74 inline string Join<int8_t>(int8_t* data, size_t len, const string& delimiter) {
81 result << delimiter << static_cast<int>(data[i]);
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dsplit.h35 const string& delimiter);
39 std::vector<T> Split(const string& s, const string& delimiter);
42 inline std::vector<string> Split(const string& s, const string& delimiter) { in Split() argument
44 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
51 inline std::vector<int> Split(const string& s, const string& delimiter) { in Split() argument
53 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
60 inline std::vector<int64_t> Split(const string& s, const string& delimiter) { in Split() argument
62 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
69 inline std::vector<float> Split(const string& s, const string& delimiter) { in Split() argument
71 for (const auto& p : SplitToPos(s, delimiter)) { in Split()
[all …]
Djoin.h32 string JoinDefault(T* data, size_t len, const string& delimiter) { in JoinDefault() argument
39 result << delimiter << data[i]; in JoinDefault()
46 string Join(T* data, size_t len, const string& delimiter) { in Join() argument
53 result << std::setprecision(9) << delimiter << data[i]; in Join()
62 const string& delimiter) {
69 result << delimiter << static_cast<int>(data[i]);
/external/parameter-framework/upstream/parameter/
DRuleParser.cpp149 string::size_type delimiter; in iterate() local
154 if ((delimiter = _strApplicationRule.find_first_not_of(" ", _uiCurrentPos)) != string::npos) { in iterate()
157 _uiCurrentPos = delimiter; in iterate()
162 ((delimiter = _strApplicationRule.find_first_of(_acDelimiters[_eStatus], _uiCurrentPos)) != in iterate()
165 switch (_strApplicationRule[delimiter]) { in iterate()
170 _strRuleType = _strApplicationRule.substr(_uiCurrentPos, delimiter - _uiCurrentPos); in iterate()
186 _strRuleType = _strApplicationRule.substr(_uiCurrentPos, delimiter - _uiCurrentPos); in iterate()
193 _uiCurrentPos = delimiter + 1; in iterate()
243 string::size_type delimiter; in next() local
246 if ((delimiter = _strApplicationRule.find_first_not_of(" ", _uiCurrentPos)) != string::npos) { in next()
[all …]
/external/autotest/contrib/
Dcompare_suite.py305 percent_string = delimiter.join(
309 print '%% on %s %s%s' % (task_type, delimiter, percent_string)
310 min_string = delimiter.join(
313 print ' %s min (seconds)%s%s' % (task_type, delimiter, min_string)
314 max_string = delimiter.join(
317 print ' %s max (seconds)%s%s' % (task_type, delimiter, max_string)
318 ave_string = delimiter.join(
320 print ' %s average (seconds)%s%s' % (task_type, delimiter, ave_string)
376 delimiter = '\t' variable
378 print ('job ID%s' % delimiter +
[all …]
/external/rust/crates/syn/1.0.7/src/
Dmac.rs22 pub delimiter: MacroDelimiter,
47 && self.delimiter == other.delimiter in eq()
60 self.delimiter.hash(state); in hash()
66 fn delimiter_span(delimiter: &MacroDelimiter) -> Span { in delimiter_span()
67 match delimiter { in delimiter_span()
168 let scope = delimiter_span(&self.delimiter); in parse_body_with()
178 let delimiter = match g.delimiter() { in parse_delimiter() localVariable
186 Ok(((delimiter, g.stream()), rest)) in parse_delimiter()
205 delimiter: { in parse()
206 let (delimiter, content) = parse_delimiter(input)?; in parse()
[all …]
/external/rust/crates/syn/0.15.42/src/
Dmac.rs22 pub delimiter: MacroDelimiter,
47 && self.delimiter == other.delimiter in eq()
60 self.delimiter.hash(state); in hash()
66 fn delimiter_span(delimiter: &MacroDelimiter) -> Span { in delimiter_span()
67 match *delimiter { in delimiter_span()
168 let scope = delimiter_span(&self.delimiter); in parse_body_with()
178 let delimiter = match g.delimiter() { in parse_delimiter() localVariable
186 Ok(((delimiter, g.stream().clone()), rest)) in parse_delimiter()
205 delimiter: { in parse()
206 let (delimiter, content) = parse_delimiter(input)?; in parse()
[all …]
/external/libchrome/base/strings/
Dstring_split.cc75 DelimiterType delimiter, in SplitStringT() argument
84 size_t end = FindFirstOf(str, delimiter, start); in SplitStringT()
105 char delimiter, in AppendStringKeyValue() argument
113 size_t end_key_pos = input.find_first_of(delimiter); in AppendStringKeyValue()
122 size_t begin_value_pos = remains.find_first_not_of(delimiter); in AppendStringKeyValue()
135 BasicStringPiece<Str> delimiter, in SplitStringUsingSubstrT() argument
144 begin_index = end_index + delimiter.size()) { in SplitStringUsingSubstrT()
145 end_index = input.find(delimiter, begin_index); in SplitStringUsingSubstrT()
231 StringPiece16 delimiter, in SplitStringUsingSubstr() argument
235 SplitStringUsingSubstrT(input, delimiter, whitespace, result_type, &result); in SplitStringUsingSubstr()
[all …]
/external/webrtc/webrtc/base/
Dstringencode.cc438 char delimiter) { in hex_encode_with_delimiter() argument
447 size_t needed = delimiter ? (srclen * 3) : (srclen * 2 + 1); in hex_encode_with_delimiter()
458 if (delimiter && (srcpos < srclen)) { in hex_encode_with_delimiter()
459 buffer[bufpos] = delimiter; in hex_encode_with_delimiter()
478 char delimiter) { in hex_encode_with_delimiter() argument
482 source, srclen, delimiter); in hex_encode_with_delimiter()
494 char delimiter) { in hex_decode_with_delimiter() argument
502 size_t needed = (delimiter) ? (srclen + 1) / 3 : srclen / 2; in hex_decode_with_delimiter()
521 if (delimiter && (srclen - srcpos) > 1) { in hex_decode_with_delimiter()
522 if (source[srcpos] != delimiter) in hex_decode_with_delimiter()
[all …]
Dstringencode.h95 char delimiter);
101 char delimiter);
113 char delimiter);
118 const std::string& source, char delimiter);
141 size_t split(const std::string& source, char delimiter,
146 size_t tokenize(const std::string& source, char delimiter,
151 char delimiter,
155 size_t tokenize_append(const std::string& source, char delimiter,
165 size_t tokenize(const std::string& source, char delimiter, char start_mark,
172 const char delimiter,
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DStringTokenizerTest.java51 String delimiter = " \t\n\r\f"; in TestConstructors() local
55 StringTokenizer stdelimiter = new StringTokenizer(str, delimiter); in TestConstructors()
56 StringTokenizer stdelimiterreturn = new StringTokenizer(str, delimiter, in TestConstructors()
58 UnicodeSet delimiterset = new UnicodeSet("[" + delimiter + "]", false); in TestConstructors()
73 UnicodeSet delimiterset1 = new UnicodeSet("[" + delimiter + "]", true); in TestConstructors()
82 stdelimiterreturn = new StringTokenizer(str, delimiter, true); in TestConstructors()
104 delimiter = ""; in TestConstructors()
105 stdelimiter = new StringTokenizer(str, delimiter); in TestConstructors()
106 stdelimiterreturn = new StringTokenizer(str, delimiter, false); in TestConstructors()
125 stdelimiter = new StringTokenizer(null, delimiter); in TestConstructors()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DStringTokenizerTest.java48 String delimiter = " \t\n\r\f"; in TestConstructors() local
52 StringTokenizer stdelimiter = new StringTokenizer(str, delimiter); in TestConstructors()
53 StringTokenizer stdelimiterreturn = new StringTokenizer(str, delimiter, in TestConstructors()
55 UnicodeSet delimiterset = new UnicodeSet("[" + delimiter + "]", false); in TestConstructors()
70 UnicodeSet delimiterset1 = new UnicodeSet("[" + delimiter + "]", true); in TestConstructors()
79 stdelimiterreturn = new StringTokenizer(str, delimiter, true); in TestConstructors()
101 delimiter = ""; in TestConstructors()
102 stdelimiter = new StringTokenizer(str, delimiter); in TestConstructors()
103 stdelimiterreturn = new StringTokenizer(str, delimiter, false); in TestConstructors()
122 stdelimiter = new StringTokenizer(null, delimiter); in TestConstructors()
[all …]
/external/perfetto/src/base/
Dstring_splitter.cc26 StringSplitter::StringSplitter(std::string str, char delimiter) in StringSplitter() argument
27 : str_(std::move(str)), delimiter_(delimiter) { in StringSplitter()
33 StringSplitter::StringSplitter(char* str, size_t size, char delimiter) in StringSplitter() argument
34 : delimiter_(delimiter) { in StringSplitter()
38 StringSplitter::StringSplitter(StringSplitter* outer, char delimiter) in StringSplitter() argument
39 : delimiter_(delimiter) { in StringSplitter()
/external/python/cpython3/Lib/test/
Dtest_shlex.py182 for delimiter in ('&&', '&', '|&', ';&', ';;&',
184 src = ['echo hi %s echo bye' % delimiter,
185 'echo hi%secho bye' % delimiter]
186 ref = ['echo', 'hi', delimiter, 'echo', 'bye']
198 for delimiter in (';', ';;', ';&', ';;&'):
199 src = ['echo hi %s echo bye' % delimiter,
200 'echo hi%s echo bye' % delimiter,
201 'echo hi%secho bye' % delimiter]
202 ref = ['echo', 'hi', delimiter, 'echo', 'bye']
214 for delimiter in ('<', '|'):
[all …]
Dtest_csv.py27 self.assertRaises(TypeError, ctor, arg, delimiter = 0)
28 self.assertRaises(TypeError, ctor, arg, delimiter = 'XX')
30 self.assertRaises(TypeError, ctor, arg, delimiter=None)
31 self.assertRaises(TypeError, ctor, arg, delimiter=1)
50 self.assertEqual(obj.dialect.delimiter, ',')
73 kwargs = dict(delimiter=':', doublequote=False, escapechar='\\',
78 self.assertEqual(obj.dialect.delimiter, ':')
96 delimiter='-' variable in Test_Csv._test_dialect_attrs.dialect
106 self.assertEqual(obj.dialect.delimiter, '-')
373 delimiter = "\t" variable in TestDialectRegistry.test_registry.myexceltsv
[all …]
/external/icu/icu4c/source/tools/gennorm2/
Dgennorm2.cpp262 const char *delimiter; in parseFile() local
264 u_parseCodePointRangeAnyTerminator(line, &startCP, &endCP, &delimiter, errorCode); in parseFile()
274 delimiter=u_skipWhitespace(delimiter); in parseFile()
275 if(*delimiter==':') { in parseFile()
276 const char *s=u_skipWhitespace(delimiter+1); in parseFile()
288 if(*delimiter=='-') { in parseFile()
289 if(*u_skipWhitespace(delimiter+1)!=0) { in parseFile()
298 if(*delimiter=='=' || *delimiter=='>') { in parseFile()
300 … int32_t length=u_parseString(delimiter+1, uchars, UPRV_LENGTHOF(uchars), NULL, errorCode); in parseFile()
306 if(*delimiter=='=') { in parseFile()
/external/jacoco/org.jacoco.report/src/org/jacoco/report/csv/
DDelimitedWriter.java40 private final char delimiter; field in DelimitedWriter
62 public DelimitedWriter(final Writer delegate, final char delimiter) { in DelimitedWriter() argument
64 this.delimiter = delimiter; in DelimitedWriter()
94 delegate.write(delimiter); in write()
163 if (value.indexOf(QUOTE) != -1 || value.indexOf(delimiter) != -1) { in escape()
/external/ipsec-tools/src/libipsec/
Dipsec_dump_policy.c76 ipsec_dump_policy(policy, delimiter) in ipsec_dump_policy() argument
78 __ipsec_const char *delimiter;
80 return ipsec_dump_policy1(policy, delimiter, 0);
84 ipsec_dump_policy_withports(policy, delimiter) in ipsec_dump_policy_withports() argument
86 const char *delimiter;
88 return ipsec_dump_policy1(policy, delimiter, 1);
92 ipsec_dump_policy1(policy, delimiter, withports) in ipsec_dump_policy1() argument
94 const char *delimiter;
119 if (delimiter == NULL)
120 delimiter = " ";
[all …]
/external/google-benchmark/src/
Dbenchmark_name.cc34 void join_impl(std::string& s, const char delimiter, const Head& head, in join_impl() argument
37 s += delimiter; in join_impl()
42 join_impl(s, delimiter, tail...); in join_impl()
46 std::string join(char delimiter, const Ts&... ts) { in join() argument
49 join_impl(s, delimiter, ts...); in join()
/external/tensorflow/tensorflow/python/kernel_tests/
Dstring_split_op_test.py53 tokens = string_ops.string_split(strings, delimiter="")
83 tokens = string_ops.string_split(strings, delimiter=" .")
97 ValueError, string_ops.string_split, strings, delimiter=["|", ""])
100 ValueError, string_ops.string_split, strings, delimiter=["a"])
102 tokens = string_ops.string_split(strings, delimiter="|")
108 tokens = string_ops.string_split(strings, delimiter="| ")
119 delimiter = array_ops.placeholder(dtypes.string)
121 tokens = string_ops.string_split(strings, delimiter=delimiter)
124 sess.run(tokens, feed_dict={delimiter: ["a", "b"]})
126 sess.run(tokens, feed_dict={delimiter: ["a"]})
[all …]
/external/jline/src/src/main/java/jline/
DSimpleCompletor.java36 String delimiter; field in SimpleCompletor
108 if (delimiter != null) { in complete()
109 int index = can.indexOf(delimiter, cursor); in complete()
128 public void setDelimiter(final String delimiter) { in setDelimiter() argument
129 this.delimiter = delimiter; in setDelimiter()
133 return this.delimiter; in getDelimiter()
/external/u-boot/common/eeprom/
Deeprom_field.c14 char *delimiter, bool reverse) in __eeprom_field_print_bin() argument
22 printf("%02x%s", field->buf[i], delimiter); in __eeprom_field_print_bin()
70 char *value, char *delimiter) in __eeprom_field_update_bin_delim() argument
78 tmp = strstr(tmp, delimiter); in __eeprom_field_update_bin_delim()
82 tmp = strstr(tmp, delimiter); in __eeprom_field_update_bin_delim()
88 tok = strtok(value, delimiter); in __eeprom_field_update_bin_delim()
96 tok = strtok(NULL, delimiter); in __eeprom_field_update_bin_delim()

12345678910>>...16