ladybird/Tests/LibUnicode
Timothy Flynn 556374a904 LibUnicode: Substitute Unicode locale aliases during canonicalization
Unicode TR35 defines how locale subtag aliases should be emplaced when
converting a locale to canonical form. For most subtags, it is a simple
substitution. Language subtags depend on context; for example, the
language "sh" should become "sr-Latn", but if the original locale has a
script subtag already ("sh-Cyrl"), then only the language subtag of the
alias should be taken ("sr-Latn").

To facilitate this, we now make two passes when canonicalizing a locale.
In the first pass, we convert the LocaleID structure to canonical syntax
(where the conversions all happen in-place). In the second pass, we form
the canonical string based on the canonical syntax.
2021-09-01 14:14:47 +01:00
..
CMakeLists.txt LibUnicode: Introduce a Unicode library for interacting with UCD files 2021-07-26 17:03:55 +01:00
TestUnicodeCharacterTypes.cpp LibUnicode: Handle edge-case script extensions, Common and Inherited 2021-08-11 13:11:01 +02:00
TestUnicodeLocale.cpp LibUnicode: Substitute Unicode locale aliases during canonicalization 2021-09-01 14:14:47 +01:00