w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

regex_internal.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void re_string_construct_common (const char *str, int len, re_string_t *pstr, RE_TRANSLATE_TYPE trans, int icase, const re_dfa_t *dfa) internal_function
 
static re_dfastate_tcreate_ci_newstate (const re_dfa_t *dfa, const re_node_set *nodes, unsigned int hash) internal_function
 
static re_dfastate_tcreate_cd_newstate (const re_dfa_t *dfa, const re_node_set *nodes, unsigned int context, unsigned int hash) internal_function
 
static reg_errcode_t internal_function re_string_allocate (re_string_t *pstr, const char *str, int len, int init_len, RE_TRANSLATE_TYPE trans, int icase, const re_dfa_t *dfa)
 
static reg_errcode_t internal_function re_string_construct (re_string_t *pstr, const char *str, int len, RE_TRANSLATE_TYPE trans, int icase, const re_dfa_t *dfa)
 
static reg_errcode_t internal_function re_string_realloc_buffers (re_string_t *pstr, int new_buf_len)
 
static void internal_function build_upper_buffer (re_string_t *pstr)
 
static void internal_function re_string_translate_buffer (re_string_t *pstr)
 
static reg_errcode_t internal_function re_string_reconstruct (re_string_t *pstr, int idx, int eflags)
 
static unsigned char internal_function __attribute ((pure))
 
static void internal_function re_string_destruct (re_string_t *pstr)
 
static unsigned int internal_function re_string_context_at (const re_string_t *input, int idx, int eflags)
 
static reg_errcode_t internal_function re_node_set_alloc (re_node_set *set, int size)
 
static reg_errcode_t internal_function re_node_set_init_1 (re_node_set *set, int elem)
 
static reg_errcode_t internal_function re_node_set_init_2 (re_node_set *set, int elem1, int elem2)
 
static reg_errcode_t internal_function re_node_set_init_copy (re_node_set *dest, const re_node_set *src)
 
static reg_errcode_t internal_function re_node_set_add_intersect (re_node_set *dest, const re_node_set *src1, const re_node_set *src2)
 
static reg_errcode_t internal_function re_node_set_init_union (re_node_set *dest, const re_node_set *src1, const re_node_set *src2)
 
static reg_errcode_t internal_function re_node_set_merge (re_node_set *dest, const re_node_set *src)
 
static int internal_function re_node_set_insert (re_node_set *set, int elem)
 
static int internal_function re_node_set_insert_last (re_node_set *set, int elem)
 
static void internal_function re_node_set_remove_at (re_node_set *set, int idx)
 
static int internal_function re_dfa_add_node (re_dfa_t *dfa, re_token_t token)
 
static unsigned int internal_function calc_state_hash (const re_node_set *nodes, unsigned int context)
 
static re_dfastate_t *internal_function re_acquire_state (reg_errcode_t *err, const re_dfa_t *dfa, const re_node_set *nodes)
 
static re_dfastate_t *internal_function re_acquire_state_context (reg_errcode_t *err, const re_dfa_t *dfa, const re_node_set *nodes, unsigned int context)
 
static reg_errcode_t register_state (const re_dfa_t *dfa, re_dfastate_t *newstate, unsigned int hash)
 
static void free_state (re_dfastate_t *state)
 

Function Documentation

◆ __attribute()

◆ build_upper_buffer()

◆ calc_state_hash()

static unsigned int internal_function calc_state_hash ( const re_node_set nodes,
unsigned int  context 
)
inlinestatic

Definition at line 1444 of file regex_internal.c.

References re_node_set::elems, hash, i, and re_node_set::nelem.

Referenced by re_acquire_state(), and re_acquire_state_context().

◆ create_cd_newstate()

◆ create_ci_newstate()

◆ free_state()

static void free_state ( re_dfastate_t state)
static

Definition at line 1578 of file regex_internal.c.

References re_free, and re_node_set_free.

Referenced by create_cd_newstate(), create_ci_newstate(), and free_dfa_content().

◆ re_acquire_state()

◆ re_acquire_state_context()

◆ re_dfa_add_node()

◆ re_node_set_add_intersect()

static reg_errcode_t internal_function re_node_set_add_intersect ( re_node_set dest,
const re_node_set src1,
const re_node_set src2 
)
static

◆ re_node_set_alloc()

◆ re_node_set_init_1()

◆ re_node_set_init_2()

static reg_errcode_t internal_function re_node_set_init_2 ( re_node_set set,
int  elem1,
int  elem2 
)
static

◆ re_node_set_init_copy()

◆ re_node_set_init_union()

◆ re_node_set_insert()

◆ re_node_set_insert_last()

static int internal_function re_node_set_insert_last ( re_node_set set,
int  elem 
)
static

◆ re_node_set_merge()

◆ re_node_set_remove_at()

static void internal_function re_node_set_remove_at ( re_node_set set,
int  idx 
)
static

Definition at line 1382 of file regex_internal.c.

References re_node_set::elems, idx, and re_node_set::nelem.

Referenced by create_cd_newstate(), and sub_epsilon_src_nodes().

◆ re_string_allocate()

◆ re_string_construct()

◆ re_string_construct_common()

◆ re_string_context_at()

◆ re_string_destruct()

static void internal_function re_string_destruct ( re_string_t pstr)
static

Definition at line 896 of file regex_internal.c.

References re_string_t::mbs, re_string_t::mbs_allocated, and re_free.

Referenced by re_compile_internal(), and re_search_internal().

◆ re_string_realloc_buffers()

◆ re_string_reconstruct()

◆ re_string_translate_buffer()

◆ register_state()