diff --git a/Cargo.lock b/Cargo.lock index b77b021..898e689 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -200,13 +200,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" -[[package]] -name = "intl-locale" -version = "0.1.0" -dependencies = [ - "criterion", -] - [[package]] name = "is-terminal" version = "0.4.10" @@ -468,6 +461,13 @@ version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +[[package]] +name = "unicode-locale-parser" +version = "0.1.0" +dependencies = [ + "criterion", +] + [[package]] name = "walkdir" version = "2.4.0" diff --git a/Cargo.toml b/Cargo.toml index c8827f0..9c35f2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "intl-locale" +name = "unicode-locale-parser" version = "0.1.0" edition = "2021" diff --git a/README.md b/README.md index 23ba330..a528109 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# intl-locale +# unicode-locale-parser This crate for [Unicode Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_locale_identifier) parser. diff --git a/benches/parse_language_id.rs b/benches/parse_language_id.rs index 8d34c72..9fc1dba 100644 --- a/benches/parse_language_id.rs +++ b/benches/parse_language_id.rs @@ -1,5 +1,5 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion}; -use intl_locale::parse_unicode_language_id; +use unicode_locale_parser::parse_language_id; fn language_identifier_parser_bench(c: &mut Criterion) { let strings = [ @@ -31,7 +31,7 @@ fn language_identifier_parser_bench(c: &mut Criterion) { |b| { b.iter(|| { for s in strings { - let _ = parse_unicode_language_id(black_box(s)); + let _ = parse_language_id(black_box(s)); } }) }, diff --git a/benches/parse_locale_id.rs b/benches/parse_locale_id.rs index b1dd18e..7fd1fcd 100644 --- a/benches/parse_locale_id.rs +++ b/benches/parse_locale_id.rs @@ -1,5 +1,5 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion}; -use intl_locale::parse_unicode_locale_id; +use unicode_locale_parser::parse_locale_id; fn locale_identifier_parser_bench(c: &mut Criterion) { let strings = [ @@ -31,7 +31,7 @@ fn locale_identifier_parser_bench(c: &mut Criterion) { |b| { b.iter(|| { for s in strings { - let _ = parse_unicode_locale_id(black_box(s)); + let _ = parse_locale_id(black_box(s)); } }) }, diff --git a/src/lib.rs b/src/lib.rs index e3e50f1..2fd6486 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,7 +17,9 @@ pub use crate::extensions::pu::PuExtensions; pub use crate::extensions::transformed::TransformedExtensions; pub use crate::extensions::unicode_locale::UnicodeLocaleExtensions; pub use crate::extensions::Extensions; -pub use crate::lang::{parse_unicode_language_id, UnicodeLanguageIdentifier}; -pub use crate::locale::{parse_unicode_locale_id, UnicodeLocaleIdentifier}; -pub use crate::measure::{parse_unicode_measure_unit, UnicodeMeasureUnit}; -pub use crate::subdivision::{parse_unicode_subdivision_id, UnicodeSubdivisionIdentifier}; +pub use crate::lang::{parse_unicode_language_id as parse_language_id, UnicodeLanguageIdentifier}; +pub use crate::locale::{parse_unicode_locale_id as parse_locale_id, UnicodeLocaleIdentifier}; +pub use crate::measure::{parse_unicode_measure_unit as parse_measure_unit, UnicodeMeasureUnit}; +pub use crate::subdivision::{ + parse_unicode_subdivision_id as parse_subdivision_id, UnicodeSubdivisionIdentifier, +};