Home
last modified time | relevance | path

Searched refs:delim (Results 1 – 25 of 142) sorted by relevance

123456

/external/ceres-solver/internal/ceres/
Dsplit.cc51 static int CalculateReserveForVector(const string& full, const char* delim) { in CalculateReserveForVector() argument
53 if (delim[0] != '\0' && delim[1] == '\0') { in CalculateReserveForVector()
55 char c = delim[0]; in CalculateReserveForVector()
75 const char* delim, in SplitStringToIteratorUsing() argument
78 if (delim[0] != '\0' && delim[1] == '\0') { in SplitStringToIteratorUsing()
79 char c = delim[0]; in SplitStringToIteratorUsing()
97 begin_index = full.find_first_not_of(delim); in SplitStringToIteratorUsing()
99 end_index = full.find_first_of(delim, begin_index); in SplitStringToIteratorUsing()
105 begin_index = full.find_first_not_of(delim, end_index); in SplitStringToIteratorUsing()
110 const char* delim, in SplitStringUsing() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DStringTokenizer.java115 public StringTokenizer(String str, UnicodeSet delim, boolean returndelims) in StringTokenizer() argument
117 this(str, delim, returndelims, false); in StringTokenizer()
143 … public StringTokenizer(String str, UnicodeSet delim, boolean returndelims, boolean coalescedelims) in StringTokenizer() argument
147 if (delim == null) { in StringTokenizer()
151 m_delimiters_ = delim; in StringTokenizer()
179 public StringTokenizer(String str, UnicodeSet delim) in StringTokenizer() argument
181 this(str, delim, false, false); in StringTokenizer()
199 public StringTokenizer(String str, String delim, boolean returndelims) in StringTokenizer() argument
201 this(str, delim, returndelims, false); // java default behavior in StringTokenizer()
227 public StringTokenizer(String str, String delim, boolean returndelims, boolean coalescedelims) in StringTokenizer() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DStringTokenizer.java115 public StringTokenizer(String str, UnicodeSet delim, boolean returndelims) in StringTokenizer() argument
117 this(str, delim, returndelims, false); in StringTokenizer()
143 … public StringTokenizer(String str, UnicodeSet delim, boolean returndelims, boolean coalescedelims) in StringTokenizer() argument
147 if (delim == null) { in StringTokenizer()
151 m_delimiters_ = delim; in StringTokenizer()
178 public StringTokenizer(String str, UnicodeSet delim) in StringTokenizer() argument
180 this(str, delim, false, false); in StringTokenizer()
197 public StringTokenizer(String str, String delim, boolean returndelims) in StringTokenizer() argument
199 this(str, delim, returndelims, false); // java default behavior in StringTokenizer()
225 public StringTokenizer(String str, String delim, boolean returndelims, boolean coalescedelims) in StringTokenizer() argument
[all …]
/external/iptables/extensions/
Dlibxt_limit.c46 const char *delim; in parse_rate() local
50 delim = strchr(rate, '/'); in parse_rate()
51 if (delim) { in parse_rate()
52 if (strlen(delim+1) == 0) in parse_rate()
55 if (strncasecmp(delim+1, "second", strlen(delim+1)) == 0) in parse_rate()
57 else if (strncasecmp(delim+1, "minute", strlen(delim+1)) == 0) in parse_rate()
59 else if (strncasecmp(delim+1, "hour", strlen(delim+1)) == 0) in parse_rate()
61 else if (strncasecmp(delim+1, "day", strlen(delim+1)) == 0) in parse_rate()
Dlibxt_hashlimit.c232 const char *delim; in parse_rate() local
236 delim = strchr(rate, '/'); in parse_rate()
237 if (delim) { in parse_rate()
238 if (strlen(delim+1) == 0) in parse_rate()
241 if (strncasecmp(delim+1, "second", strlen(delim+1)) == 0) in parse_rate()
243 else if (strncasecmp(delim+1, "minute", strlen(delim+1)) == 0) in parse_rate()
245 else if (strncasecmp(delim+1, "hour", strlen(delim+1)) == 0) in parse_rate()
247 else if (strncasecmp(delim+1, "day", strlen(delim+1)) == 0) in parse_rate()
/external/libcxx/test/std/input.output/iostream.format/quoted.manip/
Dquoted.pass.cpp61 void round_trip_d ( const char *p, char delim ) { in round_trip_d() argument
63 ss << std::quoted(p, delim); in round_trip_d()
65 ss >> std::quoted(s, delim); in round_trip_d()
79 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() argument
81 ss << std::quoted(p, delim, escape); in quote()
87 std::string unquote ( const char *p, char delim='"', char escape='\\' ) { in unquote() argument
91 ss >> std::quoted(s, delim, escape); in unquote()
132 void round_trip_d ( const wchar_t *p, wchar_t delim ) { in round_trip_d() argument
134 ss << std::quoted(p, delim); in round_trip_d()
136 ss >> std::quoted(s, delim); in round_trip_d()
[all …]
/external/libcxx/test/std/experimental/string.view/string.view.nonmem/
Dquoted.pass.cpp56 void round_trip_d ( const char *p, char delim ) { in round_trip_d() argument
60 ss << std::quoted(sv, delim); in round_trip_d()
62 ss >> std::quoted(s, delim); in round_trip_d()
78 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() argument
80 ss << std::quoted(p, delim, escape); in quote()
86 std::string unquote ( const char *p, char delim='"', char escape='\\' ) { in unquote() argument
90 ss >> std::quoted(s, delim, escape); in unquote()
121 void round_trip_d ( const wchar_t *p, wchar_t delim ) { in round_trip_d() argument
125 ss << std::quoted(sv, delim); in round_trip_d()
127 ss >> std::quoted(s, delim); in round_trip_d()
[all …]
/external/jetty/src/java/org/eclipse/jetty/util/
DQuotedStringTokenizer.java55 String delim, in QuotedStringTokenizer() argument
61 if (delim!=null) in QuotedStringTokenizer()
62 _delim=delim; in QuotedStringTokenizer()
75 String delim, in QuotedStringTokenizer() argument
78 this(str,delim,returnDelimiters,false); in QuotedStringTokenizer()
83 String delim) in QuotedStringTokenizer() argument
85 this(str,delim,false,false); in QuotedStringTokenizer()
237 public String nextToken(String delim) in nextToken() argument
240 _delim=delim; in nextToken()
281 public static String quoteIfNeeded(String s, String delim) in quoteIfNeeded() argument
[all …]
/external/selinux/policycoreutils/mcstrans/src/
Dmls_level.c7 char delim; in mls_level_from_string() local
22 delim = *p; in mls_level_from_string()
23 if (delim != 0) in mls_level_from_string()
30 if (delim == ':') { in mls_level_from_string()
36 delim = *p; in mls_level_from_string()
37 if (delim != 0) in mls_level_from_string()
65 if (delim != ',') in mls_level_from_string()
/external/toybox/toys/posix/
Dcut.c31 char *delim;
129 char *buff, *pfield = 0, *delimiter = TT.delim; in do_fcut()
251 if(TT.delim[0] && TT.delim[1]) in cut_main()
253 delimiter = TT.delim[0]; in cut_main()
257 TT.delim = xzalloc(2); in cut_main()
258 TT.delim[0] = delimiter; in cut_main()
272 free(TT.delim); in cut_main()
273 TT.delim = NULL; in cut_main()
Dsed.c704 static char *unescape_delimited_string(char **pstr, char *delim) in unescape_delimited_string() argument
709 if (!delim || !*delim) { in unescape_delimited_string()
713 if (delim) *delim = d; in unescape_delimited_string()
714 } else d = *delim; in unescape_delimited_string()
715 to = delim = xmalloc(strlen(*pstr)+1); in unescape_delimited_string()
751 return delim; in unescape_delimited_string()
843 char *fiona, delim = 0; in jewel_of_judgement() local
852 if (!(TT.remember = unescape_delimited_string(&line, &delim))) in jewel_of_judgement()
857 corwin->hit = delim; in jewel_of_judgement()
914 int fd, delim; in jewel_of_judgement() local
[all …]
Dxargs.c51 char delim;
64 if (TT.delim) {
116 if (!(toys.optflags & FLAG_0)) TT.delim = '\n'; in xargs_main()
139 l = getdelim(&data, (size_t *)&l, TT.delim, stdin); in xargs_main()
Dpaste.c26 char *delim; in GLOBALS() argument
37 if (!(toys.optflags & FLAG_d)) TT.delim = "\t";
38 for (p = TT.delim; *p; p++, buf++, ndelim++) {
/external/minijail/
Dutil.c141 char *tokenize(char **stringp, const char *delim) in tokenize() argument
153 if (delim == NULL || *delim == '\0') { in tokenize()
161 found = strstr(*stringp, delim); in tokenize()
177 *stringp = found + strlen(delim); in tokenize()
185 *stringp += strlen(delim); in tokenize()
/external/bison/src/
Dlocation.c221 char *delim = mbsrchr (loc_str, '.'); in boundary_set_from_string() local
222 aver (delim); in boundary_set_from_string()
223 *delim = '\0'; in boundary_set_from_string()
224 bound->column = atoi (delim+1); in boundary_set_from_string()
225 delim = mbsrchr (loc_str, ':'); in boundary_set_from_string()
226 aver (delim); in boundary_set_from_string()
227 *delim = '\0'; in boundary_set_from_string()
228 bound->line = atoi (delim+1); in boundary_set_from_string()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.h175 LIBPROTOBUF_EXPORT void SplitStringUsing(const string& full, const char* delim,
187 const char* delim,
195 const string& full, const char* delim, bool skip_empty = true) {
198 SplitStringUsing(full, delim, &result);
200 SplitStringAllowEmpty(full, delim, &result);
214 const char* delim, string* result);
217 const char* delim) { in JoinStrings() argument
219 JoinStrings(components, delim, &result); in JoinStrings()
536 const char* delim, string* result) { in Join() argument
539 result->append(delim); in Join()
[all …]
Dstrutil.cc153 const char* delim, in SplitStringToIteratorUsing() argument
156 if (delim[0] != '\0' && delim[1] == '\0') { in SplitStringToIteratorUsing()
157 char c = delim[0]; in SplitStringToIteratorUsing()
173 begin_index = full.find_first_not_of(delim); in SplitStringToIteratorUsing()
175 end_index = full.find_first_of(delim, begin_index); in SplitStringToIteratorUsing()
181 begin_index = full.find_first_not_of(delim, end_index); in SplitStringToIteratorUsing()
186 const char* delim, in SplitStringUsing() argument
189 SplitStringToIteratorUsing(full, delim, it); in SplitStringUsing()
206 const char* delim, in SplitStringToIteratorAllowEmpty() argument
213 end_index = full.find_first_of(delim, begin_index); in SplitStringToIteratorAllowEmpty()
[all …]
/external/icu/icu4c/source/tools/pkgdata/
Dpkgtypes.c27 const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim, const char *brk, i… in pkg_writeCharListWrap() argument
59 if(l->next && delim) in pkg_writeCharListWrap()
65 T_FileStream_write(s, delim, (int32_t)uprv_strlen(delim)); in pkg_writeCharListWrap()
73 const char *pkg_writeCharList(FileStream *s, CharList *l, const char *delim, int32_t quote) in pkg_writeCharList() argument
107 if(l->next && delim) in pkg_writeCharList()
109 T_FileStream_write(s, delim, (int32_t)uprv_strlen(delim)); in pkg_writeCharList()
/external/selinux/libsepol/src/
Dutil.c200 static inline int tokenize_str(char delim, char **str, char **ptr, size_t *len) in tokenize_str() argument
206 if (isspace(delim) && isspace(**ptr)) { in tokenize_str()
209 } else if (!isspace(delim) && **ptr == delim) { in tokenize_str()
231 while (**ptr != '\0' && isspace(delim) && isspace(**ptr)) { in tokenize_str()
252 int hidden tokenize(char *line_buf, char delim, int num_args, ...) in tokenize() argument
277 rc = tokenize_str(delim, arg, &buf_p, &arg_len); in tokenize()
Dmls.c333 char delim; in mls_context_to_sid() local
351 delim = *p; in mls_context_to_sid()
352 if (delim != 0) in mls_context_to_sid()
365 if (delim == ':') { in mls_context_to_sid()
371 delim = *p; in mls_context_to_sid()
372 if (delim != 0) in mls_context_to_sid()
419 if (delim != ',') in mls_context_to_sid()
423 if (delim == '-') { in mls_context_to_sid()
429 delim = *p; in mls_context_to_sid()
430 if (delim != 0) in mls_context_to_sid()
/external/opencv3/3rdparty/libjasper/
Djpc_util.c93 static char delim[] = ", \t\n"; in jpc_atoaf() local
102 if ((cp = strtok(buf, delim))) { in jpc_atoaf()
104 while ((cp = strtok(0, delim))) { in jpc_atoaf()
119 if ((cp = strtok(buf, delim))) { in jpc_atoaf()
122 while ((cp = strtok(0, delim))) { in jpc_atoaf()
/external/selinux/libsemanage/src/
Dusers_base_file.c106 char delim; in user_base_parse() local
119 delim = *(info->ptr); in user_base_parse()
125 if (delim && !isspace(delim)) { in user_base_parse()
126 if (islist && delim == '}') in user_base_parse()
128 else if (!islist && delim == ';') in user_base_parse()
Dutilities.c34 char *semanage_findval(const char *file, const char *var, const char *delim) in semanage_findval() argument
49 retval = semanage_split(buff, delim); in semanage_findval()
106 char *semanage_split(const char *str, const char *delim) in semanage_split() argument
114 if (!delim || !(*delim)) in semanage_split()
118 ustr_split_cstr(ustr, &off, delim, USTR_NULL, USTR_FLAG_SPLIT_DEF); in semanage_split()
/external/toybox/toys/other/
Dprintenv.c25 char delim = '\n'; in printenv_main() local
27 if (toys.optflags) delim = 0; in printenv_main()
38 xprintf("%s%c", out, delim); in printenv_main()
/external/tlsdate/src/
Dtlsdate-helper-plan9.c315 dns_label_count(char *label, char *delim) in dns_label_count() argument
326 saveptr = strtok_r(label_tmp, delim, &saveptr); in dns_label_count()
330 if (saveptr[0] != delim[0]) in dns_label_count()
339 saveptr_tmp = strtok_r(NULL, delim, &saveptr); in dns_label_count()
362 char *delim; in check_wildcard_match_rfc2595() local
373 delim = strdup("."); in check_wildcard_match_rfc2595()
380 label_count = dns_label_count(cert_wild_card, delim); in check_wildcard_match_rfc2595()
386 if ((NULL != strpbrk(cert_wild_card, delim)) && in check_wildcard_match_rfc2595()
387 (NULL != strpbrk(hostname, delim)) && in check_wildcard_match_rfc2595()
396 wildcard_label = strtok(cert_wild_card, delim); in check_wildcard_match_rfc2595()
[all …]

123456