nzsc_core 0.2.0

The Official (Experimental) NZSC Core Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub fn lowercase_no_whitespace(s: &str) -> String {
    let bytes = s.as_bytes();
    let mut s = String::new();

    for &byte in bytes.iter() {
        let c = byte as char;

        if !c.is_whitespace() {
            s.push(c);
        }
    }

    s.to_lowercase()
}