Home
last modified time | relevance | path

Searched refs:reg (Results 1 – 25 of 108) sorted by relevance

12345

/PHP-5.3/ext/mbstring/oniguruma/
H A Dregcomp.c4686 reg->exact_end = reg->exact + e->len; in set_optimize_exact_info()
4694 reg->exact_end = reg->exact + e->len; in set_optimize_exact_info()
4697 ONIGENC_IS_ALLOWED_REVERSE_MATCH(reg->enc, reg->exact, reg->exact_end); in set_optimize_exact_info()
4700 r = set_bm_skip(reg->exact, reg->exact_end, reg->enc, in set_optimize_exact_info()
4701 reg->map, &(reg->int_map)); in set_optimize_exact_info()
4716 reg->threshold_len = reg->dmin + (reg->exact_end - reg->exact); in set_optimize_exact_info()
4735 reg->threshold_len = reg->dmin + 1; in set_optimize_map_info()
5015 (reg) = (reg)->chain;\
5086 xmemcpy(reg->p, from->p, reg->alloc);
5093 xmemcpy(reg->exact, from->exact, reg->exact_end - reg->exact);
[all …]
H A Dregposix.c35 #define ONIG_C(reg) ((onig_regex_t* )((reg)->onig)) argument
36 #define PONIG_C(reg) ((onig_regex_t** )(&(reg)->onig)) argument
151 reg->comp_options = posix_options; in regcomp()
161 reg->re_nsub = ONIG_C(reg)->num_mem; in regcomp()
216 if (reg->re_nsub > nmatch - 1) in regexec()
224 regfree(regex_t* reg) in regfree() argument
226 onig_free(ONIG_C(reg)); in regfree()
272 regex_t* reg; member
286 reg_foreach_name(regex_t* reg, in reg_foreach_name() argument
293 warg.reg = reg; in reg_foreach_name()
[all …]
H A Dreggnu.c44 re_adjust_startpos(regex_t* reg, const char* string, int size, in re_adjust_startpos() argument
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()
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
[all …]
H A Dregexec.c1242 ta.reg = reg; in onig_exec_trap()
1448 n = reg->num_repeat + reg->num_mem * 2; in match_at()
3322 p = slow_search(reg->enc, reg->exact, reg->exact_end, p, end, range); in forward_search_range()
3325 p = slow_search_ic(reg->enc, reg->ambig_flag, in forward_search_range()
3330 p = bm_search(reg, reg->exact, reg->exact_end, p, end, range); in forward_search_range()
3334 p = bm_search_notrev(reg, reg->exact, reg->exact_end, p, end, range); in forward_search_range()
3338 p = map_search(reg->enc, reg->map, p, range); in forward_search_range()
3441 p = slow_search_backward(reg->enc, reg->exact, reg->exact_end, in backward_search_range()
3446 p = slow_search_backward_ic(reg->enc, reg->ambig_flag, in backward_search_range()
3457 r = set_bm_backward_skip(reg->exact, reg->exact_end, reg->enc, in backward_search_range()
[all …]
H A Donigposix.h154 ONIG_EXTERN int regcomp P_((regex_t* reg, const char* pat, int options));
155 ONIG_EXTERN int regexec P_((regex_t* reg, const char* str, size_t nmatch, regmatch_t* matches, i…
156 ONIG_EXTERN void regfree P_((regex_t* reg));
157 ONIG_EXTERN size_t regerror P_((int code, const regex_t* reg, char* buf, size_t size));
161 ONIG_EXTERN int reg_name_to_group_numbers P_((regex_t* reg, const unsigned char* name, const unsig…
162 ONIG_EXTERN int reg_foreach_name P_((regex_t* reg, int (*func)(const unsigned char*, const unsigne…
163 ONIG_EXTERN int reg_number_of_names P_((regex_t* reg));
H A Dregext.c163 onig_new_deluxe(regex_t** reg, const UChar* pattern, const UChar* pattern_end, in onig_new_deluxe() argument
181 r = onig_alloc_init(reg, ci->option, ci->ambig_flag, ci->target_enc, in onig_new_deluxe()
185 r = onig_compile(*reg, cpat, cpat_end, einfo); in onig_new_deluxe()
187 onig_free(*reg); in onig_new_deluxe()
188 *reg = NULL; in onig_new_deluxe()
199 onig_recompile_deluxe(regex_t* reg, const UChar* pattern, const UChar* pattern_end, in onig_recompile_deluxe() argument
207 if (ONIG_STATE(reg) == ONIG_STATE_NORMAL) { in onig_recompile_deluxe()
208 onig_transfer(reg, new_reg); in onig_recompile_deluxe()
211 onig_chain_link_add(reg, new_reg); in onig_recompile_deluxe()
H A Dregint.h137 #define ONIG_STATE_INC(reg) (reg)->state++ argument
138 #define ONIG_STATE_DEC(reg) (reg)->state-- argument
140 #define ONIG_STATE_INC_THREAD(reg) do {\ argument
142 (reg)->state++;\
145 #define ONIG_STATE_DEC_THREAD(reg) do {\ argument
147 (reg)->state--;\
151 #define ONIG_STATE_INC(reg) /* Nothing */ argument
152 #define ONIG_STATE_DEC(reg) /* Nothing */ argument
153 #define ONIG_STATE_INC_THREAD(reg) /* Nothing */ argument
154 #define ONIG_STATE_DEC_THREAD(reg) /* Nothing */ argument
[all …]
H A Doniguruma.h736 #define ONIG_STATE(reg) \ argument
737 ((reg)->state > 0 ? ONIG_STATE_SEARCHING : (reg)->state)
837 int onig_name_to_group_numbers P_((OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end,…
843 int onig_number_of_names P_((OnigRegex reg));
845 int onig_number_of_captures P_((OnigRegex reg));
847 int onig_number_of_capture_histories P_((OnigRegex reg));
853 int onig_noname_group_capture_is_active P_((OnigRegex reg));
855 OnigEncoding onig_get_encoding P_((OnigRegex reg));
857 OnigOptionType onig_get_options P_((OnigRegex reg));
859 OnigAmbigType onig_get_ambig_flag P_((OnigRegex reg));
[all …]
H A Dregparse.c457 names_clear(regex_t* reg) in names_clear() argument
473 r = names_clear(reg); in onig_names_free()
497 regex_t* reg; member
511 arg->reg, arg->arg); in i_names()
530 narg.reg = reg; in onig_foreach_name()
623 names_clear(regex_t* reg) in names_clear() argument
657 r = names_clear(reg); in onig_names_free()
662 reg->name_table = NULL; in onig_names_free()
698 reg, arg); in onig_foreach_name()
5265 names_clear(reg); in onig_parse_make_tree()
[all …]
H A Dregposerr.c66 regerror(int posix_ecode, const regex_t* reg, char* buf, size_t size) in regerror() argument
/PHP-5.3/ext/mbstring/oniguruma/doc/
H A DAPI188 1 reg: regex object.
200 1 reg: regex object
224 1 reg: regex object
289 1 reg: regex object.
305 1 reg: regex object.
321 1 reg: regex object.
335 1 reg: regex object.
346 1 reg: regex object.
354 1 reg: regex object.
365 1 reg: regex object.
[all …]
/PHP-5.3/ext/mbstring/tests/
H A Dmb_ereg.phpt20 …ntf( "(%d)%s\n", mb_ereg( $pat, $str, $reg ), ( is_array( $reg )? bin2hex(mb_convert_encoding( imp…
H A Dmb_ereg_search.phpt12 $reg = "\w+";
16 mb_ereg_search_init($str, $reg);
H A Dmb_ereg_replace-compat-13.phpt10 /* (counterpart: ext/standard/tests/reg/016.phpt) */
H A Dmb_ereg_replace-compat-12.phpt10 /* (counterpart: ext/standard/tests/reg/015.phpt) */
H A Dmb_ereg_replace-compat-02.phpt10 /* (counterpart: ext/standard/tests/reg/002.phpt) */
H A Dmb_ereg_replace-compat-03.phpt10 /* (counterpart: ext/standard/tests/reg/003.phpt) */
H A Dmb_ereg_replace-compat-01.phpt10 /* (counterpart: ext/standard/tests/reg/001.phpt) */
H A Dmb_ereg_replace-compat-06.phpt10 /* (counterpart: ext/standard/tests/reg/008.phpt) */
H A Dmb_ereg_replace-compat-07.phpt10 /* (counterpart: ext/standard/tests/reg/010.phpt) */
H A Dmb_ereg_replace-compat-08.phpt10 /* (counterpart: ext/standard/tests/reg/011.phpt) */
H A Dmb_ereg_replace-compat-09.phpt10 /* (counterpart: ext/standard/tests/reg/012.phpt) */
H A Dmb_ereg_replace-compat-11.phpt10 /* (counterpart: ext/standard/tests/reg/014.phpt) */
H A Dmb_ereg_replace-compat-10.phpt10 /* (counterpart: ext/standard/tests/reg/013.phpt) */
H A Dmb_ereg_replace-compat-05.phpt10 /* (counterpart: ext/standard/tests/reg/007.phpt) */

Completed in 94 milliseconds

12345