3 releases (breaking)

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

#1140 in Parser implementations

Download history 3314/week @ 2024-03-14 4322/week @ 2024-03-21 4281/week @ 2024-03-28 4354/week @ 2024-04-04 4567/week @ 2024-04-11 3793/week @ 2024-04-18 2689/week @ 2024-04-25 3857/week @ 2024-05-02 4336/week @ 2024-05-09 5414/week @ 2024-05-16 3801/week @ 2024-05-23 4636/week @ 2024-05-30 3761/week @ 2024-06-06 3365/week @ 2024-06-13 4083/week @ 2024-06-20 2633/week @ 2024-06-27

14,928 downloads per month
Used in 10 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
~20K SLoC