1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 21:38:11 +00:00

LibUnicode: Move GenerateUnicodeData's Alias struct to generator header

This will be used for locale aliases as well. Also rename the "property"
field in this struct to "name", as it no longer is only used for
property aliases.
This commit is contained in:
Timothy Flynn 2021-11-17 08:14:56 -05:00 committed by Andreas Kling
parent 186e1b7624
commit 9d1519e21c
2 changed files with 7 additions and 8 deletions

View file

@ -91,6 +91,11 @@ private:
HashMap<StringView, StringIndexType> m_unique_string_indices;
};
struct Alias {
String name;
String alias;
};
template<typename StringIndexType>
struct CanonicalLanguageID {
static Optional<CanonicalLanguageID> parse(UniqueStringStorage<StringIndexType>& unique_strings, StringView language)