simdutf 0.7.0

Unicode validation and transcoding at billions of characters per second
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn ascii() {
    let cases: &[&[u8]] = &[
        "hello".as_bytes(),  //
        &[0xff, 0xff, 0xff], //
    ];

    for s in cases {
        let output = simdutf::validate_ascii(s);
        let expected = s.is_ascii();
        assert_eq!(output, expected);
    }
}