This crate provides the StartsWithCaseless
trait and the EndsWithCaseless
trait to extend types which implement AsRef<str>
in order to do starts_with
and ends_with
case-insensitively.
```rust extern crate startsendswith_caseless;
use startsendswith_caseless::StartsWithCaseless;
asserteq!(true, "foobar".startswithcaselessascii("FoO"));
asserteq!(true, "Maße 123".startswith_caseless("MASSE")); ```
```rust extern crate startsendswith_caseless;
use startsendswith_caseless::EndsWithCaseless;
asserteq!(true, "foobar".endswithcaselessascii("BaR"));
asserteq!(true, "123 Maße".endswith_caseless("MASSE")); ```
https://crates.io/crates/starts-ends-with-caseless
https://docs.rs/starts-ends-with-caseless