Skip to content

Conversation

b6k-dev
Copy link
Contributor

@b6k-dev b6k-dev commented May 26, 2025

Closes #172

Demo:

2025-05-26.21-08-44.mp4

This pr introduces a fallback Boyer–Moore–Horspool algorithm used for searching the buffer when the ICU library fails to load.

The implementation is working, however since I'm still getting used to writing rust and the time I can devote is quite limited the code probably needs some polishing (maybe better structuring is needed to reuse as much as possible between the ICU and non-ICU search operations).
Anyways I guess it is a good foundation to iterate on.

@lhecker
Copy link
Member

lhecker commented May 26, 2025

The implementation is working, however since I'm still getting used to writing rust

Meanwhile you delivered two of the most outstanding PRs this project has received so far. Don't get impostor syndrome! 😅

FYI: I'll try to first review and merge #255 before merging this PR, unless you'd like to prioritize this PR.

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.

Linux: This operation requires the ICU library
2 participants