1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 23:12:08 +00:00

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
parent ca77a7c573
commit 0f02def3c2
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
}
}