mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibUnicode: Generate an implementation of the Add Likely Subtags method
This commit is contained in:
parent
28ae63177e
commit
e6a2ab1202
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