Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 459) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregexec.c36 regexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match, regflags_t flags) in regexec() argument
41 int m = match->rm_so; in regexec()
44 if (!(r = regnexec(p, s + m, match->rm_eo - m, nmatch, match, flags)) && m > 0) in regexec()
45 for (e = match + nmatch; match < e; match++) in regexec()
46 if (match->rm_so >= 0) in regexec()
48 match->rm_so += m; in regexec()
49 match->rm_eo += m; in regexec()
53 return regnexec(p, s, s ? strlen(s) : 0, nmatch, match, flags); in regexec()
74 regmatch_t* match; in regexec() local
78 if (!(match = oldof(0, regmatch_t, nmatch, 0))) in regexec()
[all …]
H A Dregsubexec.c71 …er regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch, register regmatch_t* match) in sub() argument
86 if ((c = match[op->off].rm_so) < 0) in sub()
89 if ((c = match[op->off].rm_eo) < 0) in sub()
148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match) in regsubexec() argument
165 PUTS(p, b, s, match->rm_eo, return fatal(p->env->disc, c, NiL)); in regsubexec()
168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL)); in regsubexec()
169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match))) in regsubexec()
172 s += match->rm_eo; in regsubexec()
175 …if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match->rm_so == match->rm_eo ? REG_ADV… in regsubexec()
181 if (!match->rm_so && !match->rm_eo && *s && m <= 1) in regsubexec()
[all …]
H A Dregsub.c35 …st char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags… in subold() argument
210 s = (char*)op + match[c].rm_so; in subold()
211 e = (char*)op + match[c].rm_eo; in subold()
242 … p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) in regsub() argument
256 sfwrite(dp, op, match->rm_eo); in regsub()
259 sfwrite(dp, op, match->rm_so); in regsub()
260 if (r = subold(dp, op, sp, nmatch, match, flags, sre)) in regsub()
263 op += match->rm_eo; in regsub()
264 …(flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match->rm_so == match in regsub()
/illumos-gate/usr/src/cmd/vgrind/
H A Dretest.c23 char *match; in main() local
31 match = ireg; in main()
32 while(*match) { in main()
33 switch (*match) { in main()
39 printf ("%c", *match); in main()
43 if (isalnum(*match)) in main()
44 printf("%c", *match); in main()
46 printf ("<%03o>", *match); in main()
49 match++; in main()
55 match = str; in main()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmagic.tab10 # + previous fields must match, current optional
11 # & previous and current fields must match
21 # type { byte short long quad date edit match }
24 # description file description for magic number match
37 +76 match !(*!*) , [ %s ... ]
1022 &156 match [gx]
1025 &100 match +([ 0-7])?
1031 &100 match +([ 0-7])?
1032 +0 match ???* , [ %s ... ]
1043 0 match <[hH][tT][mM][lL]> html input text/html
[all …]
/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A Dlilly.progs46 {if(match($0,/=/))print $0}
47 {if(match($0,/\=/))print $0}
48 {if(match($0,/==/))print $0}
49 {if(match($0,/\+=/))print $0}
50 {if(match($0,/\*=/))print $0}
51 {if(match($0,/-=/))print $0}
52 {if(match($0,/%=/))print $0}
53 {if(match($0,/^=/))print $0}
54 {if(match($0,/!=/))print $0}
55 {if(match($0,/<=/))print $0}
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Ddbm.c173 dbm_page_byname(const struct dbm_match *match) in dbm_page_byname() argument
175 assert(match != NULL); in dbm_page_byname()
176 page_bytitle(ITER_NAME, match); in dbm_page_byname()
180 dbm_page_bysect(const struct dbm_match *match) in dbm_page_bysect() argument
182 assert(match != NULL); in dbm_page_bysect()
183 page_bytitle(ITER_SECT, match); in dbm_page_bysect()
187 dbm_page_byarch(const struct dbm_match *match) in dbm_page_byarch() argument
189 assert(match != NULL); in dbm_page_byarch()
190 page_byarch(match); in dbm_page_byarch()
194 dbm_page_bydesc(const struct dbm_match *match) in dbm_page_bydesc() argument
[all …]
/illumos-gate/usr/src/cmd/dd/
H A Ddd.c120 static int match(char *);
567 if (match("ibs=")) { in main()
571 if (match("obs=")) { in main()
575 if (match("cbs=")) { in main()
579 if (match("bs=")) { in main()
583 if (match("if=")) { in main()
587 if (match("of=")) { in main()
591 if (match("skip=")) { in main()
595 if (match("iseek=")) { in main()
599 if (match("oseek=")) { in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/tools/
H A Dgetmessage.awk59 if (match($j, /[a-z]/) == 0 &&
60 match($j, /[A-Z]/) != 0)
72 if (match($j, /[a-z]/) == 0 &&
73 match($j, /[A-Z]/) != 0)
85 if (match($1, /[a-z]/) == 0 &&
86 match($1, /[A-Z]/) != 0)
90 if (match($1, /[a-z]/) == 0 &&
91 match($1, /[A-Z]/) != 0)
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrmatch.c63 regmatch_t* match; member
139 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0))) in strgrpmatch()
143 …if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT… in strgrpmatch()
155 *subi++ = matchstate.match[n].rm_so; in strgrpmatch()
156 *subi++ = matchstate.match[n].rm_eo; in strgrpmatch()
164 *sub++ = matchstate.match[n].rm_so; in strgrpmatch()
165 *sub++ = matchstate.match[n].rm_eo; in strgrpmatch()
193 ssize_t match[2]; in strsubmatch() local
195 …return strgrpmatch(s, p, match, 1, (flags ? STR_MAXIMAL : 0)|STR_LEFT) ? (char*)s + match[1] : (ch… in strsubmatch()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathrepl.c36 pathrepl(char* path, const char* match, const char* replace) in pathrepl() argument
38 return pathrepl_20100601(path, PATH_MAX, match, replace); in pathrepl()
46 pathrepl_20100601(register char* path, size_t size, const char* match, register const char* replace) in pathrepl_20100601() argument
48 register const char* m = match; in pathrepl_20100601()
52 if (!match) in pathrepl_20100601()
53 match = ""; in pathrepl_20100601()
56 if (streq(match, replace)) in pathrepl_20100601()
89 m = match; in pathrepl_20100601()
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c233 nvpair_t *match = zjni_nvlist_walk_nvpair( in get_disk_online() local
236 if (match == NULL || nvpair_value_uint32(match, &status)) { in get_disk_online()
456 nvpair_t *match = zjni_nvlist_walk_nvpair( in get_disk_size() local
458 if (match == NULL || nvpair_value_uint64(match, size)) { in get_disk_size()
461 match = zjni_nvlist_walk_nvpair( in get_disk_size()
463 if (match == NULL || nvpair_value_uint64(match, size)) { in get_disk_size()
471 match = zjni_nvlist_walk_nvpair( in get_disk_size()
473 if (match == NULL || in get_disk_size()
474 nvpair_value_uint32(match, blocksize)) { in get_disk_size()
502 nvpair_t *match; in get_slice_use() local
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetopt_long.c316 int match = 0; in parse_long_options() local
319 match = -1; in parse_long_options()
346 match = i; in parse_long_options()
356 if (match == -1) /* partial match */ in parse_long_options()
357 match = i; in parse_long_options()
371 if (match != -1) { /* option found */ in parse_long_options()
372 if ((long_options[match].has_arg == no_argument) && in parse_long_options()
384 if (long_options[match].flag == NULL) in parse_long_options()
385 optopt = long_options[match].val; in parse_long_options()
390 if (long_options[match].has_arg == required_argument || in parse_long_options()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dglob.sh209 test_case '<match>' "'\\'" '[\\]'
210 test_case '<match>' "'\\'" "'\\'"
211 test_case '<match>' "'['" '[[]'
212 test_case '<match>' '[' '[[]'
213 test_case '<match>' "'['" '['
214 test_case '<match>' '[' '['
215 test_case '<match>' "'[abc'" "'['*"
217 test_case '<match>' '[abc' "'['*"
219 test_case '<match>' 'abd' "a[b/c]d"
220 test_case '<match>' 'a/d' "a[b/c]d"
[all …]
/illumos-gate/usr/src/cmd/sed/
H A Dprocess.c83 regmatch_t *match; variable
403 if (lastempty || match[0].rm_so != match[0].rm_eo) { in substitute()
405 re_off = match[0].rm_so; in substitute()
413 if (match[0].rm_so != match[0].rm_eo) { in substitute()
414 s += match[0].rm_eo; in substitute()
415 slen -= match[0].rm_eo; in substitute()
418 if (match[0].rm_so < slen) in substitute()
419 cspace(&SS, s + match[0].rm_so, 1, in substitute()
421 s += match[0].rm_so + 1; in substitute()
422 slen -= match[0].rm_so + 1; in substitute()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dregexp.c98 regmatch_t match[elementsof(re->re_braslist)+1]; in _re_exec() local
100 if (regexec(&env->re, subject, elementsof(match), match, 0) || anchor && match[0].rm_so) in _re_exec()
102 re->re_loc1 = (char*)subject + match[0].rm_so; in _re_exec()
103 re->re_loc2 = (char*)subject + match[0].rm_eo; in _re_exec()
106 re->re_braslist[n-1] = (char*)subject + match[n].rm_so; in _re_exec()
107 re->re_braelist[n-1] = (char*)subject + match[n].rm_eo; in _re_exec()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dstrmatch.c552 Match_t match; in strgrpmatch() local
555 match.last_s = e = s + strlen(s); in strgrpmatch()
558 match.best.next_s = 0; in strgrpmatch()
559 match.current.groups = 0; in strgrpmatch()
560 if ((i = grpmatch(&match, 0, s, (char*)p, e, flags)) || match.best.next_s) in strgrpmatch()
563 match.current = match.best; in strgrpmatch()
564 match.current.groups++; in strgrpmatch()
565 match.current.end[0] = match.current.next_s; in strgrpmatch()
572 if ((flags & STR_RIGHT) && match.current.next_s != e) in strgrpmatch()
576 match.current.beg[0] = s; in strgrpmatch()
[all …]
/illumos-gate/usr/src/lib/libpcp/common/
H A Dpcp_utils.c77 get_vldc_svc_name(char *dev_path, char *service, char **match) in get_vldc_svc_name() argument
101 if (match) in get_vldc_svc_name()
102 *match = strdup(s); in get_vldc_svc_name()
109 } else if (match) { in get_vldc_svc_name()
110 *match = strdup(s); in get_vldc_svc_name()
131 get_glvc_svc_name(char *dev_path, char *service, char **match) in get_glvc_svc_name() argument
163 if ((ret == true) && (match != NULL)) { in get_glvc_svc_name()
164 *match = calloc(len + 1, 1); in get_glvc_svc_name()
165 if (*match) in get_glvc_svc_name()
166 (void) strncpy(*match, devname, len); in get_glvc_svc_name()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplmatch.c297 CplMatch *match; /* The container of the new match */ in cpl_add_completion() local
346 match = cpl->result.matches + cpl->result.nmatch++; in cpl_add_completion()
347 match->completion = string; in cpl_add_completion()
348 match->suffix = string + word_end - word_start; in cpl_add_completion()
349 match->type_suffix = type_suffix; in cpl_add_completion()
1000 CplMatch *match = matches + src; in cpl_zap_duplicates() local
1001 if(strcmp(completion, match->completion) != 0 || in cpl_zap_duplicates()
1002 strcmp(type_suffix, match->type_suffix) != 0) { in cpl_zap_duplicates()
1004 matches[dst] = *match; in cpl_zap_duplicates()
1006 completion = match->completion; in cpl_zap_duplicates()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_util.c220 if (e->element.match.fmt != NULL) in free_mapping_element()
221 free_mapping_format(e->element.match.fmt); in free_mapping_element()
222 e->element.match.fmt = NULL; in free_mapping_element()
223 for (i = 0; i < e->element.match.numItems; i++) in free_mapping_element()
224 free_mapping_item(&e->element.match.item[i]); in free_mapping_element()
225 e->element.match.numItems = 0; in free_mapping_element()
226 if (e->element.match.item != NULL) in free_mapping_element()
227 free(e->element.match.item); in free_mapping_element()
228 e->element.match.item = NULL; in free_mapping_element()
544 if (fmt->match.string != NULL) in free_mapping_format()
[all …]
/illumos-gate/usr/src/cmd/allocate/
H A Dsvc-allocate54 <match key="info.capabilities" contains="volume">
55 <match key="@block.storage_device:storage.removable" bool="true">
57 </match>
58 <match key="@block.storage_device:storage.hotpluggable" bool="true">
60 </match>
61 </match>
/illumos-gate/usr/src/tools/onbld/Checks/
H A DComments.py49 return bugre.match(comment)
56 if re.match('^Change-Id: I[0-9a-f]+', comments[-1]):
118 match = bugre.search(com)
119 if match:
120 (bugid, synopsis) = match.groups()
130 match = bugnospcre.search(com)
131 if match:
132 (bugid, synopsis) = match.groups()
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DServiceStoreInMemory.java329 boolean match = false; in setReturn()
335 match = true; in setReturn()
339 return match; in setReturn()
380 boolean match = false; in getAll()
385 match = match | rec.setReturn(returns); in getAll()
388 return match; in getAll()
412 boolean match = false; in matchDoesNotContain()
434 match = match | rec.setReturn(returns); in matchDoesNotContain()
438 return match; in matchDoesNotContain()
445 boolean match = false; in matchEqual()
[all …]
H A DAttributePattern.java135 public boolean match(AttributeString str) { in match() method in AttributePattern
139 boolean match = true; in match()
160 match = false; in match()
188 match = false; in match()
207 match = false; in match()
224 return match; in match()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_clone/
H A Dzfs_clone_010_pos.ksh104 (for match in ${clones[@]};do
105 [[ $match != $unexpected_clone ]] && \
111 (for match in ${clones[@]};do
112 [[ $match == $expected_clone ]] && \
113 [[ $match != $unexpected_clone ]] \
119 (for match in ${clones[@]};do
120 [[ $match == $expected_clone ]] && \
128 (for match in ${clones[@]};do
129 [[ $match == $expected_clone ]] && exit 0; \

12345678910>>...19