mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibUnicode: Parse locale extensions of the transformed extension form
This commit is contained in:
parent
eda92d15e4
commit
d2d304fcf8
3 changed files with 176 additions and 2 deletions
|
@ -33,7 +33,17 @@ struct LocaleExtension {
|
|||
Vector<Keyword> keywords {};
|
||||
};
|
||||
|
||||
using Extension = Variant<LocaleExtension>;
|
||||
struct TransformedField {
|
||||
StringView key;
|
||||
Vector<StringView> values {};
|
||||
};
|
||||
|
||||
struct TransformedExtension {
|
||||
Optional<LanguageID> language {};
|
||||
Vector<TransformedField> fields {};
|
||||
};
|
||||
|
||||
using Extension = Variant<LocaleExtension, TransformedExtension>;
|
||||
|
||||
struct LocaleID {
|
||||
LanguageID language_id {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue