mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +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:
parent
230b133ee3
commit
be69eae651
Notes:
sideshowbarker
2024-07-18 01:15:10 +09:00
Author: https://github.com/trflynn89
Commit: be69eae651
Pull-request: https://github.com/SerenityOS/serenity/pull/10873
Reviewed-by: https://github.com/linusg
2 changed files with 12 additions and 1 deletions
|
@ -103,6 +103,7 @@ struct NumberFormat {
|
|||
};
|
||||
|
||||
u8 magnitude { 0 };
|
||||
u8 compact_scale { 0 };
|
||||
Plurality plurality { Plurality::Other };
|
||||
StringView zero_format {};
|
||||
StringView positive_format {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue