Lines Matching refs:regs

713 	OnigRegion *regs,  in mb_regex_substitute()  argument
809 no = onig_name_to_backref_number(regexp, (OnigUChar *)name, (OnigUChar *)name_end, regs); in mb_regex_substitute()
819 if (no < 0 || no >= regs->num_regs) { in mb_regex_substitute()
824 if (regs->beg[no] >= 0 && regs->beg[no] < regs->end[no] && (size_t)regs->end[no] <= subject_len) { in mb_regex_substitute()
825 smart_str_appendl(pbuf, subject + regs->beg[no], regs->end[no] - regs->beg[no]); in mb_regex_substitute()
893 OnigRegion *regs = NULL; in _php_mb_regex_ereg_exec() local
933 regs = onig_region_new(); in _php_mb_regex_ereg_exec()
936 …r *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { in _php_mb_regex_ereg_exec()
943 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_exec()
944 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
945 end = regs->end[i]; in _php_mb_regex_ereg_exec()
954 mb_regex_groups_iter_args args = {array, string, string_len, regs}; in _php_mb_regex_ereg_exec()
961 if (regs != NULL) { in _php_mb_regex_ereg_exec()
962 onig_region_free(regs, 1); in _php_mb_regex_ereg_exec()
998 OnigRegion *regs = NULL; in _php_mb_regex_ereg_replace_exec() local
1065 regs = onig_region_new(); in _php_mb_regex_ereg_replace_exec()
1067 …ig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); in _php_mb_regex_ereg_replace_exec()
1076 smart_str_appendl(&out_buf, (char *)pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); in _php_mb_regex_ereg_replace_exec()
1079 mb_regex_substitute(pbuf, string, string_len, replace, replace_len, re, regs, enc); in _php_mb_regex_ereg_replace_exec()
1088 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_replace_exec()
1089 add_next_index_stringl(&subpats, string + regs->beg[i], regs->end[i] - regs->beg[i]); in _php_mb_regex_ereg_replace_exec()
1092 mb_regex_groups_iter_args args = {&subpats, string, string_len, regs}; in _php_mb_regex_ereg_replace_exec()
1119 n = regs->end[0]; in _php_mb_regex_ereg_replace_exec()
1134 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1140 if (regs != NULL) { in _php_mb_regex_ereg_replace_exec()
1141 onig_region_free(regs, 1); in _php_mb_regex_ereg_replace_exec()
1181 OnigRegion *regs = NULL; in PHP_FUNCTION() local
1210 regs = onig_region_new(); in PHP_FUNCTION()
1214 …ar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); in PHP_FUNCTION()
1218 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1233 onig_region_free(regs, 0); in PHP_FUNCTION()
1236 onig_region_free(regs, 1); in PHP_FUNCTION()