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

FilteringAutomatonMatcher to support simple look-ahead / look-behind. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bruno-roustant
Copy link

  • New FilteringAutomatonMatcher which uses pre-filter and/or post-filter to accept or reject match results found by AutomatonMatcher.find().
  • New AutomatonMatcher.setSearchStart() to set the start index of the next find().
  • CharLookAhead and CharLookBehind to provide single char look-ahead / look-behind.
  • MatchFilter and CharFilter interfaces to allow extensions of the filtering.
  • AutomatonMatcher refactored and up to 20% faster when searching a char sequence with 0 or 1 match, same speed for more matches.

- New FilteringAutomatonMatcher which uses pre-filter and/or post-filter to accept or reject match results found by AutomatonMatcher.find().
- New AutomatonMatcher.setSearchStart() to set the start index of the next find().
- CharLookAhead and CharLookBehind to provide single char look-ahead / look-behind.
- MatchFilter and CharFilter interfaces to allow extensions of the filtering.
- AutomatonMatcher refactored and up to 20% faster when searching a char sequence with 0 or 1 match, same speed for more matches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant