mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibUnicode: Parse Unicode CLDR scripts and generate locale mappings
This commit is contained in:
parent
ca77a7c573
commit
0f02def3c2
Notes:
sideshowbarker
2024-07-18 05:13:52 +09:00
Author: https://github.com/trflynn89
Commit: 0f02def3c2
Pull-request: https://github.com/SerenityOS/serenity/pull/9622
Reviewed-by: https://github.com/linusg
3 changed files with 45 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue