1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 17:55:06 +00:00
serenity/Userland/Libraries/LibUnicode
Timothy Flynn 4f2bcebe74 LibUnicode+LibJS: Store locale keyword values as a single string
Previously, LibUnicode would store the values of a keyword as a Vector.
For example, the locale "en-u-ca-abc-def" would have its keyword "ca"
stored as {"abc, "def"}. Then, canonicalization would occur on each of
the elements in that Vector.

This is incorrect because, for example, the keyword value "true" should
only be dropped if that is the entire value. That is, the canonical form
of "en-u-kb-true" is "en-u-kb", but "en-u-kb-abc-true" does not change
for canonicalization. However, we would canonicalize that locale as
"en-u-kb-abc".
2021-09-08 21:08:48 +01:00
..
CharacterTypes.cpp LibUnicode: Implement locale-aware BEFORE_DOT special casing 2021-09-06 15:24:27 +01:00
CharacterTypes.h LibUnicode: Implement locale-aware AFTER_I special casing 2021-09-06 15:24:27 +01:00
CMakeLists.txt Meta+LibUnicode: Move unicode_data helper to Meta/CMake 2021-08-28 08:44:17 +01:00
Forward.h LibUnicode: Parse and generate the Unicode locale list patterns dataset 2021-09-06 23:49:56 +01:00
Locale.cpp LibUnicode+LibJS: Store locale keyword values as a single string 2021-09-08 21:08:48 +01:00
Locale.h LibUnicode+LibJS: Store locale keyword values as a single string 2021-09-08 21:08:48 +01:00