-
Notifications
You must be signed in to change notification settings - Fork 44
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
stri_locate_all_fixed(), stri_locate_first_fixed(), stri_locate_last_fixed() #12
Comments
to determine which one do we expect In other words, do |
Very good question. Maybe we should use the ICU API for all stri_____fixed - http://www.icu-project.org/apiref/icu4c/usearch_8h.html#details There are many useful options, also locale-dependent The algorithm you use has the worst-time complexity of O(nk) (n - str len, k - patt len), modified Boyer-Moore (http://icu-project.org/docs/papers/efficient_text_searching_in_java.html) has the same complexity, but may yet be faster in practice. What do you think? Well, we should probably rely on ICU wherever it's possible |
Indeed, sometimes it might be much more slower. |
Something's wrong:
Moreover, I think that |
done in commit 524f4e4 |
TO DO: use collator_opts |
all functions DONE :) Closing. |
Nope, sorry, stri__locate_*_fixed_byte should use StriContainerUTF8, just like *_detect_byte does... 🎱 |
DONE |
Find all/first/last position of a occurence of substr in str (vectorized over str and substr)
The text was updated successfully, but these errors were encountered: