Home | History | Annotate | Download | only in lib

Lines Matching refs:pattern

23 static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
211 compiles PATTERN (of length LENGTH) and puts the result in BUFP.
212 Returns 0 if the pattern was valid, otherwise an error string.
219 re_compile_pattern (pattern, length, bufp)
220 const char *pattern;
225 re_compile_pattern (const char *pattern, size_t length,
239 ret = re_compile_internal (bufp, pattern, length, re_syntax_options);
250 also be assigned to arbitrarily: each pattern buffer stores its own
448 `buffer' to the compiled pattern;
449 `used' to the length of the compiled pattern;
456 `re_nsub' to the number of subexpressions in PATTERN.
458 PATTERNpattern string.
479 regcomp (preg, pattern, cflags)
481 const char *_Restrict_ pattern;
512 ret = re_compile_internal (preg, pattern, strlen (pattern), syntax);
521 /* Compute the fastmap now, since regexec cannot modify the pattern
688 /* BSD has one and only one pattern buffer. */
729 don't need to initialize the pattern buffer fields which affect it. */
754 Compile the regular expression PATTERN, whose length is LENGTH.
758 re_compile_internal (regex_t *preg, const char * pattern, size_t length,
765 /* Initialize the pattern buffer. */
801 strncpy (dfa->re_str, pattern, length + 1);
806 err = re_string_construct (&regexp, pattern, length, preg->translate,