Skip to content

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

Open
bruno-roustant wants to merge 1 commit into
cs-au-dk:masterfrom
bruno-roustant:master
Open

FilteringAutomatonMatcher to support simple look-ahead / look-behind.#8
bruno-roustant wants to merge 1 commit into
cs-au-dk:masterfrom
bruno-roustant:master

Conversation

@bruno-roustant

Copy link
Copy Markdown
  • 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