Proposal for uregex/regex API to set both the region and match start position independently, so the position at which a subsequent match operation begins can be a value other than start of region.
Useful when a long-running search has had to be interrupted (via the recent FindProgressCallback mechanism in uregex) and the search is later re-issued. No need to start the match from the beginning of the region again.
regex.h
void uregex_setRegionAndStart(URegularExpression *regexp, int64_t regionStart, int64_t regionLimit, int64_t startIndex, UErrorCode *status);
uregex.h
virtual RegexMatcher ®ion(int64_t regionStart, int64_t regionLimit, int64_t startIndex, UErrorCode &status);
Reviewed on icu-core/icu-design 7/20-27
Ah, never mind this ticket.
It was already tracked/approved as 7851