4 releases (breaking)

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

#137 in Text processing

Download history 3569/week @ 2025-02-10 3027/week @ 2025-02-17 4107/week @ 2025-02-24 3268/week @ 2025-03-03 2550/week @ 2025-03-10 2281/week @ 2025-03-17 2759/week @ 2025-03-24 3686/week @ 2025-03-31 3953/week @ 2025-04-07 3554/week @ 2025-04-14 3222/week @ 2025-04-21 3718/week @ 2025-04-28 5455/week @ 2025-05-05 6299/week @ 2025-05-12 9790/week @ 2025-05-19 8795/week @ 2025-05-26

30,416 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.4"

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-8, it is currently 1.65.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