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

#1066 in Parser implementations

Download history 8028/week @ 2025-07-28 7904/week @ 2025-08-04 11417/week @ 2025-08-11 8889/week @ 2025-08-18 9549/week @ 2025-08-25 7450/week @ 2025-09-01 7291/week @ 2025-09-08 8518/week @ 2025-09-15 8492/week @ 2025-09-22 9899/week @ 2025-09-29 8550/week @ 2025-10-06 10226/week @ 2025-10-13 9398/week @ 2025-10-20 9769/week @ 2025-10-27 9349/week @ 2025-11-03 7924/week @ 2025-11-10

36,688 downloads per month
Used in 12 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
~16K SLoC