Searched defs:pat (Results 1 - 4 of 4) sorted by relevance

/system/core/toolbox/grep/
H A Dfastgrep.c58 fgrepcomp(fastgrep_t *fg, const char *pat) argument
63 fg->len = strlen(pat);
68 fg->pattern = (unsigned char *)grep_strdup(pat);
81 fastcomp(fastgrep_t *fg, const char *pat) argument
91 fg->len = strlen(pat);
98 if (fg->len > 0 && pat[fg->len - 1] == '$') {
104 if (pat[0] == '^') {
107 pat++;
111 memcmp(pat, "[[:<:]]", 7) == 0 &&
112 memcmp(pat
281 grep_cmp(const unsigned char *pat, const unsigned char *data, size_t len) argument
[all...]
H A Dgrep.h102 char *pat; member in struct:epat
H A Dgrep.c226 add_pattern(char *pat, size_t len) argument
237 if (len > 0 && pat[len - 1] == '\n')
239 /* pat may not be NUL-terminated */
241 memcpy(pattern[patterns], pat, len);
250 add_fpattern(const char *pat, int mode) argument
259 fpattern[fpatterns].pat = grep_strdup(pat);
268 add_dpattern(const char *pat, int mode) argument
277 dpattern[dpatterns].pat = grep_strdup(pat);
[all...]
/system/core/sh/
H A Dhistedit.c228 char *pat = NULL, *repl; /* ksh "fc old=new" crap */ local
243 (void) &pat;
329 pat = argv[0];
402 const char *s = pat ?
403 fc_replace(he.str, pat, repl) : he.str;

Completed in 5608 milliseconds