/PHP-7.1/ext/mbstring/oniguruma/ |
H A D | regcomp.c | 4892 reg->exact_end = reg->exact + e->len; in set_optimize_exact_info() 4900 reg->exact_end = reg->exact + e->len; in set_optimize_exact_info() 4903 ONIGENC_IS_ALLOWED_REVERSE_MATCH(reg->enc, reg->exact, reg->exact_end); in set_optimize_exact_info() 4906 r = set_bm_skip(reg->exact, reg->exact_end, reg->enc, in set_optimize_exact_info() 4907 reg->map, &(reg->int_map)); in set_optimize_exact_info() 4922 reg->threshold_len = reg->dmin + (reg->exact_end - reg->exact); in set_optimize_exact_info() 4941 reg->threshold_len = reg->dmin + 1; in set_optimize_map_info() 5223 (reg) = (reg)->chain;\ 5344 reg->bt_mem_start |= reg->capture_history; in onig_compile() 5349 reg->bt_mem_end |= reg->capture_history; in onig_compile() [all …]
|
H A D | reggnu.c | 44 re_adjust_startpos(regex_t* reg, const char* string, int size, in re_adjust_startpos() argument 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() 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 *reg = (regex_t* )xmalloc(sizeof(regex_t)); in re_alloc_pattern() 129 if (IS_NULL(*reg)) return ONIGERR_MEMORY; in re_alloc_pattern() [all …]
|
H A D | regposix.c | 35 #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 D | regexec.c | 1266 n = reg->num_repeat + reg->num_mem * 2; in match_at() 3135 p = slow_search(reg->enc, reg->exact, reg->exact_end, p, end, range); in forward_search_range() 3138 p = slow_search_ic(reg->enc, reg->case_fold_flag, in forward_search_range() 3143 p = bm_search(reg, reg->exact, reg->exact_end, p, end, range); in forward_search_range() 3147 p = bm_search_notrev(reg, reg->exact, reg->exact_end, p, end, range); in forward_search_range() 3151 p = map_search(reg->enc, reg->map, p, range); in forward_search_range() 3263 p = slow_search_backward(reg->enc, reg->exact, reg->exact_end, in backward_search_range() 3268 p = slow_search_backward_ic(reg->enc, reg->case_fold_flag, in backward_search_range() 3269 reg->exact, reg->exact_end, in backward_search_range() 3279 r = set_bm_backward_skip(reg->exact, reg->exact_end, reg->enc, in backward_search_range() [all …]
|
H A D | regext.c | 165 onig_new_deluxe(regex_t** reg, const UChar* pattern, const UChar* pattern_end, in onig_new_deluxe() argument 181 *reg = (regex_t* )xmalloc(sizeof(regex_t)); in onig_new_deluxe() 182 if (IS_NULL(*reg)) { in onig_new_deluxe() 187 r = onig_reg_init(*reg, ci->option, ci->case_fold_flag, ci->target_enc, in onig_new_deluxe() 191 r = onig_compile(*reg, cpat, cpat_end, einfo); in onig_new_deluxe() 194 onig_free(*reg); in onig_new_deluxe() 195 *reg = NULL; in onig_new_deluxe() 206 onig_recompile_deluxe(regex_t* reg, const UChar* pattern, const UChar* pattern_end, in onig_recompile_deluxe() argument 214 if (ONIG_STATE(reg) == ONIG_STATE_NORMAL) { in onig_recompile_deluxe() 215 onig_transfer(reg, new_reg); in onig_recompile_deluxe() [all …]
|
H A D | onigposix.h | 154 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 D | oniguruma.h | 653 #define ONIG_STATE(reg) \ argument 654 ((reg)->state > 0 ? ONIG_STATE_SEARCHING : (reg)->state) 759 int onig_name_to_group_numbers P_((OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end,… 765 int onig_number_of_names P_((OnigRegex reg)); 767 int onig_number_of_captures P_((OnigRegex reg)); 769 int onig_number_of_capture_histories P_((OnigRegex reg)); 775 int onig_noname_group_capture_is_active P_((OnigRegex reg)); 777 OnigEncoding onig_get_encoding P_((OnigRegex reg)); 779 OnigOptionType onig_get_options P_((OnigRegex reg)); 781 OnigCaseFoldType onig_get_case_fold_flag P_((OnigRegex reg)); [all …]
|
H A D | testc.c | 39 regex_t reg; in xx() local 43 r = regcomp(®, pattern, REG_EXTENDED | REG_NEWLINE); in xx() 45 regerror(r, ®, buf, sizeof(buf)); in xx() 51 r = regexec(®, str, reg.re_nsub + 1, pmatch, 0); in xx() 53 regerror(r, ®, buf, sizeof(buf)); in xx() 86 regfree(®); in xx() 89 regex_t* reg; in xx() local 92 r = onig_new(®, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)), in xx() 102 r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)), in xx() 140 onig_free(reg); in xx()
|
H A D | testu.c | 64 regex_t reg; in xx() local 71 r = regcomp(®, pattern, REG_EXTENDED | REG_NEWLINE); in xx() 73 regerror(r, ®, buf, sizeof(buf)); in xx() 79 r = regexec(®, str, reg.re_nsub + 1, pmatch, 0); in xx() 81 regerror(r, ®, buf, sizeof(buf)); in xx() 114 regfree(®); in xx() 117 regex_t* reg; in xx() local 125 r = onig_new(®, (UChar* )pattern, (UChar* )(pattern + ulen(pattern)), in xx() 135 r = onig_new_deluxe(®, (UChar* )pattern, in xx() 148 r = onig_search(reg, (UChar* )str, (UChar* )(str + ulen(str)), in xx() [all …]
|
H A D | regint.h | 149 #define ONIG_STATE_INC(reg) (reg)->state++ argument 150 #define ONIG_STATE_DEC(reg) (reg)->state-- argument 152 #define ONIG_STATE_INC_THREAD(reg) do {\ argument 154 (reg)->state++;\ 157 #define ONIG_STATE_DEC_THREAD(reg) do {\ argument 159 (reg)->state--;\ 163 #define ONIG_STATE_INC(reg) /* Nothing */ argument 164 #define ONIG_STATE_DEC(reg) /* Nothing */ argument 165 #define ONIG_STATE_INC_THREAD(reg) /* Nothing */ argument 166 #define ONIG_STATE_DEC_THREAD(reg) /* Nothing */ argument [all …]
|
H A D | regparse.c | 464 names_clear(regex_t* reg) in names_clear() argument 480 r = names_clear(reg); in onig_names_free() 504 regex_t* reg; member 517 arg->reg, arg->arg); in i_names() 535 narg.reg = reg; in onig_foreach_name() 627 names_clear(regex_t* reg) in names_clear() argument 661 r = names_clear(reg); in onig_names_free() 666 reg->name_table = NULL; in onig_names_free() 701 reg, arg); in onig_foreach_name() 5540 names_clear(reg); in onig_parse_make_tree() [all …]
|
/PHP-7.1/ext/pcre/pcrelib/sljit/ |
H A D | sljitNativePPC_64.c | 42 push_inst(compiler, RLDI(reg, reg, 63 - shift, shift, 1)) 77 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(tmp >> 32))); in load_immediate() 89 return push_inst(compiler, ORI | S(reg) | A(reg) | tmp2); in load_immediate() 95 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | (tmp2 >> 16))); in load_immediate() 107 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | (tmp2 >> 48))); in load_immediate() 113 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm >> 32))); in load_immediate() 115 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | IMM(imm >> 16))); in load_immediate() 116 return push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)); in load_immediate() 395 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(init_value >> 32))); in emit_const() 397 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | IMM(init_value >> 16))); in emit_const() [all …]
|
H A D | sljitNativeARM_T2_32.c | 516 sljit_si reg; in emit_op_imm() local 527 reg = (flags & ARG2_IMM) ? arg1 : arg2; in emit_op_imm() 551 if (reg == dst) { in emit_op_imm() 588 if (reg == dst) { in emit_op_imm() 644 if (IS_2_LO_REGS(dst, reg)) in emit_op_imm() 925 if (!argw && IS_3_LO_REGS(reg, arg, other_r)) in getput_arg_fast() 1014 tmp_r = (flags & STORE) ? TMP_REG3 : reg; in getput_arg() 1052 if (!argw && IS_3_LO_REGS(reg, arg, other_r)) { in getput_arg() 1112 if (getput_arg_fast(compiler, flags, reg, arg, argw)) in emit_op_mem() 1529 return reg_map[reg]; in sljit_get_register_index() [all …]
|
H A D | sljitNativeARM_32.c | 1284 FAIL_IF(push_inst(compiler, EMIT_DATA_PROCESS_INS(positive ? ORR_DP : BIC_DP, 0, reg, reg, imm2))); in generate_int() 1309 FAIL_IF(generate_int(compiler, reg, imm, 1)); in load_immediate() 1310 FAIL_IF(generate_int(compiler, reg, ~imm, 0)); in load_immediate() 1315 return emit_imm(compiler, reg, imm); in load_immediate() 1449 if (reg == tmp_r) { \ 1454 reg = TMP_REG3; \ 1468 return load_immediate(compiler, reg, argw); in getput_arg() 1977 return reg_map[reg]; in sljit_get_register_index() 1983 return reg << 1; in sljit_get_float_register_index() 2534 sljit_si reg; in sljit_emit_const() local [all …]
|
H A D | sljitNativeARM_64.c | 523 sljit_si reg; in emit_op_imm() local 538 reg = (flags & ARG2_IMM) ? arg1 : arg2; in emit_op_imm() 867 | RT(reg) | RN(arg) | (argw << (10 - shift)))); in getput_arg_fast() 878 | RT(reg) | RN(arg) | ((argw & 0x1ff) << 12))); in getput_arg_fast() 922 tmp_r = (flags & STORE) ? TMP_REG3 : reg; in getput_arg() 974 if (arg != reg) { in getput_arg() 994 | RT(reg) | RN(TMP_REG3) | ((diff & 0x1ff) << 12)); in getput_arg() 1045 if (getput_arg_fast(compiler, flags, reg, arg, argw)) in emit_op_mem() 1517 CHECK_REG_INDEX(check_sljit_get_register_index(reg)); in sljit_get_register_index() 1518 return reg_map[reg]; in sljit_get_register_index() [all …]
|
H A D | sljitNativePPC_common.c | 718 ((inst) | (((flags) & MEM_MASK) <= GPR_REG ? D(reg) : FD(reg))) 1005 FAIL_IF(push_inst(compiler, OR | S(reg) | A(tmp_r) | B(reg))); in getput_arg() 1006 reg = tmp_r; in getput_arg() 1668 return reg; in sljit_get_float_register_index() 2254 INVERT_BIT(reg); in sljit_emit_op_flags() 2265 INVERT_BIT(reg); in sljit_emit_op_flags() 2276 INVERT_BIT(reg); in sljit_emit_op_flags() 2285 INVERT_BIT(reg); in sljit_emit_op_flags() 2294 INVERT_BIT(reg); in sljit_emit_op_flags() 2305 INVERT_BIT(reg); in sljit_emit_op_flags() [all …]
|
H A D | sljitNativePPC_32.c | 29 static sljit_si load_immediate(struct sljit_compiler *compiler, sljit_si reg, sljit_sw imm) in load_immediate() argument 32 return push_inst(compiler, ADDI | D(reg) | A(0) | IMM(imm)); in load_immediate() 35 return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm)); in load_immediate() 37 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16))); in load_immediate() 38 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS; in load_immediate() 247 static SLJIT_INLINE sljit_si emit_const(struct sljit_compiler *compiler, sljit_si reg, sljit_sw ini… in emit_const() argument 249 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(init_value >> 16))); in emit_const() 250 return push_inst(compiler, ORI | S(reg) | A(reg) | IMM(init_value)); in emit_const()
|
H A D | sljitNativeSPARC_common.c | 520 | ((flags & MEM_MASK) <= GPR_REG ? D(reg) : DA(reg)) in getput_arg_fast() 577 …else if ((flags & LOAD_DATA) && ((flags & MEM_MASK) <= GPR_REG) && reg != base && reg != OFFS_REG(… in getput_arg() 578 arg2 = reg; in getput_arg() 599 arg2 = reg; in getput_arg() 606 dest = ((flags & MEM_MASK) <= GPR_REG ? D(reg) : DA(reg)); in getput_arg() 618 if (getput_arg_fast(compiler, flags, reg, arg, argw)) in emit_op_mem() 920 return reg_map[reg]; in sljit_get_register_index() 926 return reg << 1; in sljit_get_float_register_index() 1417 sljit_si reg; in sljit_emit_const() local 1428 reg = SLOW_IS_REG(dst) ? dst : TMP_REG2; in sljit_emit_const() [all …]
|
/PHP-7.1/ext/mbstring/oniguruma/doc/ |
H A D | API | 197 1 reg: regex object. 205 1 reg: regex object. 217 1 reg: regex object 241 1 reg: regex object 322 1 reg: regex object. 338 1 reg: regex object. 352 1 reg: regex object. 363 1 reg: regex object. 371 1 reg: regex object. 382 1 reg: regex object. [all …]
|
/PHP-7.1/ext/mbstring/tests/ |
H A D | mb_ereg.phpt | 20 …ntf( "(%d)%s\n", mb_ereg( $pat, $str, $reg ), ( is_array( $reg )? bin2hex(mb_convert_encoding( imp…
|
H A D | mb_ereg_search.phpt | 12 $reg = "\w+"; 16 mb_ereg_search_init($str, $reg);
|
H A D | mb_ereg_replace-compat-13.phpt | 10 /* (counterpart: ext/standard/tests/reg/016.phpt) */
|
/PHP-7.1/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_phpinfo.phpt | 21 $reg = 'Client API version.*' . preg_quote($db->getAttribute(PDO::ATTR_CLIENT_VERSION), '/'); 23 if (!preg_match("/$reg/", $tmp)) {
|
/PHP-7.1/ext/mbstring/oniguruma/win32/ |
H A D | testc.c | 39 regex_t reg; in xx() local 43 r = regcomp(®, pattern, REG_EXTENDED | REG_NEWLINE); in xx() 45 regerror(r, ®, buf, sizeof(buf)); in xx() 51 r = regexec(®, str, reg.re_nsub + 1, pmatch, 0); in xx() 53 regerror(r, ®, buf, sizeof(buf)); in xx() 86 regfree(®); in xx() 89 regex_t* reg; in xx() local 92 r = onig_new(®, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)), in xx() 102 r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)), in xx() 140 onig_free(reg); in xx()
|
/PHP-7.1/ext/curl/ |
H A D | config.w32 | 10 var reg = /LIBCURL_VERSION_NUM\s+(0x[a-z0-9]+)/gi; 11 var m = reg.exec(file_get_contents(PHP_PHP_BUILD + "/include/curl/curlver.h"));
|