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:
parent
6719e5cb17
commit
ab7a1dd89e
3 changed files with 39 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue