regex/uregex API to set more state simultaneously
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.
void uregex_setRegionAndStart(URegularExpression *regexp, int64_t regionStart, int64_t regionLimit, int64_t startIndex, UErrorCode *status);
virtual RegexMatcher ®ion(int64_t regionStart, int64_t regionLimit, int64_t startIndex, UErrorCode &status);
Trac Comment 2 by mishonok—2010-09-15T17:14:16.263Z
Ah, never mind this ticket.
It was already tracked/approved as 7851
Trac Comment 1 by mishonok—2010-09-15T05:01:37.375Z
Reviewed on icu-core/icu-design 7/20-27