Crate icu_locale

Source
Expand description

This crate is the future location of the contents of icu_locid and icu_locid_transform for ICU4X 2.0 (slated for mid-2024).

It currently reexports icu_locid.

Modules§

extensions
Unicode Extensions provide a mechanism to extend the LanguageIdentifier with additional bits of information - a combination of a LanguageIdentifier and Extensions is called Locale.
subtags
Language Identifier and Locale contains a set of subtags which represent different fields of the structure.
zerovec
Documentation on zero-copy deserialization of locale types.

Macros§

langid
A macro allowing for compile-time construction of valid LanguageIdentifiers.
locale
A macro allowing for compile-time construction of valid Locales.

Structs§

LanguageIdentifier
A core struct representing a Unicode BCP47 Language Identifier.
Locale
A core struct representing a Unicode Locale Identifier.

Enums§

Error
List of parser errors that can be generated while parsing LanguageIdentifier, Locale, subtags or extensions.
ParserError
List of parser errors that can be generated while parsing LanguageIdentifier, Locale, subtags or extensions.
SubtagOrderingResultDeprecated
The result of a subtag iterator comparison operation.