A safe highly optimised alternative to libc
This library provides optimised functions for the purpose of searching wide character slices.
use wchar::wch; use wmemchr::wmemchr; let needle = wch!('w'); let haystack = wch!("Hello world!"); assert_eq!(wmemchr(needle, haystack), Some(6));
Pure Rust platform independent implementation designed for speed.
A naive implementation.
A trait for wide character types.
Returns the index of the first occurrence of a wide character in a slice,