LibUnicode: Parse Unicode CLDR scripts and generate locale mappings

This commit is contained in:
Timothy Flynn 2021-08-26 08:29:39 -04:00 committed by Linus Groh
commit 0f02def3c2
Notes: sideshowbarker 2024-07-18 05:13:52 +09:00
3 changed files with 45 additions and 0 deletions

View file

@ -186,4 +186,13 @@ Optional<StringView> get_locale_territory_mapping([[maybe_unused]] StringView lo
#endif
}
Optional<StringView> get_locale_script_mapping([[maybe_unused]] StringView locale, [[maybe_unused]] StringView script)
{
#if ENABLE_UNICODE_DATA
return Detail::get_locale_script_tag_mapping(locale, script);
#else
return {};
#endif
}
}