Lines Matching refs:regs

701 	OnigRegion *regs = NULL;  in _php_mb_regex_ereg_exec()  local
754 regs = onig_region_new(); in _php_mb_regex_ereg_exec()
757 …r *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { in _php_mb_regex_ereg_exec()
766 match_len = regs->end[0] - regs->beg[0]; in _php_mb_regex_ereg_exec()
767 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_exec()
768 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
769 end = regs->end[i]; in _php_mb_regex_ereg_exec()
783 if (regs != NULL) { in _php_mb_regex_ereg_exec()
784 onig_region_free(regs, 1); in _php_mb_regex_ereg_exec()
825 OnigRegion *regs = NULL; in _php_mb_regex_ereg_replace_exec() local
929 regs = onig_region_new(); in _php_mb_regex_ereg_replace_exec()
931 …ig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); in _php_mb_regex_ereg_replace_exec()
940 if (regs->beg[0] == regs->end[0]) { in _php_mb_regex_ereg_replace_exec()
946 smart_str_appendl(&out_buf, (char *)pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); in _php_mb_regex_ereg_replace_exec()
959 if (n >= 0 && n < regs->num_regs) { in _php_mb_regex_ereg_replace_exec()
960 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()
961 smart_str_appendl(pbuf, string + regs->beg[n], regs->end[n] - regs->beg[n]); in _php_mb_regex_ereg_replace_exec()
989 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1007 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_replace_exec()
1008 add_next_index_stringl(&subpats, string + regs->beg[i], regs->end[i] - regs->beg[i]); in _php_mb_regex_ereg_replace_exec()
1032 n = regs->end[0]; in _php_mb_regex_ereg_replace_exec()
1047 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1053 if (regs != NULL) { in _php_mb_regex_ereg_replace_exec()
1054 onig_region_free(regs, 1); in _php_mb_regex_ereg_replace_exec()
1101 OnigRegion *regs = NULL; in PHP_FUNCTION() local
1131 regs = onig_region_new(); in PHP_FUNCTION()
1135 …ar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); in PHP_FUNCTION()
1139 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1154 onig_region_free(regs, 0); in PHP_FUNCTION()
1157 onig_region_free(regs, 1); in PHP_FUNCTION()