diff options
Diffstat (limited to 'Userland/Libraries/LibUnicode/Locale.h')
-rw-r--r-- | Userland/Libraries/LibUnicode/Locale.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibUnicode/Locale.h b/Userland/Libraries/LibUnicode/Locale.h index 0a388fd16e..428d84714b 100644 --- a/Userland/Libraries/LibUnicode/Locale.h +++ b/Userland/Libraries/LibUnicode/Locale.h @@ -78,6 +78,13 @@ struct LocaleID { Vector<String> private_use_extensions {}; }; +struct ListPatterns { + StringView start; + StringView middle; + StringView end; + StringView pair; +}; + // Note: These methods only verify that the provided strings match the EBNF grammar of the // Unicode identifier subtag (i.e. no validation is done that the tags actually exist). constexpr bool is_unicode_language_subtag(StringView subtag) @@ -130,6 +137,7 @@ Optional<StringView> get_locale_language_mapping(StringView locale, StringView l Optional<StringView> get_locale_territory_mapping(StringView locale, StringView territory); Optional<StringView> get_locale_script_mapping(StringView locale, StringView script); Optional<StringView> get_locale_currency_mapping(StringView locale, StringView currency); +Optional<ListPatterns> get_locale_list_patterns(StringView locale, StringView type, StringView style); Optional<StringView> resolve_language_alias(StringView language); Optional<StringView> resolve_territory_alias(StringView territory); |