Lines Matching refs:regs
698 OnigRegion *regs = NULL; in _php_mb_regex_ereg_exec() local
751 regs = onig_region_new(); in _php_mb_regex_ereg_exec()
754 …r *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { in _php_mb_regex_ereg_exec()
763 match_len = regs->end[0] - regs->beg[0]; in _php_mb_regex_ereg_exec()
764 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_exec()
765 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
766 end = regs->end[i]; in _php_mb_regex_ereg_exec()
780 if (regs != NULL) { in _php_mb_regex_ereg_exec()
781 onig_region_free(regs, 1); in _php_mb_regex_ereg_exec()
822 OnigRegion *regs = NULL; in _php_mb_regex_ereg_replace_exec() local
926 regs = onig_region_new(); in _php_mb_regex_ereg_replace_exec()
928 …ig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); in _php_mb_regex_ereg_replace_exec()
937 if (regs->beg[0] == regs->end[0]) { in _php_mb_regex_ereg_replace_exec()
943 smart_str_appendl(&out_buf, (char *)pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); in _php_mb_regex_ereg_replace_exec()
956 if (n >= 0 && n < regs->num_regs) { in _php_mb_regex_ereg_replace_exec()
957 if (regs->beg[n] >= 0 && regs->beg[n] < regs->end[n] && (size_t)regs->end[n] <= string_len) { in _php_mb_regex_ereg_replace_exec()
958 smart_str_appendl(pbuf, string + regs->beg[n], regs->end[n] - regs->beg[n]); in _php_mb_regex_ereg_replace_exec()
986 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1004 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_replace_exec()
1005 add_next_index_stringl(&subpats, string + regs->beg[i], regs->end[i] - regs->beg[i]); in _php_mb_regex_ereg_replace_exec()
1029 n = regs->end[0]; in _php_mb_regex_ereg_replace_exec()
1044 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1050 if (regs != NULL) { in _php_mb_regex_ereg_replace_exec()
1051 onig_region_free(regs, 1); in _php_mb_regex_ereg_replace_exec()
1098 OnigRegion *regs = NULL; in PHP_FUNCTION() local
1128 regs = onig_region_new(); in PHP_FUNCTION()
1132 …ar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); in PHP_FUNCTION()
1136 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1151 onig_region_free(regs, 0); in PHP_FUNCTION()
1154 onig_region_free(regs, 1); in PHP_FUNCTION()