Lines Matching refs:regs

712 	OnigRegion *regs,  in mb_regex_substitute()  argument
807 no = onig_name_to_backref_number(regexp, (OnigUChar *)name, (OnigUChar *)name_end, regs); in mb_regex_substitute()
816 if (no < 0 || no >= regs->num_regs) { in mb_regex_substitute()
821 if (regs->beg[no] >= 0 && regs->beg[no] < regs->end[no] && (size_t)regs->end[no] <= subject_len) { in mb_regex_substitute()
822 smart_str_appendl(pbuf, subject + regs->beg[no], regs->end[no] - regs->beg[no]); in mb_regex_substitute()
897 OnigRegion *regs = NULL; in _php_mb_regex_ereg_exec() local
950 regs = onig_region_new(); in _php_mb_regex_ereg_exec()
953 …r *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { in _php_mb_regex_ereg_exec()
962 match_len = regs->end[0] - regs->beg[0]; in _php_mb_regex_ereg_exec()
963 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_exec()
964 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
965 end = regs->end[i]; in _php_mb_regex_ereg_exec()
974 mb_regex_groups_iter_args args = {array, string, string_len, regs}; in _php_mb_regex_ereg_exec()
984 if (regs != NULL) { in _php_mb_regex_ereg_exec()
985 onig_region_free(regs, 1); in _php_mb_regex_ereg_exec()
1025 OnigRegion *regs = NULL; in _php_mb_regex_ereg_replace_exec() local
1132 regs = onig_region_new(); in _php_mb_regex_ereg_replace_exec()
1134 …ig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); in _php_mb_regex_ereg_replace_exec()
1143 smart_str_appendl(&out_buf, (char *)pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); in _php_mb_regex_ereg_replace_exec()
1146 mb_regex_substitute(pbuf, string, string_len, replace, replace_len, re, regs, enc); in _php_mb_regex_ereg_replace_exec()
1165 onig_region_free(regs, 1); in _php_mb_regex_ereg_replace_exec()
1183 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_replace_exec()
1184 add_next_index_stringl(&subpats, string + regs->beg[i], regs->end[i] - regs->beg[i]); in _php_mb_regex_ereg_replace_exec()
1187 mb_regex_groups_iter_args args = {&subpats, string, string_len, regs}; in _php_mb_regex_ereg_replace_exec()
1212 n = regs->end[0]; in _php_mb_regex_ereg_replace_exec()
1227 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1233 if (regs != NULL) { in _php_mb_regex_ereg_replace_exec()
1234 onig_region_free(regs, 1); in _php_mb_regex_ereg_replace_exec()
1281 OnigRegion *regs = NULL; in PHP_FUNCTION() local
1311 regs = onig_region_new(); in PHP_FUNCTION()
1315 …ar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); in PHP_FUNCTION()
1319 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1334 onig_region_free(regs, 0); in PHP_FUNCTION()
1337 onig_region_free(regs, 1); in PHP_FUNCTION()