Lines Matching refs:end

43 #define onig_search_with_param(reg, str, end, start, range, region, option, mp) \  argument
44 onig_search(reg, str, end, start, range, region, option)
45 #define onig_match_with_param(re, str, end, at, region, option, mp) \ argument
46 onig_match(re, str, end, at, region, option)
682 int gn, beg, end; in mb_regex_groups_iter() local
690 end = args->region->end[gn]; in mb_regex_groups_iter()
691 if (beg >= 0 && beg < end && end <= args->search_len) { in mb_regex_groups_iter()
692 …add_assoc_stringl_ex(args->groups, (char *)name, name_end - name, &args->search_str[beg], end - be… 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()
871 static int _php_mb_onig_search(regex_t* reg, const OnigUChar* str, const OnigUChar* end, const Onig… in _php_mb_onig_search() argument
880 err = onig_search_with_param(reg, str, end, start, range, region, option, mp); in _php_mb_onig_search()
895 int i, match_len, beg, end; in _php_mb_regex_ereg_exec() local
955 match_len = regs->end[0] - regs->beg[0]; in _php_mb_regex_ereg_exec()
958 end = regs->end[i]; in _php_mb_regex_ereg_exec()
959 if (beg >= 0 && beg < end && (size_t)end <= string_len) { in _php_mb_regex_ereg_exec()
960 add_index_stringl(array, i, (char *)&str[beg], end - beg); in _php_mb_regex_ereg_exec()
1173 add_next_index_stringl(&subpats, string + regs->beg[i], regs->end[i] - regs->beg[i]); in _php_mb_regex_ereg_replace_exec()
1201 n = regs->end[0]; in _php_mb_regex_ereg_replace_exec()
1303 size_t beg, end; in PHP_FUNCTION() local
1308 beg = regs->beg[0], end = regs->end[0]; in PHP_FUNCTION()
1310 if ((size_t)(pos - (OnigUChar *)string) < end) { in PHP_FUNCTION()
1319 chunk_pos = pos = (OnigUChar *)string + end; in PHP_FUNCTION()
1414 size_t n, i, pos, len, beg, end; in _php_mb_regex_ereg_search_exec() local
1476 end = MBREX(search_regs)->end[0]; in _php_mb_regex_ereg_search_exec()
1478 add_next_index_long(return_value, end - beg); in _php_mb_regex_ereg_search_exec()
1485 end = MBREX(search_regs)->end[i]; in _php_mb_regex_ereg_search_exec()
1486 if (beg >= 0 && beg <= end && end <= len) { in _php_mb_regex_ereg_search_exec()
1487 add_index_stringl(return_value, i, (char *)&str[beg], end - beg); in _php_mb_regex_ereg_search_exec()
1506 end = MBREX(search_regs)->end[0]; in _php_mb_regex_ereg_search_exec()
1507 if (pos <= end) { in _php_mb_regex_ereg_search_exec()
1508 MBREX(search_pos) = end; in _php_mb_regex_ereg_search_exec()
1609 size_t n, i, len, beg, end; in PHP_FUNCTION() local
1620 end = MBREX(search_regs)->end[i]; in PHP_FUNCTION()
1621 if (beg >= 0 && beg <= end && end <= len) { in PHP_FUNCTION()
1622 add_index_stringl(return_value, i, (char *)&str[beg], end - beg); in PHP_FUNCTION()