Skip to content

Implement fallback search logic when ICU is unavailable #297

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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