Home
last modified time | relevance | path

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

12345678910>>...19

/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregexec.c41 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()
74 regmatch_t* match; in regexec() local
78 if (!(match = oldof(0, regmatch_t, nmatch, 0))) in regexec()
83 oldmatch[i].rm_so = match[i].rm_so; in regexec()
84 oldmatch[i].rm_eo = match[i].rm_eo; in regexec()
[all …]
H A Dregsubexec.c86 if ((c = match[op->off].rm_so) < 0) in sub()
89 if ((c = match[op->off].rm_eo) < 0) in sub()
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()
183 match->rm_so = match->rm_eo = 1; in regsubexec()
216 regmatch_t* match; in regsubexec() local
224 match[i].rm_so = oldmatch[i].rm_so; in regsubexec()
225 match[i].rm_eo = oldmatch[i].rm_eo; in regsubexec()
230 oldmatch[i].rm_so = match[i].rm_so; 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.c26 char *match; in main() local
34 match = ireg; in main()
35 while(*match) { in main()
36 switch (*match) { in main()
42 printf ("%c", *match); in main()
46 if (isalnum(*match)) in main()
52 match++; in main()
58 match = str; in main()
60 *match++ = c; in main()
61 *match = 0; 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
37 +76 match !(*!*) , [ %s ... ]
1022 &156 match [gx]
1025 &100 match +([ 0-7])?
1031 &100 match +([ 0-7])?
1032 +0 match ???* , [ %s ... ]
1096 &name match *.(SYS|sys)
1381 &name match core*
1497 |name match *.dif DV video/x-dv
[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}
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}
56 {if(match($0,/>=/))print $0}
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Ddbm.c175 assert(match != NULL); in dbm_page_byname()
182 assert(match != NULL); in dbm_page_bysect()
189 assert(match != NULL); in dbm_page_byarch()
190 page_byarch(match); in dbm_page_byarch()
196 assert(match != NULL); in dbm_page_bydesc()
247 match = arg_match; in page_bytitle()
263 match = NULL; in page_bytitle()
291 match = NULL; in page_bytitle()
324 match = arg_match; in page_byarch()
344 match = NULL; in page_byarch()
[all …]
/illumos-gate/usr/src/tools/onbld/Checks/
H A DComments.py48 return bugre.match(comment)
102 match = bugre.search(com)
103 if match:
104 if match.group(1) not in bugs:
105 bugs[match.group(1)] = []
106 bugs[match.group(1)].append(match.group(2))
114 match = bugnospcre.search(com)
115 if match:
116 if match.group(1) not in bugs:
117 bugs[match.group(1)] = []
[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()
630 if (match(",")) { in main()
708 if (match(",")) { in main()
724 if (match(",")) { 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.c236 if (match == NULL || nvpair_value_uint32(match, &status)) { in get_disk_online()
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()
473 if (match == NULL || in get_disk_size()
502 nvpair_t *match; in get_slice_use() local
508 if (match != NULL && in get_slice_use()
518 match = in get_slice_use()
523 if (match != NULL && in get_slice_use()
567 if (match == NULL || in get_slice()
[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()
385 optopt = long_options[match].val; in parse_long_options()
418 optopt = long_options[match].val; in parse_long_options()
438 *idx = match; in parse_long_options()
440 *long_options[match].flag = long_options[match].val; 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' "'['*"
222 test_case '<match>' "']'" '[]]'
223 test_case '<match>' "'-'" '[]-]'
[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/cmd/sed/
H A Dprocess.c83 regmatch_t *match; variable
403 if (lastempty || match[0].rm_so != match[0].rm_eo) { in substitute()
413 if (match[0].rm_so != match[0].rm_eo) { in substitute()
432 if (match[0].rm_eo == match[0].rm_so) in substitute()
433 match[0].rm_eo = match[0].rm_so + 1; in substitute()
434 s += match[0].rm_eo; in substitute()
450 s += match[0].rm_eo; in substitute()
670 match[0].rm_so = 0; in regexec_e()
671 match[0].rm_eo = slen; in regexec_e()
719 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) { in regsub()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dstrmatch.c552 Match_t match; in strgrpmatch() local
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()
576 match.current.beg[0] = s; in strgrpmatch()
579 n = match.current.groups; in strgrpmatch()
582 sub[i * 2] = match.current.end[i] ? match.current.beg[i] - s : 0; 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/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/lib/libtecla/common/
H A Dcplmatch.c349 match->completion = string; in cpl_add_completion()
351 match->type_suffix = type_suffix; in cpl_add_completion()
1002 CplMatch *match = matches + src; in cpl_zap_duplicates() local
1006 matches[dst] = *match; in cpl_zap_duplicates()
1008 completion = match->completion; in cpl_zap_duplicates()
1009 type_suffix = match->type_suffix; in cpl_zap_duplicates()
1053 CplMatch *match = result->matches + i; in cpl_plan_listing() local
1054 int len = strlen(match->completion) + strlen(match->type_suffix); in cpl_plan_listing()
1130 CplMatch *match = result->matches + m; in cpl_format_line() local
1134 int clen = strlen(match->completion); in cpl_format_line()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_util.c545 free(fmt->match.string); in free_mapping_format()
1410 out[i].match.string = in dup_format_mapping()
1432 out[i].match.limit = in[i].match.limit; in dup_format_mapping()
1946 bool_t match; in skip_token() local
1957 if (!match) in skip_token()
1962 if (!match) in skip_token()
1967 if (!match) in skip_token()
1971 match = FALSE; in skip_token()
1974 if (match) { in skip_token()
2161 fmt->match.string = in get_next_extract_format_item()
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
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; \
/illumos-gate/usr/src/contrib/zlib/
H A Dinftrees.c53 unsigned match; /* use base and extra for symbol >= match */ in inflate_table() local
180 match = 20; in inflate_table()
185 match = 257; in inflate_table()
190 match = 0; in inflate_table()
213 if (work[sym] + 1U < match) { in inflate_table()
217 else if (work[sym] >= match) { in inflate_table()
218 here.op = (unsigned char)(extra[work[sym] - match]); in inflate_table()
219 here.val = base[work[sym] - match]; in inflate_table()

12345678910>>...19