Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Add "partial" searching methods that don't match a substring at end of input that could be extended to a bigger match #17

Description

@jwodder
  • E.g., searching for {CR, CRLF} will not match a terminating '\r', as it could become a CRLF if a '\n' were appended.

  • Similarly, when matching paragraph separators, multiple newlines at end of input are not matched, as adding more characters could extend the separator.

  • This may be useful for Add a decoder-like type for splitting incrementally-received text #10.

  • The methods should probably return Option<PartialMatch>, where PartialMatch has FullMatch {start: usize, end: usize} and PotentialStartOfLongerMatch(usize) variants (All names not final)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request thereforunder considerationDev has not yet decided whether or how to implement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions