diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-11-10 10:16:57 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-12 09:17:08 +0000 |
commit | be69eae651abf0cc3e9cd0906f9586fdfbfb68ef (patch) | |
tree | 00d1333fa82b6fc2dbbe4541b45ca38b2be2954f /Userland/Libraries/LibUnicode | |
parent | 230b133ee34b1608bb5806204b05d5ac8e9420af (diff) | |
download | serenity-be69eae651abf0cc3e9cd0906f9586fdfbfb68ef.zip |
LibUnicode: Precompute the compact scale of each number formatting rule
This will be needed for the ComputeExponentForMagnitude AO for compact
formatting, namely step 5b:
Let exponent be an implementation- and locale-dependent (ILD) integer
by which to scale a number of the given magnitude in compact notation
for the current locale.
Diffstat (limited to 'Userland/Libraries/LibUnicode')
-rw-r--r-- | Userland/Libraries/LibUnicode/Locale.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibUnicode/Locale.h b/Userland/Libraries/LibUnicode/Locale.h index 375827a526..3c53705a1a 100644 --- a/Userland/Libraries/LibUnicode/Locale.h +++ b/Userland/Libraries/LibUnicode/Locale.h @@ -103,6 +103,7 @@ struct NumberFormat { }; u8 magnitude { 0 }; + u8 compact_scale { 0 }; Plurality plurality { Plurality::Other }; StringView zero_format {}; StringView positive_format {}; |