/ast/src/lib/libast/comp/ |
H A D | fnmatch.c | 58 regmatch_t match; local 67 reflags = regexec(&re, subject, 1, &match, 0); 69 if (!reflags && (reflags = subject[match.rm_eo]))
|
H A D | regexp.c | 98 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 D | regcmp.c | 197 regmatch_t match[SUB + 1]; local 212 if (regexec(&re->re, subject, SUB + 1, match, 0)) 218 k = match[i].rm_eo - match[i].rm_so; 219 strlcpy(sub[n], subject + match[i].rm_so, k); 222 __loc1 = (char*)subject + match[0].rm_so; 223 return (char*)subject + match[0].rm_eo;
|
/ast/src/lib/libast/path/ |
H A D | pathgetlink.c | 60 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 D | pathrepl.c | 27 * 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;
|
/ast/src/lib/libast/regex/ |
H A D | regexec.c | 36 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 74 regmatch_t* match; local [all...] |
H A D | regsub.c | 35 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 D | regsubexec.c | 71 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 216 regmatch_t* match; local [all...] |
H A D | regrexec.c | 36 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))) 165 regmatch_t* match; local 169 if (!(match = oldof(0, regmatch_t, nmatch, 0))) 171 if (!(r = regrexec_20120528(p, s, len, nmatch, match, flags, sep, handle, record))) 174 oldmatch[i].rm_so = match[i].rm_so; 175 oldmatch[i].rm_eo = match[i].rm_eo; 177 free(match);
|
/ast/src/lib/libast/string/ |
H A D | strmatch.c | 29 * match shell file patterns 63 regmatch_t* match; member in struct:State_s 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))) 143 if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT|REG_ICASE))) 155 *subi++ = matchstate.match[ 193 ssize_t match[2]; local [all...] |
/ast/src/cmd/re/ |
H A D | sed3.c | 73 reexec(regex_t* re, char* s, size_t n, size_t nmatch, regmatch_t* match, int flags) argument 76 if((code = regnexec(re, s, n, nmatch, match, flags)) && code != REG_NOMATCH)
|
/ast/src/lib/libodelta/ |
H A D | mtchstring.c | 25 ** Find the longest prefix of tar that match some substring of src 48 /* see if this really improves on the current match */ 53 /* got an improvement, match as many more as we can */ 66 long mtchstring(char* src, long n_src, char* tar, long n_tar, char** match) argument 163 *match = src;
|
H A D | suftree.c | 122 register Suftree *match, *clocus, *locus, *link; local 150 /* the current match length */ 189 rescan must match a prefix of that child. 191 match = child_find(link,*rescan); 192 /**/ ASSERT(match != NULL) 197 /* rescan contains LABEL(match) */ 198 if(relen >= LENGTH(match)) 200 link = match; 201 relen -= LENGTH(match); 202 rescan += LENGTH(match); 319 register Suftree *match; local [all...] |
H A D | delta.c | 381 char *match; local 384 size = mtchsuftree(tree,tar,n_tar,&match); 385 else size = mtchstring(src,n_src,tar,n_tar,&match); 389 size = chkMove(size,(long)(match-Bsrc),(long)(tp ? tp-tar : 0)); 401 moves = newMove(DELTA_MOVE,size,(long)(match-Bsrc),moves);
|
/ast/src/cmd/builtin/ |
H A D | what.c | 44 "[m:matched?Only list the names of files that match the identification" 68 int match; member in struct:__anon48 87 if (intro = !state.match) 250 state.match = 1;
|
/ast/src/lib/libast/disc/ |
H A D | sfdcmore.c | 48 int match; /* match length, 0 if none */ member in struct:__anon257 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...] |
H A D | sfkeyprintf.c | 153 regmatch_t match[10]; local 297 if (!regexec(fp->re[x], s, elementsof(match), match, 0) && !regsubexec(fp->re[x], s, elementsof(match), match))
|
/ast/src/lib/libast/include/ |
H A D | ccode.h | 43 const char* match; /* strmatch() pattern */ member in struct:Ccmap_s
|
/ast/src/lib/libpp/ |
H A D | ppexpr.c | 105 * strcmp/match predicate evaluation 109 compare(char* pred, char* args, int match) argument 127 if (!match)
|
/ast/src/cmd/sort/ |
H A D | sfopen.c | 25 * sfopen file suffix match intercept 38 * (literal) \<n> in command expands to the <n>th subexpression in the file path pattern match 68 Match_t* match; member in struct:State_s 172 state.match = initialize(); 180 for (mp = state.match; mp; mp = mp->next) 190 if (mp = state.match)
|
/ast/src/lib/libvcodex/Vcwindow/ |
H A D | vcwindow.h | 61 Vcwmatch_t match; /* space to return the matching window */ member in struct:_vcwindow_s
|
/ast/src/lib/libast/astsa/ |
H A D | strmatch.c | 29 * match shell file patterns -- derived from Bourne and Korn shell gmatch() 168 * match a single pattern 518 * match any pattern in a group 537 * subgroup match 538 * 0 returned if no match 540 * match group begin offsets are even elements of sub 541 * match group end offsets are odd elements of sub 552 Match_t match; local 555 match.last_s = e = s + strlen(s); 558 match [all...] |
/ast/src/lib/libast/misc/ |
H A D | findlib.h | 63 int match; member in struct:__anon278
|
H A D | translate.c | 229 match(const char* cat, const char* msg) function 345 if ((!cmd || !(mp = match(cmd, msg))) && 346 (!cat || !(mp = match(cat, msg))) && 347 (!error_info.catalog || !(mp = match(error_info.catalog, msg))) && 348 (!ast.id || !(mp = match(ast.id, msg))) || 412 sfprintf(sfstderr, "locale %s catalog %s message %d.%d \"%s\" does not match \"%s\"\n", cp->locale, cp->name, mp->set, mp->seq, r, msg);
|
/ast/src/lib/libdss/ |
H A D | cxmap.c | 177 regmatch_t match[10]; local 222 if (!regexec(&edit->re, buf, elementsof(match), match, 0) && !regsubexec(&edit->re, buf, elementsof(match), match)) 275 regmatch_t match[10]; local 284 else if (!regexec(&edit->re, str, elementsof(match), match, 0) && !regsubexec(&edit->re, str, elementsof(match), match)) 340 regmatch_t match[10]; local [all...] |