(core::str) added FIXME comment
This commit is contained in:
parent
07ef368c60
commit
2600db4778
1 changed files with 2 additions and 0 deletions
|
@ -880,6 +880,8 @@ fn rindex(ss: str, cc: char) -> option<uint> {
|
||||||
//
|
//
|
||||||
// Find the char position of the first instance of one string
|
// Find the char position of the first instance of one string
|
||||||
// within another, or return option::none
|
// within another, or return option::none
|
||||||
|
//
|
||||||
|
// FIXME: Boyer-Moore should be significantly faster
|
||||||
fn find_bytes(haystack: str, needle: str) -> option<uint> {
|
fn find_bytes(haystack: str, needle: str) -> option<uint> {
|
||||||
let haystack_len = len_bytes(haystack);
|
let haystack_len = len_bytes(haystack);
|
||||||
let needle_len = len_bytes(needle);
|
let needle_len = len_bytes(needle);
|
||||||
|
|
Loading…
Reference in a new issue