Home
last modified time | relevance | path

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

12345678910>>...20

/titanic_51/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 in regexec()
74 regmatch_t* match; regexec() local
[all...]
H A Dregsubexec.c71 sub(const regex_t* p, register 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 in regsubexec()
216 regmatch_t* match; regsubexec() local
[all...]
H A Dregsub.c35 subold(register Sfio_t* dp, const char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags_t flags, int sre) in subold() argument
210 s = (char*)op + match[c].rm_so; in subold()
211 e = (char*)op + match[c].rm_eo; in subold()
242 regsub(const regex_t* 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 } while ((m > 0 || (flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match in regsub()
[all...]
/titanic_51/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()
47 printf("%c", *match); in main()
49 printf ("<%03o>", *match); in main()
52 match++; in main()
58 match in main()
[all...]
/titanic_51/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 <[h
[all...]
/titanic_51/usr/src/lib/libast/common/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()
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()
/titanic_51/usr/src/tools/onbld/Checks/
H A DComments.py46 return bugre.match(comment)
92 match = bugre.search(com)
93 if match:
94 if match.group(1) not in bugs:
95 bugs[match.group(1)] = []
96 bugs[match.group(1)].append(match.group(2))
104 match = bugnospcre.search(com)
105 if match:
106 if match
[all...]
/titanic_51/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)
/titanic_51/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrmatch.c29 * match shell file patterns
63 regmatch_t* match; member
70 * subgroup match
71 * 0 returned if no match
73 * match group begin offsets are even elements of sub
74 * match group end offsets are odd elements of sub
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|REG_ICASE))) in strgrpmatch()
155 *subi++ = matchstate.match[ in strgrpmatch()
193 ssize_t match[2]; strsubmatch() local
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathrepl.c27 * in place replace of first occurrence of /match/ with /replace/ in path
36 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()
/titanic_51/usr/src/lib/libast/common/string/
H A Dstrmatch.c63 regmatch_t* match; member
128 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0))) in strgrpmatch()
132 …if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT… in strgrpmatch()
140 *sub++ = matchstate.match[n].rm_so; in strgrpmatch()
141 *sub++ = matchstate.match[n].rm_eo; in strgrpmatch()
168 int match[2]; in strsubmatch() local
170 …return strgrpmatch(s, p, match, 1, (flags ? STR_MAXIMAL : 0)|STR_LEFT) ? (char*)s + match[1] : (ch… in strsubmatch()
/titanic_51/usr/src/cmd/ast/libshell/common/scripts/
H A Dshman.sh198 typeset match="${mandir}/sman${mansect}/${manname}.${mansect}"
199 if [[ -r "${match}" ]] ; then
204 debug_print -f "match: %s\n" "${match}"
206 tmp="$(cd "${mandir}" ; LC_MESSAGES=C /usr/lib/sgml/sgml2roff "${match}")"
210 match="${nlink}"
221 match="${mandir}/man${mansect}/${manname}.${mansect}"
222 if [[ -r "${match}" ]] ; then
223 debug_print -f "match: %s\n" "${match}"
[all...]
/titanic_51/usr/src/lib/libshell/common/scripts/
H A Dshman.sh198 typeset match="${mandir}/sman${mansect}/${manname}.${mansect}"
199 if [[ -r "${match}" ]] ; then
204 debug_print -f "match: %s\n" "${match}"
206 tmp="$(cd "${mandir}" ; LC_MESSAGES=C /usr/lib/sgml/sgml2roff "${match}")"
210 match="${nlink}"
221 match="${mandir}/man${mansect}/${manname}.${mansect}"
222 if [[ -r "${match}" ]] ; then
223 debug_print -f "match: %s\n" "${match}"
224 …tbl <"${match}" | eqn | nroff -u0 -Tlp -man - | col -x | browse_manpage /dev/stdin "${manname}(${m…
258 match="${mandir}/sman${mansect}/${manname}.${mansect}"
[all …]
/titanic_51/usr/src/cmd/dd/
H A Ddd.c116 static int match(char *);
522 if (match("ibs=")) in main()
527 if (match("obs=")) in main()
532 if (match("cbs=")) in main()
537 if (match("bs=")) in main()
542 if (match("if=")) in main()
547 if (match("of=")) in main()
552 if (match("skip=")) in main()
557 if (match("iseek=")) in main()
562 if (match("osee in main()
1682 match(s) match() function
[all...]
/titanic_51/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c230 nvpair_t *match = zjni_nvlist_walk_nvpair( in get_disk_online() local
233 if (match == NULL || nvpair_value_uint32(match, &status)) { in get_disk_online()
452 nvpair_t *match = zjni_nvlist_walk_nvpair( in get_disk_size() local
454 if (match == NULL || nvpair_value_uint64(match, size)) { in get_disk_size()
457 match = zjni_nvlist_walk_nvpair( in get_disk_size()
459 if (match == NULL || nvpair_value_uint64(match, size)) { in get_disk_size()
467 match in get_disk_size()
498 nvpair_t *match; get_slice_use() local
557 nvpair_t *match = zjni_nvlist_walk_nvpair( get_slice() local
[all...]
/titanic_51/usr/src/tools/ctf/cvt/
H A Doutput.c152 * A fuzzy match is where we have a local symbol matching the name of a
156 * A weak fuzzy match is when a weak symbol was resolved and matched to
160 matching_iidesc(iidesc_t *iidesc, iidesc_match_t *match) in matching_iidesc() argument
162 if (streq(iidesc->ii_name, match->iim_name) == 0) in matching_iidesc()
168 if (match->iim_bind == STB_GLOBAL) { in matching_iidesc()
169 match->iim_ret = iidesc; in matching_iidesc()
171 } else if (match->iim_fuzzy && match->iim_ret == NULL) { in matching_iidesc()
172 match->iim_ret = iidesc; in matching_iidesc()
173 /* continue to look for strong match */ in matching_iidesc()
191 find_iidesc(tdata_t * td,iidesc_match_t * match) find_iidesc() argument
338 iidesc_match_t match; sort_iidescs() local
[all...]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dglob.sh81 $pattern) got='<match>' ;;
164 test_case '<match>' '!7' '*\!*'
165 test_case '<match>' 'r.*' '*.\*'
170 test_case '<match>' 'abc' 'a"b"c'
171 test_case '<match>' 'abc' 'a*c'
175 test_case '<match>' '"$undefined"' '""'
176 test_case '<match>' 'abc' 'a["\b"]c'
189 test_case '<match>' 'abc' 'a***c'
190 test_case '<match>' 'abc' 'a*****?c'
191 test_case '<match>' 'ab
[all...]
/titanic_51/usr/src/lib/libshell/common/tests/
H A Dglob.sh210 test_case '<match>' "'\\'" '[\\]'
211 test_case '<match>' "'\\'" "'\\'"
212 test_case '<match>' "'['" '[[]'
213 test_case '<match>' '[' '[[]'
214 test_case '<match>' "'['" '['
215 test_case '<match>' '[' '['
216 test_case '<match>' "'[abc'" "'['*"
218 test_case '<match>' '[abc' "'['*"
220 test_case '<match>' 'abd' "a[b/c]d"
221 test_case '<match>' 'a/d' "a[b/c]d"
[all …]
/titanic_51/usr/src/lib/libc/port/gen/
H A Dgetopt_long.c304 * Returns -1 if short_too is set and the option does not match long_options.
316 int match = 0; in parse_long_options() local
319 match = -1; in parse_long_options()
336 continue; /* no match */ in parse_long_options()
345 /* exact match */ in parse_long_options()
346 match = i; in parse_long_options()
351 * a partial match of a single character. in parse_long_options()
356 if (match == -1) /* partial match */ in parse_long_options()
357 match in parse_long_options()
[all...]
/titanic_51/usr/src/lib/libast/common/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()
/titanic_51/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()
/titanic_51/usr/src/lib/libast/common/path/
H A Dpathrepl.c34 pathrepl(register char* path, const char* match, register const char* replace) in pathrepl() argument
36 register const char* m = match; in pathrepl()
40 if (!match) match = ""; in pathrepl()
42 if (streq(match, replace)) in pathrepl()
73 m = match; in pathrepl()
/titanic_51/usr/src/cmd/sed/
H A Dprocess.c81 regmatch_t *match; variable
389 if (lastempty || match[0].rm_so != match[0].rm_eo) { in substitute()
391 re_off = match[0].rm_so; in substitute()
398 /* Move past this match. */ in substitute()
399 if (match[0].rm_so != match[0].rm_eo) { in substitute()
400 s += match[0].rm_eo; in substitute()
401 slen -= match[0].rm_eo; in substitute()
404 if (match[ in substitute()
[all...]

12345678910>>...20