mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
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:
parent
814f13bc2a
commit
4868b888be
Notes:
sideshowbarker
2024-07-17 09:38:53 +09:00
Author: https://github.com/trflynn89
Commit: 4868b888be
Pull-request: https://github.com/SerenityOS/serenity/pull/14501
Reviewed-by: https://github.com/linusg ✅
4 changed files with 105 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue