Lines Matching refs:regs

696 	OnigRegion *regs = NULL;  in _php_mb_regex_ereg_exec()  local
734 regs = onig_region_new(); in _php_mb_regex_ereg_exec()
737 …r *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { in _php_mb_regex_ereg_exec()
745 match_len = regs->end[0] - regs->beg[0]; in _php_mb_regex_ereg_exec()
748 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_exec()
749 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
750 end = regs->end[i]; in _php_mb_regex_ereg_exec()
764 if (regs != NULL) { in _php_mb_regex_ereg_exec()
765 onig_region_free(regs, 1); in _php_mb_regex_ereg_exec()
806 OnigRegion *regs = NULL; in _php_mb_regex_ereg_replace_exec() local
894 regs = onig_region_new(); in _php_mb_regex_ereg_replace_exec()
896 …ig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); in _php_mb_regex_ereg_replace_exec()
905 if (regs->beg[0] == regs->end[0]) { in _php_mb_regex_ereg_replace_exec()
911 smart_str_appendl(&out_buf, pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); in _php_mb_regex_ereg_replace_exec()
924 if (n >= 0 && n < regs->num_regs) { in _php_mb_regex_ereg_replace_exec()
925 if (regs->beg[n] >= 0 && regs->beg[n] < regs->end[n] && regs->end[n] <= string_len) { in _php_mb_regex_ereg_replace_exec()
926 smart_str_appendl(pbuf, string + regs->beg[n], regs->end[n] - regs->beg[n]); in _php_mb_regex_ereg_replace_exec()
964 for (i = 0; i < regs->num_regs; i++) { in _php_mb_regex_ereg_replace_exec()
965 add_next_index_stringl(subpats, string + regs->beg[i], regs->end[i] - regs->beg[i], 1); in _php_mb_regex_ereg_replace_exec()
988 n = regs->end[0]; in _php_mb_regex_ereg_replace_exec()
1003 onig_region_free(regs, 0); in _php_mb_regex_ereg_replace_exec()
1009 if (regs != NULL) { in _php_mb_regex_ereg_replace_exec()
1010 onig_region_free(regs, 1); in _php_mb_regex_ereg_replace_exec()
1055 OnigRegion *regs = NULL; in PHP_FUNCTION() local
1080 regs = onig_region_new(); in PHP_FUNCTION()
1084 …ar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); in PHP_FUNCTION()
1088 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1103 onig_region_free(regs, 0); in PHP_FUNCTION()
1106 onig_region_free(regs, 1); in PHP_FUNCTION()