Lines Matching defs:group
408 // We've got a $. Pick up a capture group name or number if one follows.
409 // Consume digits so long as the resulting group number <= the number of
416 // Scan for a Named Capture Group, ${name}.
439 // $n Scan for a capture group number
451 // Don't consume the next digit if it makes the capture group number too big.
462 // $ not followed by capture group name or number.
469 } // End of $ capture group handling
554 int64_t RegexMatcher::end64(int32_t group, UErrorCode &err) const {
562 if (group < 0 || group > fPattern->fGroupMap->size()) {
567 if (group == 0) {
571 // this capture group.
572 int32_t groupOffset = fPattern->fGroupMap->elementAti(group-1);
581 int32_t RegexMatcher::end(int32_t group, UErrorCode &err) const {
582 return (int32_t)end64(group, err);
1144 // group()
1147 UnicodeString RegexMatcher::group(UErrorCode &status) const {
1148 return group(0, status);
1152 UText *RegexMatcher::group(UText *dest, int64_t &group_len, UErrorCode &status) const {
1153 return group(0, dest, group_len, status);
1157 UText *RegexMatcher::group(int32_t groupNum, UText *dest, int64_t &group_len, UErrorCode &status) const {
1187 // A capture group wasn't part of the match
1199 UnicodeString RegexMatcher::group(int32_t groupNum, UErrorCode &status) const {
1207 // Get the group length using a utext_extract preflight.
1229 // appendGroup() -- currently internal only, appends a group to a UText rather
1266 // A capture group wasn't part of the match
2097 // last capture group saved in favor of the unprocessed remainder of the
2180 // Never fill the last available output string with capture group text.
2269 // start(int32_t group, UErrorCode &status)
2273 int64_t RegexMatcher::start64(int32_t group, UErrorCode &status) const {
2285 if (group < 0 || group > fPattern->fGroupMap->size()) {
2290 if (group == 0) {
2293 int32_t groupOffset = fPattern->fGroupMap->elementAti(group-1);
2303 int32_t RegexMatcher::start(int32_t group, UErrorCode &status) const {
2304 return (int32_t)start64(group, status);
2489 // new stack frame to all -1. The -1s are needed for capture group limits,
2490 // where they indicate that a group has not yet matched anything.
2494 // new stack frame with all -1 data. The -1s are needed for capture group limits,
2495 // where they indicate that a group has not yet matched anything.
2909 // fp->fExtra[opValue] - The start of a completed capture group
2910 // opValue+1 - The end of a completed capture group
2911 // opValue+2 - the start of a capture group whose end
2921 U_ASSERT(fp->fExtra[opValue+2] >= 0); // Start pos for this group must be set.
3684 // This capture group has not participated in the match thus far,
3691 // Note: if the capture group match was of an empty string the backref
3731 // This capture group has not participated in the match thus far,
3740 // Note: if the capture group match was of an empty string the backref
4283 // Contains the capture group results that we need to
4294 // except for anything that needs to be saved (like group starts
4473 // fp->fExtra[opValue] - The start of a completed capture group
4474 // opValue+1 - The end of a completed capture group
4475 // opValue+2 - the start of a capture group whose end
4485 U_ASSERT(fp->fExtra[opValue+2] >= 0); // Start pos for this group must be set.
5219 // This capture group has not participated in the match thus far,
5250 // This capture group has not participated in the match thus far,
5257 // Note: if the capture group match was of an empty string the backref
5782 // Contains the capture group results that we need to