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

LibJS: Implement Intl.NumberFormat.prototype.formatToParts

This commit is contained in:
Timothy Flynn 2021-11-13 11:33:55 -05:00 committed by Linus Groh
parent 40973814e9
commit 3450def494
5 changed files with 975 additions and 0 deletions

View file

@ -199,6 +199,7 @@ FormatResult format_numeric_to_string(NumberFormat& number_format, double number
Vector<PatternPartition> partition_number_pattern(NumberFormat& number_format, double number);
Vector<PatternPartition> partition_notation_sub_pattern(NumberFormat& number_format, double number, String formatted_string, int exponent);
String format_numeric(NumberFormat& number_format, double number);
Array* format_numeric_to_parts(GlobalObject& global_object, NumberFormat& number_format, double number);
RawFormatResult to_raw_precision(double number, int min_precision, int max_precision);
RawFormatResult to_raw_fixed(double number, int min_fraction, int max_fraction);
ThrowCompletionOr<void> set_number_format_unit_options(GlobalObject& global_object, NumberFormat& intl_object, Object const& options);