mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibUnicode: Generate an implementation of the Add Likely Subtags method
This commit is contained in:
parent
28ae63177e
commit
e6a2ab1202
Notes:
sideshowbarker
2024-07-18 04:47:34 +09:00
Author: https://github.com/trflynn89
Commit: e6a2ab1202
Pull-request: https://github.com/SerenityOS/serenity/pull/9770
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
3 changed files with 36 additions and 3 deletions
|
@ -834,6 +834,15 @@ Optional<StringView> resolve_subdivision_alias(StringView subdivision)
|
|||
#endif
|
||||
}
|
||||
|
||||
Optional<LanguageID> add_likely_subtags([[maybe_unused]] LanguageID const& language_id)
|
||||
{
|
||||
#if ENABLE_UNICODE_DATA
|
||||
return Detail::add_likely_subtags(language_id);
|
||||
#else
|
||||
return {};
|
||||
#endif
|
||||
}
|
||||
|
||||
String resolve_most_likely_territory([[maybe_unused]] LanguageID const& language_id, StringView territory_alias)
|
||||
{
|
||||
auto aliases = territory_alias.split_view(' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue