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()
894 OnigRegion *regs = NULL; in _php_mb_regex_ereg_exec() local
943 regs = onig_region_new(); in _php_mb_regex_ereg_exec()
946 …r *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { in _php_mb_regex_ereg_exec()
955 match_len = regs->end[0] - regs->beg[0]; in _php_mb_regex_ereg_exec()
956 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_exec()
957 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
958 end = regs->end[i]; in _php_mb_regex_ereg_exec()
967 mb_regex_groups_iter_args args = {array, string, string_len, regs}; in _php_mb_regex_ereg_exec()
977 if (regs != NULL) { in _php_mb_regex_ereg_exec()
978 onig_region_free(regs, 1); in _php_mb_regex_ereg_exec()
1018 OnigRegion *regs = NULL; in _php_mb_regex_ereg_replace_exec() local
1121 regs = onig_region_new(); in _php_mb_regex_ereg_replace_exec()
1123 …ig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); in _php_mb_regex_ereg_replace_exec()
1132 smart_str_appendl(&out_buf, (char *)pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); in _php_mb_regex_ereg_replace_exec()
1135 mb_regex_substitute(pbuf, string, string_len, replace, replace_len, re, regs, enc); in _php_mb_regex_ereg_replace_exec()
1154 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1172 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_replace_exec()
1173 add_next_index_stringl(&subpats, string + regs->beg[i], regs->end[i] - regs->beg[i]); in _php_mb_regex_ereg_replace_exec()
1176 mb_regex_groups_iter_args args = {&subpats, string, string_len, regs}; in _php_mb_regex_ereg_replace_exec()
1201 n = regs->end[0]; in _php_mb_regex_ereg_replace_exec()
1216 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1222 if (regs != NULL) { in _php_mb_regex_ereg_replace_exec()
1223 onig_region_free(regs, 1); in _php_mb_regex_ereg_replace_exec()
1270 OnigRegion *regs = NULL; in PHP_FUNCTION() local
1300 regs = onig_region_new(); in PHP_FUNCTION()
1304 …ar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); in PHP_FUNCTION()
1308 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1323 onig_region_free(regs, 0); in PHP_FUNCTION()
1326 onig_region_free(regs, 1); in PHP_FUNCTION()