Lines Matching refs:beg
683 int gn, beg, end; in mb_regex_groups_iter() local
690 beg = args->region->beg[gn]; in mb_regex_groups_iter()
692 if (beg >= 0 && beg < end && end <= args->search_len) { in mb_regex_groups_iter()
693 …d_assoc_stringl_ex(args->groups, (char *)name, name_end - name, &args->search_str[beg], end - beg); in mb_regex_groups_iter()
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()
894 int i, beg, end; in _php_mb_regex_ereg_exec() local
944 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
946 if (beg >= 0 && beg < end && (size_t)end <= string_len) { in _php_mb_regex_ereg_exec()
947 add_index_stringl(array, i, (char *)&str[beg], end - beg); in _php_mb_regex_ereg_exec()
1076 smart_str_appendl(&out_buf, (char *)pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); 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()
1213 size_t beg, end; in PHP_FUNCTION() local
1218 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1221 if (beg < string_len && beg >= (size_t)(chunk_pos - (OnigUChar *)string)) { in PHP_FUNCTION()
1222 …add_next_index_stringl(return_value, (char *)chunk_pos, ((OnigUChar *)(string + beg) - chunk_pos)); in PHP_FUNCTION()
1329 int beg, end; in _php_mb_regex_ereg_search_exec() local
1390 beg = MBREX(search_regs)->beg[0]; in _php_mb_regex_ereg_search_exec()
1392 add_next_index_long(return_value, beg); in _php_mb_regex_ereg_search_exec()
1393 add_next_index_long(return_value, end - beg); in _php_mb_regex_ereg_search_exec()
1399 beg = MBREX(search_regs)->beg[i]; in _php_mb_regex_ereg_search_exec()
1401 if (beg >= 0 && beg <= end && end <= len) { in _php_mb_regex_ereg_search_exec()
1402 add_index_stringl(return_value, i, (char *)&str[beg], end - beg); in _php_mb_regex_ereg_search_exec()
1516 int beg, end; in PHP_FUNCTION() local
1530 beg = MBREX(search_regs)->beg[i]; in PHP_FUNCTION()
1532 if (beg >= 0 && beg <= end && end <= len) { in PHP_FUNCTION()
1533 add_index_stringl(return_value, i, (char *)&str[beg], end - beg); in PHP_FUNCTION()