3 releases (breaking)

0.3.0 Sep 6, 2021
0.2.0 May 10, 2021
0.1.0 Jan 14, 2020

#1592 in Parser implementations

Download history 2318/week @ 2023-12-13 2476/week @ 2023-12-20 2188/week @ 2023-12-27 4833/week @ 2024-01-03 3952/week @ 2024-01-10 4591/week @ 2024-01-17 4325/week @ 2024-01-24 4150/week @ 2024-01-31 3317/week @ 2024-02-07 2802/week @ 2024-02-14 3873/week @ 2024-02-21 4062/week @ 2024-02-28 4758/week @ 2024-03-06 3425/week @ 2024-03-13 4103/week @ 2024-03-20 3657/week @ 2024-03-27

16,917 downloads per month
Used in 9 crates (4 directly)

MIT/Apache

47KB
794 lines

nom-unicode

Build Status Latest Version Rustc Version 1.31+

Unicode primitive parsing extensions for nom.

Table of Contents

Getting Started

Add nom-unicode to your Cargo.toml:

[dependencies]
nom-unicode = "^0.2"

And get started using nom-unicode:

extern crate nom;
extern crate nom_unicode;

fn alpha0(i: &str) -> nom::IResult<&str, &str> {
    nom_unicode::complete::alpha0(i)
}

fn main() {
    println!("{:?}", alpha0("hello"));
    println!("{:?}", alpha0("erfüllen"));
    println!("{:?}", alpha0("안녕 잘 지내?"));
}

Minimum Standard Required Version

The minimum, standard, required version for nom-unicode will be the same as nom. As of nom-6, it is currently 1.43.0.

License

Nom-Unicode is dual licensed under the Apache 2.0 license as well as the MIT license. See the LICENCE-MIT and the LICENCE-APACHE files for the licenses.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in nom-unicode by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1MB
~17K SLoC