regex/uregex API to set more state simultaneously

Description

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 &region(int64_t regionStart, int64_t regionLimit, int64_t startIndex, UErrorCode &status);

Activity

Show:
TracBot
July 1, 2018, 12:12 AM
Trac Comment 2 by mishonok—2010-09-15T17:14:16.263Z

Ah, never mind this ticket.
It was already tracked/approved as 7851

TracBot
July 1, 2018, 12:12 AM
Trac Comment 1 by mishonok—2010-09-15T05:01:37.375Z

Reviewed on icu-core/icu-design 7/20-27

Duplicate

Assignee

TracBot

Reporter

TracBot

Components

Labels

None

Reviewer

None

Priority

medium

Time Needed

None

Fix versions