1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibUnicode: Parse compact identifiers and replace them with a format key

For example, in en-US, the decimal, long compact pattern for numbers
between 10,000 and 100,000 is "00 thousand". In that pattern, "thousand"
is the compact identifier, and the generated format pattern is now
"{number} {compactIdentifier}". This also generates that identifier as
its own field in the NumberFormat structure.
This commit is contained in:
Timothy Flynn 2021-11-15 07:42:39 -05:00 committed by Linus Groh
parent 1533123263
commit 48d5684780
2 changed files with 54 additions and 8 deletions

View file

@ -122,6 +122,7 @@ struct NumberFormat {
StringView zero_format {};
StringView positive_format {};
StringView negative_format {};
StringView compact_identifier {};
};
struct ListPatterns {