1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

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.
This commit is contained in:
Timothy Flynn 2021-11-10 10:16:57 -05:00 committed by Linus Groh
parent 230b133ee3
commit be69eae651
2 changed files with 12 additions and 1 deletions

View file

@ -103,6 +103,7 @@ struct NumberFormat {
};
u8 magnitude { 0 };
u8 compact_scale { 0 };
Plurality plurality { Plurality::Other };
StringView zero_format {};
StringView positive_format {};