/ast/src/lib/libast/regex/ |
H A D | regfatal.c | 33 regfatalpat(regex_t* p, int level, int code, const char* pat) argument 39 if (pat) 40 error(level, "regular expression: %s: %s", pat, buf);
|
/ast/src/cmd/tests/ |
H A D | base64.c | 38 unsigned char pat[16]; local 109 for (r = 0; r <= sizeof(pat); r++) 112 memset(tst, '*', sizeof(pat)); 113 tst[sizeof(pat)-1] = 0; 122 memset(pat, '*', sizeof(pat)); 123 pat[sizeof(pat)-1] = 0; 124 memcpy(pat, de, r >= sizeof(de) ? sizeof(de) : r); 125 if (memcmp(tst, pat, sizeo [all...] |
H A D | date.c | 104 report(char* comment, char* str, char* pat, char* rem, int flags) argument 111 if (pat) 114 normal(pat); 147 bad(char* comment, char* str, char* pat) argument 150 report(comment, str, pat, NiL, 0);
|
/ast/src/cmd/tw/ |
H A D | locate.sh | 91 *) pat=$1 97 pat="$pat|$1" 99 set -- "$pat"
|
H A D | expr.c | 669 * match str against pat 673 matchval(Expr_t* pgm, Exnode_t* xstr, const char* str, Exnode_t* xpat, const char* pat, void* env, Exdisc_t* disc) argument 675 return strgrpmatch(str, pat, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|((Ftw_t*)env)->ignorecase);
|
/ast/src/lib/libast/misc/ |
H A D | glob.c | 228 addmatch(register glob_t* gp, const char* dir, const char* pat, register const char* rescan, char* endslash, int meta) argument 242 stakputs(pat); 294 register char* pat; local 327 pat = rescan = ap->gl_begin; 391 pat = rescan; 402 if (pat == prefix) 415 if (pat == prefix + 1) 420 trim(ap->gl_begin, pat, &t1, rescan, &t2); 421 pat -= t1; 425 *(restore1 = pat 576 register char* pat; local [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | expand.c | 276 char *pat, *rescan; local 292 pat = cp; 306 if(isdigit(*pat) || *pat=='+' || *pat=='-') 308 first = strtol(pat,&endc,0); 352 else if((cp[2]=='}' || cp[2]=='.' && cp[3]=='.') && ((*pat>='a' && *pat<='z' && cp[1]>='a' && cp[1]<='z') || (*pat>='A' && *pat< [all...] |
/ast/src/lib/libpz/ |
H A D | pzinflate.c | 29 restore(register Pz_t* pz, Pzpart_t* pp, register Sfio_t* ip, Sfio_t* op, register unsigned char* pat, register unsigned char* buf, size_t row, size_t m, register size_t* map, register unsigned char** mix, register size_t* inc) argument 41 memcpy(buf, pat, row); 62 pat[z - 1] = *pz->nxt++; 82 register unsigned char* pat; local 101 if (!(pat = (unsigned char*)sfreserve(pz->io, n, 0))) 111 } while ((r = (*writef)(pz, op, pat, pz->disc)) >= 0); 159 pat = pz->pat; 201 if (m < pp->row || sfread(pz->io, pat, pp->row) != pp->row) 219 if (restore(pz, pp, pz->io, op, pat, p [all...] |
H A D | pzdeflate.c | 38 register unsigned char* pat; local 115 pat = pz->pat; 144 else if ((r = readf ? (*readf)(pz, pz->io, pat, pz->disc) : sfread(pz->io, pat, pp->row)) != pp->row) 146 incomplete = pat; 153 if ((*indexf)(pz, &index, pat, pz->disc) < 0) 162 memcpy(elt->buf, pat, pp->row); 177 memcpy(pat, elt->buf, pp->row); 187 pat[p [all...] |
H A D | pzwrite.c | 38 register unsigned char* pat; local 153 pat = pz->pat; 165 memcpy(pat, bp, pp->row); 168 pat[pp->fix[i]] = pp->value[pp->fix[i]]; 170 memcpy(pz->ws.vp, pat, pp->row); 174 *pz->ws.bp++ = pat[pp->map[j]]; 190 if (pat[j] != bp[j] && low[j]) 196 *pz->ws.vp++ = pat[j] = bp[j]; 199 if (pat[ [all...] |
H A D | pzread.c | 191 if (m < pp->row || sfread(pz->io, pz->pat, pp->row) != pp->row) 212 memcpy(ob, pz->pat, pp->row); 233 pz->pat[m - 1] = *pz->nxt++;
|
H A D | pzip.h | 229 unsigned char* pat; /* row buffer */ member in struct:Pz_s
|
/ast/src/lib/libdll/ |
H A D | dllscan.c | 51 char pat[64]; \ 96 char pat[256]; local 137 if (pn >= sizeof(pat)) 138 pn = sizeof(pat) - 1; 139 memcpy(pat, p, pn); 140 pat[pn] = 0; 141 if (strmatch(h, pat)) 335 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix); 338 sfsprintf(scan->pat, sizeo [all...] |
/ast/src/cmd/re/ |
H A D | testglob.c | 325 report(char* comment, char* pat, char* msg, int flags, int unspecified) argument 342 if (pat) 343 quote(pat); 362 bad(char* comment, char* pat) argument 365 report(comment, pat, NiL, 0, 0); 508 char* pat; local 909 if (pat = field[1]) 910 escape(pat); 947 quote(pat); 976 ret = glob(pat, flag [all...] |
H A D | testregex.c | 1258 static char pat[32 * 1024]; local 1406 if (regerror(REG_VERSIONID, NiL, pat, sizeof(pat)) > 0) 1407 s = pat; 1812 strcpy(ppat = pat, re);
|
/ast/src/cmd/dsslib/ip_t/ |
H A D | ip_t.c | 309 char pat[1]; member in struct:Path_match_s 313 aspath_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument 317 if (!cxisstring(pat)) 329 strcpy(pm->pat, val->string.data); 345 if (!(ire = irecomp(pm->pat, 4, 0, 1, 1, &iredisc))) 354 if (!(ire = irecomp(pm->pat, 2, 0, 1, 1, &iredisc))) 387 cluster_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument 389 if (!cxisstring(pat)) 417 community_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument 419 if (!cxisstring(pat)) 447 extended_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument 477 labels_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument 836 char pat[1]; member in struct:Prefix_match_s 840 prefix_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument [all...] |
/ast/src/cmd/3d/ |
H A D | strmatch.c | 585 char pat[2 * UCHAR_MAX]; local 588 if (p - range > sizeof(pat) - 2) 590 memcpy(pat, range, p - range); 591 pat[p - range] = '*'; 592 pat[p - range + 1] = 0; 593 if (fnmatch(pat, olds, 0)) 595 pat[p - range] = 0; 601 if (!fnmatch(pat, str, 0))
|
/ast/src/lib/libtk/library/demos/ |
H A D | ixset | 159 .screen.val.rb.pat [expr "{$screenbla}!={blank} ? {select} : {deselect}"] 262 radiobutton .screen.val.rb.pat \ 265 pack .screen.val.rb.blank .screen.val.rb.pat -side top -pady 2 -anchor w
|
/ast/src/cmd/ksh93/ |
H A D | Makefile | 18 SHOPT_2DMATCH == 1 /* two dimensional .sh.match for ${var//pat/str} */
|
/ast/src/cmd/ksh93/tests/ |
H A D | comvario.sh | 571 typeset pat 606 for pat in "${tv.stdoutpattern[@]}" ; do 607 [[ "${out.stdout}" == ${pat} ]] || err_exit "${tv.testname}: Expected stdout of $(printf '%q\n' "${tv.cmd}") to match $(printf '%q\n' "${pat}"), got $(printf '%q\n' "${out.stdout}")"
|
/ast/src/cmd/nmake/ |
H A D | expand.c | 206 * $(s:G=<pat>) select components that build (generate) <pat> files 210 * $(s:L[=<pat>) list all (viewed) files matching <pat> 211 * $(s:M[!]=<pat>) select components [not] matching RE pattern <pat> 212 * $(s:N[!]=<pat>) select components [not] matching shell pattern <pat> 716 * generate list of hash table names matching pat 720 listtab(Sfio_t* xp, Hash_table_t* tab, char* pat, in argument 777 list(Sfio_t* xp, register char* s, char* pat, int flags) argument 3035 generate(Sfio_t* xp, char* name, char* pat, int sep) argument [all...] |
/ast/src/cmd/ksh93/bltins/ |
H A D | test.c | 85 static int test_strmatch(Shell_t *shp,const char *str, const char *pat) argument 89 register const char *cp=pat; 103 n = strgrpmatch(str, pat, match, m, STR_GROUP|STR_MAXIMAL|STR_LEFT|STR_RIGHT);
|
/ast/src/lib/libtk/generic/ |
H A D | tkBind.c | 2797 Pattern pat; 2814 count = ParseEventDescription(interp, &p, &pat, &eventMask); 2833 event.E.xany.type = pat.eventType; 2841 event.E.xkey.state = pat.needMods; 2850 if (pat.detail.keySym == NoSymbol) { 2854 pat.detail.keySym); 2859 event.E.xkey.keycode, state) == pat.detail.keySym) { 2872 event.E.xbutton.button = pat.detail.button; 2874 event.V.name = pat.detail.name; 2775 Pattern pat; local
|
/ast/lib/package/ |
H A D | package.mk | 246 package.src.pat = $(PACKAGESRC)/($(name).(ini|pkg)) 247 package.src = $(package.src.pat:P=G) $(.package.licenses. --save $(name)) 567 package.src.pat := $(package.src.pat)
|
/ast/src/cmd/INIT/ |
H A D | package.mk | 246 package.src.pat = $(PACKAGESRC)/($(name).(ini|pkg)) 247 package.src = $(package.src.pat:P=G) $(.package.licenses. --save $(name)) 567 package.src.pat := $(package.src.pat)
|