The parser for Unicode Locale Identifiers
All code implements of Unicode UTS #35 Language and Locale Identifiers.
use unicode_locale_parser::parse_locale_id;
fn main() {
// simple language
let locale = parse_locale_id("ja-JP");
println!("{:#?}", locale);
// language & unicode locale extension
let locale = parse_locale_id("de-Latn-DE-u-ca-buddhist");
println!("{:#?}", locale);
}
parse_locale_id
: parseunicode_locale_id
parse_language_id
: parseunicode_language_id
parse_subdivision_id
: parseunicode_subdivision_id
parse_measure_unit
: parseunicode_measure_unit
- Locale Id Canonicalization
- Split some packages with Cargo workspace
- Performance
- should optimize for string processor with using like
TinyStr
- should optimize for string processor with using like
- Add more convenient manipulation API for Locale
- Some Trait implementation
Eq
,Clone
,Default
,Hash
,PartialOrd
andOrd