mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +00:00
LibJS: Implement Intl.NumberFormat.prototype.formatToParts
This commit is contained in:
parent
40973814e9
commit
3450def494
Notes:
sideshowbarker
2024-07-18 01:10:54 +09:00
Author: https://github.com/trflynn89
Commit: 3450def494
Pull-request: https://github.com/SerenityOS/serenity/pull/10908
Reviewed-by: https://github.com/linusg ✅
5 changed files with 975 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue