Closed
Description
As an alternative to matching on arbitrary input streams, how hard would it be to support partial matches (in PCRE's sense)?
That is, how hard would it be to extend the API so that one could write something along the lines of:
state = RE2::PartialMatchOnIncompleteInput(hel", "h.*o", NULL)
final_state RE2::PartialMatchOnIncompleteInput("lo", "h.*o", state)
assert(RE2::PartialMatchOnIncompleteInputSuceeded(final_state))
Such a feature would make it easy to use RE2 to search Emacs' gap buffer.
Metadata
Metadata
Assignees
Labels
No labels