Lines Matching refs:syntax

23 					  size_t length, reg_syntax_t syntax);
58 reg_syntax_t syntax);
60 reg_syntax_t syntax) internal_function;
62 reg_syntax_t syntax, reg_errcode_t *err);
64 re_token_t *token, reg_syntax_t syntax,
67 re_token_t *token, reg_syntax_t syntax,
70 re_token_t *token, reg_syntax_t syntax,
73 re_token_t *token, reg_syntax_t syntax,
77 reg_syntax_t syntax, reg_errcode_t *err);
79 re_token_t *token, reg_syntax_t syntax,
85 reg_syntax_t syntax,
100 reg_syntax_t syntax);
107 reg_syntax_t syntax);
248 /* Set by `re_set_syntax' to the current regexp syntax to recognize. Can
250 syntax, so it can be changed between regex compilations. */
256 /* Specify the precise syntax of regexps for compilation. This provides
261 defined in regex.h. We return the old syntax. */
264 re_set_syntax (syntax)
265 reg_syntax_t syntax;
269 re_syntax_options = syntax;
316 bool icase = (dfa->mb_cur_max == 1 && (bufp->syntax & RE_ICASE));
326 if ((bufp->syntax & RE_ICASE) && dfa->mb_cur_max > 1)
416 if ((bufp->syntax & RE_ICASE) && dfa->mb_cur_max > 1)
449 `syntax' to RE_SYNTAX_POSIX_EXTENDED if the
461 If REG_EXTENDED is set, we use POSIX extended syntax; otherwise, we
462 use POSIX basic syntax.
484 reg_syntax_t syntax = ((cflags & REG_EXTENDED) ? RE_SYNTAX_POSIX_EXTENDED
496 syntax |= (cflags & REG_ICASE) ? RE_ICASE : 0;
501 syntax &= ~RE_DOT_NEWLINE;
502 syntax |= RE_HAT_LISTS_NOT_NEWLINE;
511 ret = re_compile_internal (preg, pattern, strlen (pattern), syntax);
754 SYNTAX indicate regular expression's syntax. */
758 reg_syntax_t syntax)
766 preg->syntax = syntax;
806 (syntax & RE_ICASE) != 0, dfa);
820 dfa->str_tree = parse (&regexp, preg, syntax, &err);
831 if (dfa->is_utf8 && !(syntax & RE_ICASE) && preg->translate == NULL)
1771 fetch_token (re_token_t *result, re_string_t *input, reg_syntax_t syntax)
1773 re_string_skip_bytes (input, peek_token (result, input, syntax));
1781 peek_token (re_token_t *token, re_string_t *input, reg_syntax_t syntax)
1831 if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_NO_BK_VBAR))
1836 if (!(syntax & RE_NO_BK_REFS))
1843 if (!(syntax & RE_NO_GNU_OPS))
1850 if (!(syntax & RE_NO_GNU_OPS))
1857 if (!(syntax & RE_NO_GNU_OPS))
1864 if (!(syntax & RE_NO_GNU_OPS))
1871 if (!(syntax & RE_NO_GNU_OPS))
1875 if (!(syntax & RE_NO_GNU_OPS))
1879 if (!(syntax & RE_NO_GNU_OPS))
1883 if (!(syntax & RE_NO_GNU_OPS))
1887 if (!(syntax & RE_NO_GNU_OPS))
1894 if (!(syntax & RE_NO_GNU_OPS))
1901 if (!(syntax & RE_NO_BK_PARENS))
1905 if (!(syntax & RE_NO_BK_PARENS))
1909 if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM))
1913 if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM))
1917 if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES)))
1921 if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES)))
1944 if (syntax & RE_NEWLINE_ALT)
1948 if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_NO_BK_VBAR))
1955 if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM))
1959 if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM))
1963 if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
1967 if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
1971 if (syntax & RE_NO_BK_PARENS)
1975 if (syntax & RE_NO_BK_PARENS)
1985 if (!(syntax & (RE_CONTEXT_INDEP_ANCHORS | RE_CARET_ANCHORS_HERE)) &&
1989 if (!(syntax & RE_NEWLINE_ALT) || prev != '\n')
1996 if (!(syntax & RE_CONTEXT_INDEP_ANCHORS) &&
2001 peek_token (&next, input, syntax);
2020 peek_token_bracket (re_token_t *token, re_string_t *input, reg_syntax_t syntax)
2040 if (c == '\\' && (syntax & RE_BACKSLASH_ESCAPE_IN_LISTS)
2070 if (syntax & RE_CHAR_CLASSES)
2117 parse (re_string_t *regexp, regex_t *preg, reg_syntax_t syntax,
2123 dfa->syntax = syntax;
2124 fetch_token (&current_token, regexp, syntax | RE_CARET_ANCHORS_HERE);
2125 tree = parse_reg_exp (regexp, preg, &current_token, syntax, 0, err);
2152 reg_syntax_t syntax, Idx nest, reg_errcode_t *err)
2156 tree = parse_branch (regexp, preg, token, syntax, nest, err);
2162 fetch_token (token, regexp, syntax | RE_CARET_ANCHORS_HERE);
2166 branch = parse_branch (regexp, preg, token, syntax, nest, err);
2193 reg_syntax_t syntax, Idx nest, reg_errcode_t *err)
2197 tree = parse_expression (regexp, preg, token, syntax, nest, err);
2204 expr = parse_expression (regexp, preg, token, syntax, nest, err);
2233 reg_syntax_t syntax, Idx nest, reg_errcode_t *err)
2253 fetch_token (token, regexp, syntax);
2266 tree = parse_sub_exp (regexp, preg, token, syntax, nest + 1, err);
2271 tree = parse_bracket_exp (regexp, dfa, token, syntax, err);
2292 if (syntax & RE_CONTEXT_INVALID_DUP)
2301 if (syntax & RE_CONTEXT_INVALID_OPS)
2306 else if (syntax & RE_CONTEXT_INDEP_OPS)
2308 fetch_token (token, regexp, syntax);
2309 return parse_expression (regexp, preg, token, syntax, nest, err);
2314 !(syntax & RE_UNMATCHED_RIGHT_PAREN_ORD))
2376 fetch_token (token, regexp, syntax);
2419 fetch_token (token, regexp, syntax);
2424 tree = parse_dup_op (tree, regexp, dfa, token, syntax, err);
2428 if ((syntax & RE_CONTEXT_INVALID_DUP)
2449 reg_syntax_t syntax, Idx nest, reg_errcode_t *err)
2456 fetch_token (token, regexp, syntax | RE_CARET_ANCHORS_HERE);
2463 tree = parse_reg_exp (regexp, preg, token, syntax, nest, err);
2487 re_token_t *token, reg_syntax_t syntax, reg_errcode_t *err)
2496 start = fetch_number (regexp, token, syntax);
2512 ? fetch_number (regexp, token, syntax) : REG_ERROR));
2517 if (BE (!(syntax & RE_INVALID_INTERVAL_ORD), 0))
2527 /* If the syntax bit is set, rollback. */
2550 fetch_token (token, regexp, syntax);
2635 build_range_exp (const reg_syntax_t syntax,
2642 build_range_exp (const reg_syntax_t syntax,
2685 if (BE ((syntax & RE_NO_EMPTY_RANGES)
2785 reg_syntax_t syntax, reg_errcode_t *err)
2930 if (BE ((syntax & RE_NO_EMPTY_RANGES) && start_collseq > end_collseq, 0))
3099 token_len = peek_token_bracket (token, regexp, syntax);
3111 if (syntax & RE_HAT_LISTS_NOT_NEWLINE)
3114 token_len = peek_token_bracket (token, regexp, syntax);
3138 syntax, first_round);
3147 token_len = peek_token_bracket (token, regexp, syntax);
3160 token_len2 = peek_token_bracket (&token2, regexp, syntax);
3181 dfa, syntax, true);
3188 token_len = peek_token_bracket (token, regexp, syntax);
3195 *err = build_range_exp (syntax, sbcset,
3199 *err = build_range_exp (syntax, sbcset, &start_elem, &end_elem);
3254 start_elem.opr.name, syntax);
3353 reg_syntax_t syntax, bool accept_hyphen)
3375 (void) peek_token_bracket (&token2, regexp, syntax);
3537 const unsigned char *class_name, reg_syntax_t syntax)
3540 const unsigned char *class_name, reg_syntax_t syntax)
3548 if ((syntax & RE_ICASE)
3659 /* We don't care the syntax in this case. */
3736 fetch_number (re_string_t *input, re_token_t *token, reg_syntax_t syntax)
3742 fetch_token (token, input, syntax);