LibUnicode: Parse Unicode CLDR currencies and generate locale mappings

This commit is contained in:
Timothy Flynn 2021-08-26 08:38:54 -04:00 committed by Linus Groh
commit 8b93d51212
Notes: sideshowbarker 2024-07-18 05:13:40 +09:00
3 changed files with 70 additions and 9 deletions

View file

@ -195,4 +195,13 @@ Optional<StringView> get_locale_script_mapping([[maybe_unused]] StringView local
#endif
}
Optional<StringView> get_locale_currency_mapping([[maybe_unused]] StringView locale, [[maybe_unused]] StringView currency)
{
#if ENABLE_UNICODE_DATA
return Detail::get_locale_currency_mapping(locale, currency);
#else
return {};
#endif
}
}