Returns a string representation of the LanguageIdentifier
part of ICU4XLocale
.
See the Rust documentation for id
for more information.
Clones the ICU4XLocale
.
See the Rust documentation for Locale
for more information.
Returns a string representation of the unicode extension.
See the Rust documentation for extensions
for more information.
Returns a string representation of ICU4XLocale
language.
See the Rust documentation for id
for more information.
See the Rust documentation for normalizing_eq
for more information.
Returns a string representation of ICU4XLocale
region.
See the Rust documentation for id
for more information.
Returns a string representation of ICU4XLocale
script.
See the Rust documentation for id
for more information.
Set the language part of the ICU4XLocale
.
See the Rust documentation for try_from_str
for more information.
Set the region part of the ICU4XLocale
.
See the Rust documentation for try_from_str
for more information.
Set the script part of the ICU4XLocale
. Pass an empty string to remove the script.
See the Rust documentation for try_from_str
for more information.
See the Rust documentation for strict_cmp
for more information.
Returns a string representation of ICU4XLocale
.
See the Rust documentation for write_to
for more information.
See the Rust documentation for total_cmp
for more information.
Static
canonicalizeBest effort locale canonicalizer that doesn't need any data
Use ICU4XLocaleCanonicalizer for better control and functionality
See the Rust documentation for canonicalize
for more information.
Static
create_Construct an ICU4XLocale
from an locale identifier.
This will run the complete locale parsing algorithm. If code size and performance are critical and the locale is of a known shape (such as aa-BB
) use create_und
, set_language
, set_script
, and set_region
.
See the Rust documentation for try_from_str
for more information.
Static
create_Construct a default undefined ICU4XLocale
"und".
See the Rust documentation for UND
for more information.
An ICU4X Locale, capable of representing strings like
"en-US"
.See the Rust documentation for
Locale
for more information.