Lines Matching refs:reg
44 re_adjust_startpos(regex_t* reg, const char* string, int size, in re_adjust_startpos() argument
47 if (startpos > 0 && ONIGENC_MBC_MAXLEN(reg->enc) != 1 && startpos < size) { in re_adjust_startpos()
52 p = onigenc_get_right_adjust_char_head(reg->enc, (UChar* )string, s); in re_adjust_startpos()
55 p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(reg->enc, (UChar* )string, s); in re_adjust_startpos()
64 re_match(regex_t* reg, const char* str, int size, int pos, in re_match() argument
67 return onig_match(reg, (UChar* )str, (UChar* )(str + size), in re_match()
82 re_compile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_compile_pattern() argument
87 r = onig_compile(reg, (UChar* )pattern, (UChar* )(pattern + size), &einfo); in re_compile_pattern()
98 re_recompile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_recompile_pattern() argument
109 r = onig_recompile(reg, (UChar* )pattern, (UChar* )(pattern + size), in re_recompile_pattern()
110 reg->options, enc, OnigDefaultSyntax, &einfo); in re_recompile_pattern()
120 re_free_pattern(regex_t* reg) in re_free_pattern() argument
122 onig_free(reg); in re_free_pattern()
126 re_alloc_pattern(regex_t** reg) in re_alloc_pattern() argument
128 return onig_alloc_init(reg, ONIG_OPTION_DEFAULT, in re_alloc_pattern()