1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

LibUnicode: Generate complex Unicode locale alias matching

Most alias substitutions are "simple", meaning that alias matching is
done by examining a single locale subtag. However, there are a handful
of "complex" aliases where matching is done by examining multiple
subtags. For example, the variant subtag "lojban" causes the locale
"art-lojban" to be canonicalized to "jbo", but only when the language
subtag is "art" (i.e. this should not occur for the locale "en-lojban").

This generates a method to perform complex alias matching.
This commit is contained in:
Timothy Flynn 2021-08-31 10:03:49 -04:00 committed by Linus Groh
parent da89cf9afb
commit 9ae7ac4c87
2 changed files with 101 additions and 5 deletions

View file

@ -19,6 +19,7 @@ enum class Script : u8;
enum class Territory : u8;
enum class WordBreakProperty : u8;
struct LanguageID;
struct SpecialCasing;
struct UnicodeData;