Lines Matching refs:pattern
111 int delimiter; /* pattern delimiter */
120 unsigned char* pattern; /* the original pattern */
121 unsigned char* literal; /* literal restart pattern */
128 int terminator; /* pattern terminator */
958 env->pattern = env->cursor + 1;
1012 if (env->type == BRE && (env->cursor == env->pattern || posixkludge == 1))
2056 beg = env->pattern == env->cursor - env->token.len;
2527 env->pattern = env->cursor;
2766 if (env->literal == env->pattern && env->literal == p)
3210 regcomp(regex_t* p, const char* pattern, regflags_t flags)
3231 if (!pattern)
3232 return fatal(disc, REG_BADPAT, pattern);
3242 return fatal(disc, REG_ESPACE, pattern);
3249 return fatal(disc, REG_ESPACE, pattern);
3299 switch (env.delimiter = *pattern++)
3310 env.literal = env.pattern = env.cursor = (unsigned char*)pattern;
3325 return fatal(disc, REG_ESPACE, pattern);
3341 return fatal(disc, REG_ESPACE, pattern);
3374 p->re_npat = env.cursor - env.pattern + 1;
3398 pattern = (const char*)env.literal;
3401 return fatal(disc, env.error, pattern);
3405 * regcomp() on sized pattern
3410 regncomp(regex_t* p, const char* pattern, size_t size, regflags_t flags)
3416 return fatal((flags & REG_DISCIPLINE) ? p->re_disc : &state.disc, REG_ESPACE, pattern);
3417 memcpy(s, pattern, size);