Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jwodder opened this issue May 9, 2024 · 0 comments
Labels
enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement

Comments

@jwodder
Copy link
Owner

jwodder commented May 9, 2024

  • 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)

@jwodder jwodder added enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement
Projects
None yet
Development

No branches or pull requests

1 participant