From be69eae651abf0cc3e9cd0906f9586fdfbfb68ef Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 10 Nov 2021 10:16:57 -0500 Subject: 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. --- Userland/Libraries/LibUnicode/Locale.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries/LibUnicode') 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 {}; -- cgit v1.2.3