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

LibUnicode: Parse Unicode CLDR languages and generate locale mappings

This commit is contained in:
Timothy Flynn 2021-08-26 08:17:01 -04:00 committed by Linus Groh
parent 6719e5cb17
commit ab7a1dd89e
3 changed files with 39 additions and 0 deletions

View file

@ -168,6 +168,15 @@ bool is_locale_available([[maybe_unused]] StringView locale)
#endif
}
Optional<StringView> get_locale_language_mapping([[maybe_unused]] StringView locale, [[maybe_unused]] StringView language)
{
#if ENABLE_UNICODE_DATA
return Detail::get_locale_language_mapping(locale, language);
#else
return {};
#endif
}
Optional<StringView> get_locale_territory_mapping([[maybe_unused]] StringView locale, [[maybe_unused]] StringView territory)
{
#if ENABLE_UNICODE_DATA