Lines Matching refs:Idx
23 static void re_string_construct_common (const char *str, Idx len,
42 re_string_allocate (re_string_t *pstr, const char *str, Idx len, Idx init_len, in re_string_allocate()
46 Idx init_buf_len; in re_string_allocate()
70 re_string_construct (re_string_t *pstr, const char *str, Idx len, in re_string_construct()
133 re_string_realloc_buffers (re_string_t *pstr, Idx new_buf_len) in re_string_realloc_buffers()
141 size_t max_object_size = MAX (sizeof (wint_t), sizeof (Idx)); in re_string_realloc_buffers()
151 Idx *new_offsets = re_realloc (pstr->offsets, Idx, new_buf_len); in re_string_realloc_buffers()
173 re_string_construct_common (const char *str, Idx len, re_string_t *pstr, in re_string_construct_common()
214 Idx byte_idx, end_idx, remain_len; in build_wcs_buffer()
276 Idx src_idx, byte_idx, end_idx, remain_len; in build_wcs_upper_buffer()
405 pstr->offsets = re_malloc (Idx, pstr->bufs_len); in build_wcs_upper_buffer()
487 static Idx
489 re_string_skip_chars (re_string_t *pstr, Idx new_raw_idx, wint_t *last_wc) in re_string_skip_chars()
492 Idx rawbuf_idx; in re_string_skip_chars()
501 Idx remain_len; in re_string_skip_chars()
533 Idx char_idx, end_idx; in build_upper_buffer()
556 Idx buf_idx, end_idx; in re_string_translate_buffer()
575 re_string_reconstruct (re_string_t *pstr, Idx idx, int eflags) in re_string_reconstruct()
577 Idx offset; in re_string_reconstruct()
610 Idx low = 0, high = pstr->valid_len, mid; in re_string_reconstruct()
694 Idx prev_valid_len = pstr->valid_len; in re_string_reconstruct()
707 Idx wcs_idx; in re_string_reconstruct()
737 Idx mlen = raw + pstr->len - p; in re_string_reconstruct()
836 re_string_peek_byte_case (const re_string_t *pstr, Idx idx) in internal_function()
839 Idx off; in internal_function()
881 Idx off; in internal_function()
925 re_string_context_at (const re_string_t *input, Idx idx, int eflags) in re_string_context_at()
939 Idx wc_idx = idx; in re_string_context_at()
970 re_node_set_alloc (re_node_set *set, Idx size) in re_node_set_alloc()
974 set->elems = re_malloc (Idx, size); in re_node_set_alloc()
982 re_node_set_init_1 (re_node_set *set, Idx elem) in re_node_set_init_1()
986 set->elems = re_malloc (Idx, 1); in re_node_set_init_1()
998 re_node_set_init_2 (re_node_set *set, Idx elem1, Idx elem2) in re_node_set_init_2()
1001 set->elems = re_malloc (Idx, 2); in re_node_set_init_2()
1034 dest->elems = re_malloc (Idx, dest->alloc); in re_node_set_init_copy()
1040 memcpy (dest->elems, src->elems, src->nelem * sizeof (Idx)); in re_node_set_init_copy()
1056 Idx i1, i2, is, id, delta, sbase; in re_node_set_add_intersect()
1064 Idx new_alloc = src1->nelem + src2->nelem + dest->alloc; in re_node_set_add_intersect()
1065 Idx *new_elems = re_realloc (dest->elems, Idx, new_alloc); in re_node_set_add_intersect()
1134 memcpy (dest->elems, dest->elems + sbase, delta * sizeof (Idx)); in re_node_set_add_intersect()
1147 Idx i1, i2, id; in re_node_set_init_union()
1151 dest->elems = re_malloc (Idx, dest->alloc); in re_node_set_init_union()
1179 (src1->nelem - i1) * sizeof (Idx)); in re_node_set_init_union()
1185 (src2->nelem - i2) * sizeof (Idx)); in re_node_set_init_union()
1199 Idx is, id, sbase, delta; in re_node_set_merge()
1204 Idx new_alloc = 2 * (src->nelem + dest->alloc); in re_node_set_merge()
1205 Idx *new_buffer = re_realloc (dest->elems, Idx, new_alloc); in re_node_set_merge()
1215 memcpy (dest->elems, src->elems, src->nelem * sizeof (Idx)); in re_node_set_merge()
1237 memcpy (dest->elems + sbase, src->elems, (is + 1) * sizeof (Idx)); in re_node_set_merge()
1266 delta * sizeof (Idx)); in re_node_set_merge()
1281 re_node_set_insert (re_node_set *set, Idx elem) in re_node_set_insert()
1283 Idx idx; in re_node_set_insert()
1299 Idx *new_elems; in re_node_set_insert()
1301 new_elems = re_realloc (set->elems, Idx, set->alloc); in re_node_set_insert()
1333 re_node_set_insert_last (re_node_set *set, Idx elem) in re_node_set_insert_last()
1338 Idx *new_elems; in re_node_set_insert_last()
1340 new_elems = re_realloc (set->elems, Idx, set->alloc); in re_node_set_insert_last()
1358 Idx i; in internal_function()
1369 static Idx
1371 re_node_set_contains (const re_node_set *set, Idx elem) in internal_function()
1393 re_node_set_remove_at (re_node_set *set, Idx idx) in re_node_set_remove_at()
1406 static Idx
1413 Idx *new_nexts, *new_indices; in re_dfa_add_node()
1419 sizeof (Idx))); 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()
1462 Idx i; in calc_state_hash()
1485 Idx i; in re_acquire_state()
1533 Idx i; in re_acquire_state_context()
1572 Idx i; in register_state()
1580 Idx elem = newstate->nodes.elems[i]; in register_state()
1589 Idx new_alloc = 2 * spot->num + 2; in register_state()
1625 Idx i; in create_ci_newstate()
1675 Idx i, nctx_nodes = 0; in create_cd_newstate()