1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibUnicode: Generate Unicode locale alias data

CLDR contains a set of aliases for languages, territories, etc. that no
longer are meant to be used (e.g. due to deprecation). For example, the
language "aam" is deprecated and should be canonicalized as "aas".
This commit is contained in:
Timothy Flynn 2021-08-30 14:56:23 -04:00 committed by Linus Groh
parent d13142f015
commit 9b118f1f06
3 changed files with 132 additions and 2 deletions

View file

@ -75,4 +75,10 @@ Optional<StringView> get_locale_territory_mapping(StringView locale, StringView
Optional<StringView> get_locale_script_mapping(StringView locale, StringView script);
Optional<StringView> get_locale_currency_mapping(StringView locale, StringView currency);
Optional<StringView> resolve_language_alias(StringView language);
Optional<StringView> resolve_territory_alias(StringView territory);
Optional<StringView> resolve_script_tag_alias(StringView script_tag);
Optional<StringView> resolve_variant_alias(StringView variant);
Optional<StringView> resolve_subdivision_alias(StringView subdivision);
}