Searched defs:match (Results 1 - 25 of 116) sorted by relevance

12345

/osnet-11/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) argument
41 int m = match->rm_so;
44 if (!(r = regnexec(p, s + m, match->rm_eo - m, nmatch, match, flags)) && m > 0)
45 for (e = match + nmatch; match < e; match++)
46 if (match->rm_so >= 0)
48 match->rm_so += m;
49 match
[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) argument
86 if ((c = match[op->off].rm_so) < 0)
89 if ((c = match[op->off].rm_eo) < 0)
148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match) argument
165 PUTS(p, b, s, match->rm_eo, return fatal(p->env->disc, c, NiL));
168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL));
169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match)))
172 s += match->rm_eo;
175 if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match
[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) argument
210 s = (char*)op + match[c].rm_so;
211 e = (char*)op + match[c].rm_eo;
242 regsub(const regex_t* p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) argument
256 sfwrite(dp, op, match->rm_eo);
259 sfwrite(dp, op, match->rm_so);
260 if (r = subold(dp, op, sp, nmatch, match, flags, sre))
263 op += match->rm_eo;
264 } while ((m > 0 || (flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match
[all...]
H A Dregrexec.c36 regrexec(const regex_t* p, const char* s, size_t len, size_t nmatch, regmatch_t* match, regflags_t flags, int sep, void* handle, regrecord_t record) argument
109 if (complete || (env->rex = ((r - l) > 128) ? e : e->next) && !(n = regnexec(p, (char*)l, r - l, nmatch, match, flags)))
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/
H A DAttributePattern.java133 // returning true if they match.
135 public boolean match(AttributeString str) { method in class:AttributePattern
139 boolean match = true;
160 match = false;
171 // have a match.
176 // a pure wildcard, then we *do* have a match.
188 match = false;
199 // The pattern string must match the beginning part of the
207 match = false;
224 return match;
[all...]
H A DAttributeString.java92 public boolean match(AttributeString str) { method in class:AttributeString
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_findrealm.c29 * the components of a principal (princ) but match on any realm. When a
40 krb5_boolean match; local
55 match = krb5_principal_compare(context, ent.principal, princ);
60 if (match) {
/osnet-11/usr/src/lib/libast/common/comp/
H A Dfnmatch.c58 regmatch_t match; local
67 reflags = regexec(&re, subject, 1, &match, 0);
69 if (!reflags && (reflags = subject[match.rm_eo]))
H A Dregexp.c98 regmatch_t match[elementsof(re->re_braslist)+1]; local
100 if (regexec(&env->re, subject, elementsof(match), match, 0) || anchor && match[0].rm_so)
102 re->re_loc1 = (char*)subject + match[0].rm_so;
103 re->re_loc2 = (char*)subject + match[0].rm_eo;
106 re->re_braslist[n-1] = (char*)subject + match[n].rm_so;
107 re->re_braelist[n-1] = (char*)subject + match[n].rm_eo;
H A Dregcmp.c190 regmatch_t match[SUB + 1]; local
199 if (regexec(&re->re, subject, SUB + 1, match, 0))
205 k = match[i].rm_eo - match[i].rm_so;
206 strlcpy(sub[n], subject + match[i].rm_so, k);
209 __loc1 = (char*)subject + match[0].rm_so;
210 return (char*)subject + match[0].rm_eo;
/osnet-11/usr/src/lib/libast/common/path/
H A Dpathgetlink.c60 int match = 0; local
72 if (match)
82 if (!match && t < &tmp[sizeof(tmp) - univ_size + 1]) for (n = 0; n < UNIV_MAX; n++)
89 match = 1;
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) argument
38 return pathrepl_20100601(path, PATH_MAX, match, replace);
46 pathrepl_20100601(register char* path, size_t size, const char* match, register const char* replace) argument
48 register const char* m = match;
52 if (!match)
53 match = "";
56 if (streq(match, replace))
89 m = match;
/osnet-11/usr/src/lib/sun_fc/common/
H A DHandleNPIVPort.cc102 * @return FALSE if the argument does not match this port
106 bool HandleNPIVPort::match(uint64_t portWWN) { function in class:HandleNPIVPort
107 Trace log("HandleNPIVPort::match(wwn)");
116 * @return FALSE if the argument does not match this port
120 bool HandleNPIVPort::match(int index) { function in class:HandleNPIVPort
121 Trace log("HandleNPIVPort::match(index)");
H A DHandlePort.cc95 * @return FALSE if the argument does not match this port
98 bool HandlePort::match(uint64_t portWWN) { function in class:HandlePort
99 Trace log("HandlePort::match(wwn)");
108 * @return FALSE if the argument does not match this port
111 bool HandlePort::match(int index) { function in class:HandlePort
112 Trace log("HandlePort::match(index)");
/osnet-11/usr/src/lib/libgss/
H A Dg_userok.c47 int match = 0; local
76 &match);
80 if (match)
/osnet-11/usr/src/lib/libadm/common/
H A Dckkeywd.c41 match(char *strval, char *set[]) function
110 valid = !match(input, keyword);
/osnet-11/usr/src/lib/libast/common/string/
H A Dstrmatch.c29 * match shell file patterns
63 regmatch_t* match; member in struct:State_s
68 * subgroup match
69 * 0 returned if no match
71 * match group begin offsets are even elements of sub
72 * match group end offsets are odd elements of sub
128 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0)))
132 if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT|REG_ICASE)))
140 *sub++ = matchstate.match[
168 int match[2]; local
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetopt.c134 int match; /* nonzero if opt is matching part of optstring */ local
146 match = 1;
148 match = (*ip++ == *op++ && match);
149 if (match && *ip == ')' &&
H A Dgetuserattrnam.c46 char *match; local
48 if ((match = kva_match(kva, (char *)key)) != NULL) {
51 attrval->attr = strdup(match);
59 return (0); /* no match */
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dntfscluster.h53 struct match { struct
/osnet-11/usr/src/lib/libpp/common/
H A Dppexpr.c105 * strcmp/match predicate evaluation
109 compare(char* pred, char* args, int match) argument
127 if (!match)
/osnet-11/usr/src/lib/libpcp/common/
H A Dpcp_utils.c72 * match the extracted service name for the function to succeed.
73 * The service name is returned in match (if non-NULL), and the function
77 get_vldc_svc_name(char *dev_path, char *service, char **match) argument
101 if (match)
102 *match = strdup(s);
109 } else if (match) {
110 *match = strdup(s);
126 * match the extracted service name for the function to succeed.
127 * The service name is returned in match (if non-NULL), and the function
131 get_glvc_svc_name(char *dev_path, char *service, char **match) argument
[all...]
/osnet-11/usr/src/lib/libast/amd64/include/ast/
H A Dccode.h52 const char* match; /* strmatch() pattern */ member in struct:Ccmap_s
/osnet-11/usr/src/lib/libast/common/disc/
H A Dsfdcmore.c48 int match; /* match length, 0 if none */ member in struct:__anon1130
49 char pattern[128]; /* match pattern */
70 more->match = 0;
171 if (more->match)
173 match:
180 else if (*s == r && (e - s) >= more->match && !strncmp(s, more->pattern, more->match))
185 more->match = 0;
227 if (more->match
[all...]
/osnet-11/usr/src/lib/libast/common/include/
H A Dccode.h43 const char* match; /* strmatch() pattern */ member in struct:Ccmap_s

Completed in 55 milliseconds

12345