| Crates.io | nom-unicode |
| lib.rs | nom-unicode |
| version | 0.4.0 |
| created_at | 2020-01-14 22:21:19.478889+00 |
| updated_at | 2025-01-28 03:57:17.125845+00 |
| description | Unicode extensions for Nom. |
| homepage | |
| repository | https://github.com/Alexhuszagh/rust-nom-unicode |
| max_upload_size | |
| id | 198433 |
| size | 59,029 |
Unicode primitive parsing extensions for nom.
Table of Contents
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("안녕 잘 지내?"));
}
The minimum, standard, required version for nom-unicode will be the same as nom. As of nom-8, it is currently 1.65.0.
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.
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.