Lines Matching refs:group
538 int group, n;
553 group = -1;
574 group = next - CHAR_0;
579 group = group * 10 + next - CHAR_0;
581 /* A check for a number greater than the hightest captured group
586 if (group > code->top_bracket)
656 /* Have found a syntactically correct group number or name, or *name.
675 /* Substitute the contents of a group. We don't use substring_copy
682 /* Find a number for a named group. In case there are duplicate names,
684 PCRE2_SUBSTITUTE_UNKNOWN_EMPTY is set, set the group number to a
685 non-existent group. */
687 if (group < 0)
694 group = code->top_bracket + 1;
704 if (group < 0) group = ng; /* First in ovector */
707 group = ng; /* First that is set */
713 /* If group is still negative, it means we did not find a group
714 that is in the ovector. Just set the first group. */
716 if (group < 0) group = GET2(first, 0);
720 /* We now have a group that is identified by number. Find the length of
721 the captured string. If a group in a non-special substitution is unset
724 rc = pcre2_substring_length_bynumber(match_data, group, &sublength);
742 default text for when the group is unset; it must be reprocessed. */
770 /* Otherwise we have a literal substitution of a group's contents. */
773 subptr = subject + ovector[group*2];
774 subptrend = subject + ovector[group*2 + 1];