We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ef368 commit 2600db4Copy full SHA for 2600db4
src/libcore/str.rs
@@ -880,6 +880,8 @@ fn rindex(ss: str, cc: char) -> option<uint> {
880
//
881
// Find the char position of the first instance of one string
882
// within another, or return option::none
883
+//
884
+// FIXME: Boyer-Moore should be significantly faster
885
fn find_bytes(haystack: str, needle: str) -> option<uint> {
886
let haystack_len = len_bytes(haystack);
887
let needle_len = len_bytes(needle);
0 commit comments