LibUnicode: Generate per-locale text layout information

Currently contains just each locale's character order, but is set up to
easily add other text layout fields from the CLDR if ECMA-402 eventually
requires them.
This commit is contained in:
Timothy Flynn 2022-07-05 19:40:40 -04:00 committed by Linus Groh
commit 4868b888be
Notes: sideshowbarker 2024-07-17 09:38:53 +09:00
4 changed files with 105 additions and 0 deletions

View file

@ -183,6 +183,10 @@ Optional<StringView> get_locale_narrow_date_field_mapping(StringView locale, Str
Optional<ListPatterns> get_locale_list_patterns(StringView locale, StringView type, Style style);
Optional<CharacterOrder> character_order_from_string(StringView character_order);
StringView character_order_to_string(CharacterOrder character_order);
Optional<CharacterOrder> character_order_for_locale(StringView locale);
Optional<StringView> resolve_language_alias(StringView language);
Optional<StringView> resolve_territory_alias(StringView territory);
Optional<StringView> resolve_script_tag_alias(StringView script_tag);