Lines Matching refs:type
118 re_token_type_t type);
304 re_token_type_t type = dfa->nodes[node].type; in re_compile_fastmap_iter() local
306 if (type == CHARACTER) in re_compile_fastmap_iter()
320 && dfa->nodes[node].type == CHARACTER in re_compile_fastmap_iter()
332 else if (type == SIMPLE_BRACKET) in re_compile_fastmap_iter()
345 else if (type == COMPLEX_BRACKET) in re_compile_fastmap_iter()
410 else if (type == OP_PERIOD in re_compile_fastmap_iter()
412 || type == OP_UTF8_PERIOD in re_compile_fastmap_iter()
414 || type == END_OF_RE) in re_compile_fastmap_iter()
417 if (type == END_OF_RE) in re_compile_fastmap_iter()
1019 re_token_type_t type = dfa->nodes[node_idx].type; in create_initial_state() local
1022 if (type != OP_BACK_REF) in create_initial_state()
1028 if (clexp_node->type == OP_CLOSE_SUBEXP in create_initial_state()
1035 if (type == OP_BACK_REF) in create_initial_state()
1091 switch (dfa->nodes[node].type) in optimize_utf8()
1145 if (dfa->nodes[node].type == CHARACTER in optimize_utf8()
1148 else if (dfa->nodes[node].type == OP_PERIOD) in optimize_utf8()
1149 dfa->nodes[node].type = OP_UTF8_PERIOD; in optimize_utf8()
1295 if (node->token.type == OP_BACK_REF && dfa->subexp_map) in optimize_subexps()
1302 else if (node->token.type == SUBEXP in optimize_subexps()
1303 && node->left && node->left->token.type == SUBEXP) in optimize_subexps()
1327 if (node->left && node->left->token.type == SUBEXP) in lower_subexps()
1333 if (node->right && node->right->token.type == SUBEXP) in lower_subexps()
1385 if (node->token.type == CONCAT) in calc_first()
1396 if (node->token.type == ANCHOR) in calc_first()
1406 switch (node->token.type) in calc_next()
1433 switch (node->token.type) in link_nfa_nodes()
1469 if (node->token.type == OP_BACK_REF) in link_nfa_nodes()
1474 DEBUG_ASSERT (!IS_EPSILON_NODE (node->token.type)); in link_nfa_nodes()
1496 if (dfa->nodes[org_node].type == OP_BACK_REF) in duplicate_node_closure()
1723 if (IS_EPSILON_NODE(dfa->nodes[node].type)) in calc_eclosure_iter()
1787 token->type = END_OF_RE; in peek_token()
1800 token->type = CHARACTER; in peek_token()
1810 token->type = BACK_SLASH; in peek_token()
1816 token->type = CHARACTER; in peek_token()
1832 token->type = OP_ALT; in peek_token()
1838 token->type = OP_BACK_REF; in peek_token()
1845 token->type = ANCHOR; in peek_token()
1852 token->type = ANCHOR; in peek_token()
1859 token->type = ANCHOR; in peek_token()
1866 token->type = ANCHOR; in peek_token()
1872 token->type = OP_WORD; in peek_token()
1876 token->type = OP_NOTWORD; in peek_token()
1880 token->type = OP_SPACE; in peek_token()
1884 token->type = OP_NOTSPACE; in peek_token()
1889 token->type = ANCHOR; in peek_token()
1896 token->type = ANCHOR; in peek_token()
1902 token->type = OP_OPEN_SUBEXP; in peek_token()
1906 token->type = OP_CLOSE_SUBEXP; in peek_token()
1910 token->type = OP_DUP_PLUS; in peek_token()
1914 token->type = OP_DUP_QUESTION; in peek_token()
1918 token->type = OP_OPEN_DUP_NUM; in peek_token()
1922 token->type = OP_CLOSE_DUP_NUM; in peek_token()
1930 token->type = CHARACTER; in peek_token()
1945 token->type = OP_ALT; in peek_token()
1949 token->type = OP_ALT; in peek_token()
1952 token->type = OP_DUP_ASTERISK; in peek_token()
1956 token->type = OP_DUP_PLUS; in peek_token()
1960 token->type = OP_DUP_QUESTION; in peek_token()
1964 token->type = OP_OPEN_DUP_NUM; in peek_token()
1968 token->type = OP_CLOSE_DUP_NUM; in peek_token()
1972 token->type = OP_OPEN_SUBEXP; in peek_token()
1976 token->type = OP_CLOSE_SUBEXP; in peek_token()
1979 token->type = OP_OPEN_BRACKET; in peek_token()
1982 token->type = OP_PERIOD; in peek_token()
1992 token->type = ANCHOR; in peek_token()
2003 if (next.type != OP_ALT && next.type != OP_CLOSE_SUBEXP) in peek_token()
2006 token->type = ANCHOR; in peek_token()
2024 token->type = END_OF_RE; in peek_token_bracket()
2034 token->type = CHARACTER; in peek_token_bracket()
2047 token->type = CHARACTER; in peek_token_bracket()
2063 token->type = OP_OPEN_COLL_ELEM; in peek_token_bracket()
2067 token->type = OP_OPEN_EQUIV_CLASS; in peek_token_bracket()
2073 token->type = OP_OPEN_CHAR_CLASS; in peek_token_bracket()
2078 token->type = CHARACTER; in peek_token_bracket()
2088 token->type = OP_CHARSET_RANGE; in peek_token_bracket()
2091 token->type = OP_CLOSE_BRACKET; in peek_token_bracket()
2094 token->type = OP_NON_MATCH_LIST; in peek_token_bracket()
2097 token->type = CHARACTER; in peek_token_bracket()
2161 while (token->type == OP_ALT) in parse_reg_exp()
2164 if (token->type != OP_ALT && token->type != END_OF_RE in parse_reg_exp()
2165 && (nest == 0 || token->type != OP_CLOSE_SUBEXP)) in parse_reg_exp()
2209 while (token->type != OP_ALT && token->type != END_OF_RE in parse_branch()
2210 && (nest == 0 || token->type != OP_CLOSE_SUBEXP)) in parse_branch()
2250 switch (token->type) in parse_expression()
2330 if ((token->type == OP_CLOSE_SUBEXP) in parse_expression()
2341 token->type = CHARACTER; in parse_expression()
2414 token->type == OP_NOTWORD, err); in parse_expression()
2424 token->type == OP_NOTSPACE, err); in parse_expression()
2444 while (token->type == OP_DUP_ASTERISK || token->type == OP_DUP_PLUS in parse_expression()
2445 || token->type == OP_DUP_QUESTION || token->type == OP_OPEN_DUP_NUM) in parse_expression()
2458 && (token->type == OP_DUP_ASTERISK in parse_expression()
2459 || token->type == OP_OPEN_DUP_NUM)) in parse_expression()
2490 if (token->type == OP_CLOSE_SUBEXP) in parse_sub_exp()
2496 && token->type != OP_CLOSE_SUBEXP)) in parse_sub_exp()
2529 if (token->type == OP_OPEN_DUP_NUM) in parse_dup_op()
2535 if (token->type == CHARACTER && token->opr.c == ',') in parse_dup_op()
2546 end = ((token->type == OP_CLOSE_DUP_NUM) ? start in parse_dup_op()
2547 : ((token->type == CHARACTER && token->opr.c == ',') in parse_dup_op()
2555 if (token->type == END_OF_RE) in parse_dup_op()
2566 token->type = CHARACTER; in parse_dup_op()
2573 || token->type != OP_CLOSE_DUP_NUM)) in parse_dup_op()
2588 start = (token->type == OP_DUP_PLUS) ? 1 : 0; in parse_dup_op()
2589 end = (token->type == OP_DUP_QUESTION) ? 1 : -1; in parse_dup_op()
2626 if (elem->token.type == SUBEXP) in parse_dup_op()
2704 if (__glibc_unlikely (start_elem->type == EQUIV_CLASS in build_range_exp()
2705 || start_elem->type == CHAR_CLASS in build_range_exp()
2706 || end_elem->type == EQUIV_CLASS in build_range_exp()
2707 || end_elem->type == CHAR_CLASS)) in build_range_exp()
2712 if (__glibc_unlikely ((start_elem->type == COLL_SYM in build_range_exp()
2714 || (end_elem->type == COLL_SYM in build_range_exp()
2724 start_ch = ((start_elem->type == SB_CHAR) ? start_elem->opr.ch in build_range_exp()
2725 : ((start_elem->type == COLL_SYM) ? start_elem->opr.name[0] in build_range_exp()
2727 end_ch = ((end_elem->type == SB_CHAR) ? end_elem->opr.ch in build_range_exp()
2728 : ((end_elem->type == COLL_SYM) ? end_elem->opr.name[0] in build_range_exp()
2730 start_wc = ((start_elem->type == SB_CHAR || start_elem->type == COLL_SYM) in build_range_exp()
2732 end_wc = ((end_elem->type == SB_CHAR || end_elem->type == COLL_SYM) in build_range_exp()
2790 start_ch = ((start_elem->type == SB_CHAR ) ? start_elem->opr.ch in build_range_exp()
2791 : ((start_elem->type == COLL_SYM) ? start_elem->opr.name[0] in build_range_exp()
2793 end_ch = ((end_elem->type == SB_CHAR ) ? end_elem->opr.ch in build_range_exp()
2794 : ((end_elem->type == COLL_SYM) ? end_elem->opr.name[0] in build_range_exp()
2876 if (br_elem->type == SB_CHAR) in lookup_collation_sequence_value()
2887 else if (br_elem->type == MB_CHAR) in lookup_collation_sequence_value()
2892 else if (br_elem->type == COLL_SYM) in lookup_collation_sequence_value()
2955 if (__glibc_unlikely (start_elem->type == EQUIV_CLASS in build_range_exp()
2956 || start_elem->type == CHAR_CLASS in build_range_exp()
2957 || end_elem->type == EQUIV_CLASS in build_range_exp()
2958 || end_elem->type == CHAR_CLASS)) in build_range_exp()
3154 if (__glibc_unlikely (token->type == END_OF_RE)) in parse_bracket_exp()
3159 if (token->type == OP_NON_MATCH_LIST) in parse_bracket_exp()
3169 if (__glibc_unlikely (token->type == END_OF_RE)) in parse_bracket_exp()
3177 if (token->type == OP_CLOSE_BRACKET) in parse_bracket_exp()
3178 token->type = CHARACTER; in parse_bracket_exp()
3191 start_elem.type = COLL_SYM; in parse_bracket_exp()
3205 if (start_elem.type != CHAR_CLASS && start_elem.type != EQUIV_CLASS) in parse_bracket_exp()
3207 if (__glibc_unlikely (token->type == END_OF_RE)) in parse_bracket_exp()
3212 if (token->type == OP_CHARSET_RANGE) in parse_bracket_exp()
3216 if (__glibc_unlikely (token2.type == END_OF_RE)) in parse_bracket_exp()
3221 if (token2.type == OP_CLOSE_BRACKET) in parse_bracket_exp()
3225 token->type = CHARACTER; in parse_bracket_exp()
3235 end_elem.type = COLL_SYM; in parse_bracket_exp()
3265 switch (start_elem.type) in parse_bracket_exp()
3323 if (__glibc_unlikely (token->type == END_OF_RE)) in parse_bracket_exp()
3328 if (token->type == OP_CLOSE_BRACKET) in parse_bracket_exp()
3351 br_token.type = COMPLEX_BRACKET; in parse_bracket_exp()
3364 br_token.type = SIMPLE_BRACKET; in parse_bracket_exp()
3388 br_token.type = SIMPLE_BRACKET; in parse_bracket_exp()
3418 elem->type = MB_CHAR; in parse_bracket_element()
3425 if (token->type == OP_OPEN_COLL_ELEM || token->type == OP_OPEN_CHAR_CLASS in parse_bracket_element()
3426 || token->type == OP_OPEN_EQUIV_CLASS) in parse_bracket_element()
3428 if (__glibc_unlikely (token->type == OP_CHARSET_RANGE) && !accept_hyphen) in parse_bracket_element()
3434 if (token2.type != OP_CLOSE_BRACKET) in parse_bracket_element()
3439 elem->type = SB_CHAR; in parse_bracket_element()
3460 if (token->type == OP_OPEN_CHAR_CLASS) in parse_bracket_symbol()
3472 switch (token->type) in parse_bracket_symbol()
3475 elem->type = COLL_SYM; in parse_bracket_symbol()
3478 elem->type = EQUIV_CLASS; in parse_bracket_symbol()
3481 elem->type = CHAR_CLASS; in parse_bracket_symbol()
3725 re_token_t br_token = { .type = SIMPLE_BRACKET, .opr.sbcset = sbcset }; in build_charclass_op()
3735 br_token.type = COMPLEX_BRACKET; in build_charclass_op()
3779 if (__glibc_unlikely (token->type == END_OF_RE)) in fetch_number()
3781 if (token->type == OP_CLOSE_DUP_NUM || c == ',') in fetch_number()
3783 num = ((token->type != CHARACTER || c < '0' || '9' < c || num == -2) in fetch_number()
3814 re_token_type_t type) in create_tree() argument
3816 re_token_t t = { .type = type }; in create_tree()
3861 if (node->token.type == SUBEXP && node->token.opr.idx == idx) in mark_opt_subexp()
3873 if (node->type == COMPLEX_BRACKET && node->duplicated == 0) in free_token()
3877 if (node->type == SIMPLE_BRACKET && node->duplicated == 0) in free_token()