• Home
  • Raw
  • Download

Lines Matching refs:dfa

26 					const re_dfa_t *dfa) internal_function;
27 static re_dfastate_t *create_ci_newstate (const re_dfa_t *dfa,
30 static re_dfastate_t *create_cd_newstate (const re_dfa_t *dfa,
43 RE_TRANSLATE_TYPE trans, bool icase, const re_dfa_t *dfa) in re_string_allocate() argument
49 if (init_len < dfa->mb_cur_max) in re_string_allocate()
50 init_len = dfa->mb_cur_max; in re_string_allocate()
52 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_allocate()
58 pstr->word_char = dfa->word_char; in re_string_allocate()
59 pstr->word_ops_used = dfa->word_ops_used; in re_string_allocate()
61 pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len; in re_string_allocate()
71 RE_TRANSLATE_TYPE trans, bool icase, const re_dfa_t *dfa) in re_string_construct() argument
75 re_string_construct_common (str, len, pstr, trans, icase, dfa); in re_string_construct()
88 if (dfa->mb_cur_max > 1) in re_string_construct()
97 if (pstr->bufs_len > pstr->valid_len + dfa->mb_cur_max) in re_string_construct()
111 if (dfa->mb_cur_max > 1) in re_string_construct()
175 const re_dfa_t *dfa) in re_string_construct_common() argument
183 pstr->mb_cur_max = dfa->mb_cur_max; in re_string_construct_common()
184 pstr->is_utf8 = dfa->is_utf8; in re_string_construct_common()
185 pstr->map_notascii = dfa->map_notascii; in re_string_construct_common()
1408 re_dfa_add_node (re_dfa_t *dfa, re_token_t token) in re_dfa_add_node() argument
1410 if (BE (dfa->nodes_len >= dfa->nodes_alloc, 0)) in re_dfa_add_node()
1412 size_t new_nodes_alloc = dfa->nodes_alloc * 2; in re_dfa_add_node()
1422 if (BE (SIZE_MAX / 2 / max_object_size < dfa->nodes_alloc, 0)) in re_dfa_add_node()
1425 new_nodes = re_realloc (dfa->nodes, re_token_t, new_nodes_alloc); in re_dfa_add_node()
1428 dfa->nodes = new_nodes; in re_dfa_add_node()
1429 new_nexts = re_realloc (dfa->nexts, Idx, new_nodes_alloc); in re_dfa_add_node()
1430 new_indices = re_realloc (dfa->org_indices, Idx, new_nodes_alloc); in re_dfa_add_node()
1431 new_edests = re_realloc (dfa->edests, re_node_set, new_nodes_alloc); in re_dfa_add_node()
1432 new_eclosures = re_realloc (dfa->eclosures, re_node_set, new_nodes_alloc); in re_dfa_add_node()
1436 dfa->nexts = new_nexts; in re_dfa_add_node()
1437 dfa->org_indices = new_indices; in re_dfa_add_node()
1438 dfa->edests = new_edests; in re_dfa_add_node()
1439 dfa->eclosures = new_eclosures; in re_dfa_add_node()
1440 dfa->nodes_alloc = new_nodes_alloc; in re_dfa_add_node()
1442 dfa->nodes[dfa->nodes_len] = token; in re_dfa_add_node()
1443 dfa->nodes[dfa->nodes_len].constraint = 0; in re_dfa_add_node()
1447 dfa->nodes[dfa->nodes_len].accept_mb = in re_dfa_add_node()
1448 (type == OP_PERIOD && dfa->mb_cur_max > 1) || type == COMPLEX_BRACKET; in re_dfa_add_node()
1451 dfa->nexts[dfa->nodes_len] = REG_MISSING; in re_dfa_add_node()
1452 re_node_set_init_empty (dfa->edests + dfa->nodes_len); in re_dfa_add_node()
1453 re_node_set_init_empty (dfa->eclosures + dfa->nodes_len); in re_dfa_add_node()
1454 return dfa->nodes_len++; in re_dfa_add_node()
1479 re_acquire_state (reg_errcode_t *err, const re_dfa_t *dfa, in re_acquire_state() argument
1496 spot = dfa->state_table + (hash & dfa->state_hash_mask); in re_acquire_state()
1508 new_state = create_ci_newstate (dfa, nodes, hash); in re_acquire_state()
1527 re_acquire_state_context (reg_errcode_t *err, const re_dfa_t *dfa, in re_acquire_state_context() argument
1544 spot = dfa->state_table + (hash & dfa->state_hash_mask); in re_acquire_state_context()
1555 new_state = create_cd_newstate (dfa, nodes, context, hash); in re_acquire_state_context()
1567 register_state (const re_dfa_t *dfa, re_dfastate_t *newstate, in register_state() argument
1581 if (!IS_EPSILON_NODE (dfa->nodes[elem].type)) in register_state()
1586 spot = dfa->state_table + (hash & dfa->state_hash_mask); in register_state()
1622 create_ci_newstate (const re_dfa_t *dfa, const re_node_set *nodes, in create_ci_newstate() argument
1642 re_token_t *node = dfa->nodes + nodes->elems[i]; in create_ci_newstate()
1658 err = register_state (dfa, newstate, hash); in create_ci_newstate()
1672 create_cd_newstate (const re_dfa_t *dfa, const re_node_set *nodes, in create_cd_newstate() argument
1694 re_token_t *node = dfa->nodes + nodes->elems[i]; in create_cd_newstate()
1732 err = register_state (dfa, newstate, hash); in create_cd_newstate()