Lines Matching refs:beg
682 int gn, beg, end; in mb_regex_groups_iter() local
689 beg = args->region->beg[gn]; in mb_regex_groups_iter()
691 if (beg >= 0 && beg < end && end <= args->search_len) { in mb_regex_groups_iter()
692 …d_assoc_stringl_ex(args->groups, (char *)name, name_end - name, &args->search_str[beg], end - beg); in mb_regex_groups_iter()
821 if (regs->beg[no] >= 0 && regs->beg[no] < regs->end[no] && (size_t)regs->end[no] <= subject_len) { in mb_regex_substitute()
822 smart_str_appendl(pbuf, subject + regs->beg[no], regs->end[no] - regs->beg[no]); in mb_regex_substitute()
898 int i, match_len, beg, end; in _php_mb_regex_ereg_exec() local
962 match_len = regs->end[0] - regs->beg[0]; in _php_mb_regex_ereg_exec()
964 beg = regs->beg[i]; in _php_mb_regex_ereg_exec()
966 if (beg >= 0 && beg < end && (size_t)end <= string_len) { in _php_mb_regex_ereg_exec()
967 add_index_stringl(array, i, (char *)&str[beg], end - beg); in _php_mb_regex_ereg_exec()
1143 smart_str_appendl(&out_buf, (char *)pos, (size_t)((OnigUChar *)(string + regs->beg[0]) - pos)); in _php_mb_regex_ereg_replace_exec()
1184 add_next_index_stringl(&subpats, string + regs->beg[i], regs->end[i] - regs->beg[i]); in _php_mb_regex_ereg_replace_exec()
1314 size_t beg, end; in PHP_FUNCTION() local
1319 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1322 if (beg < string_len && beg >= (size_t)(chunk_pos - (OnigUChar *)string)) { in PHP_FUNCTION()
1323 …add_next_index_stringl(return_value, (char *)chunk_pos, ((OnigUChar *)(string + beg) - chunk_pos)); in PHP_FUNCTION()
1428 size_t n, i, pos, len, beg, end; in _php_mb_regex_ereg_search_exec() local
1489 beg = MBREX(search_regs)->beg[0]; in _php_mb_regex_ereg_search_exec()
1491 add_next_index_long(return_value, beg); in _php_mb_regex_ereg_search_exec()
1492 add_next_index_long(return_value, end - beg); in _php_mb_regex_ereg_search_exec()
1498 beg = MBREX(search_regs)->beg[i]; in _php_mb_regex_ereg_search_exec()
1500 if (beg >= 0 && beg <= end && end <= len) { in _php_mb_regex_ereg_search_exec()
1501 add_index_stringl(return_value, i, (char *)&str[beg], end - beg); in _php_mb_regex_ereg_search_exec()
1623 size_t n, i, len, beg, end; in PHP_FUNCTION() local
1633 beg = MBREX(search_regs)->beg[i]; in PHP_FUNCTION()
1635 if (beg >= 0 && beg <= end && end <= len) { in PHP_FUNCTION()
1636 add_index_stringl(return_value, i, (char *)&str[beg], end - beg); in PHP_FUNCTION()