1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:58:11 +00:00

LibUnicode: Add public wrapper for the generated locale_from_string

This commit is contained in:
Timothy Flynn 2021-09-05 12:16:35 -04:00 committed by Linus Groh
parent 91db61ae8d
commit 12ae0a44d7
2 changed files with 10 additions and 0 deletions

View file

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