Searched refs:pattern (Results 1 - 11 of 11) sorted by relevance

/system/core/toolbox/grep/
H A Dfastgrep.c68 fg->pattern = (unsigned char *)grep_strdup(pat);
70 /* Preprocess pattern. */
74 fg->qsBc[fg->pattern[i]] = fg->len - i;
124 fg->pattern = grep_malloc(fg->len + 1);
125 memcpy(fg->pattern, pat, fg->len);
126 fg->pattern[fg->len] = '\0';
131 if (fg->pattern[i] == '.') {
138 /* Closest dot to the end of the pattern. */
145 free(fg->pattern);
146 fg->pattern
[all...]
H A Dgrep.c72 /* 5*/ "\t[-e pattern] [-f file] [--binary-files=value] [--color=when]\n",
74 /* 7*/ "\t[pattern] [file ...]\n",
85 char **pattern; variable
114 bool wflag; /* -w: pattern must start and end on word boundaries */
115 bool xflag; /* -x: pattern must match entire line */
223 * Adds a searching pattern to the internal array.
234 pattern = grep_realloc(pattern, ++pattern_sz *
235 sizeof(*pattern));
240 pattern[pattern
[all...]
H A Dgrep.h108 unsigned char *pattern; member in struct:__anon481
134 extern char **pattern;
H A Dutil.c279 * Processes a line comparing it with the specified patterns. Each pattern
305 if (fg_pattern[i].pattern) {
/system/core/sh/
H A Dnodes.h89 union node *pattern; member in struct:nclist
H A Dexpand.c716 * Terminate the string and start recording the pattern
1327 * Returns true if the pattern matches the string.
1331 patmatch(char *pattern, char *string, int squoted) argument
1334 if (pattern[0] == '!' && pattern[1] == '!')
1335 return 1 - pmatch(pattern + 2, string);
1338 return pmatch(pattern, string, squoted);
1343 pmatch(char *pattern, char *string, int squoted) argument
1348 p = pattern;
1491 * See if a pattern matche
1495 casematch(union node *pattern, char *val) argument
[all...]
H A Dnodes.c161 calcsize(n->nclist.pattern);
259 new->nclist.pattern = copynode(n->nclist.pattern);
H A Deval.c402 for (patp = cp->nclist.pattern ; patp ; patp = patp->narg.next) {
H A Djobs.c1322 cmdtxt(np->nclist.pattern);
H A Dparser.c426 app = &cp->nclist.pattern;
/system/core/libpixelflinger/codeflinger/
H A Ddisassem.c110 u_int pattern; member in struct:arm32_insn
321 if ((insn & i_ptr->mask) == i_ptr->pattern) {

Completed in 715 milliseconds