3 releases (breaking)

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

#2060 in Parser implementations

Download history 2861/week @ 2024-07-20 3193/week @ 2024-07-27 2915/week @ 2024-08-03 3282/week @ 2024-08-10 2716/week @ 2024-08-17 3018/week @ 2024-08-24 2954/week @ 2024-08-31 3440/week @ 2024-09-07 3176/week @ 2024-09-14 3721/week @ 2024-09-21 4612/week @ 2024-09-28 3174/week @ 2024-10-05 3451/week @ 2024-10-12 4262/week @ 2024-10-19 4329/week @ 2024-10-26 4101/week @ 2024-11-02

16,583 downloads per month
Used in 11 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
~19K SLoC