Skip to content

Partial matches #127

Closed
Closed
@cpitclaudel

Description

@cpitclaudel

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions