v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::JSNumberFormat Class Reference

#include <js-number-format.h>

Inheritance diagram for v8::internal::JSNumberFormat:
Collaboration diagram for v8::internal::JSNumberFormat:

Public Types

enum class  ShowTrailingZeros { kShow , kHide }
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSNumberFormatNew (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options, const char *service)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSNumberFormatUnwrapNumberFormat (Isolate *isolate, DirectHandle< JSReceiver > format_holder)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringNumberFormatFunction (Isolate *isolate, DirectHandle< JSNumberFormat > number_format, Handle< Object > numeric_obj)
 
static DirectHandle< JSObjectResolvedOptions (Isolate *isolate, DirectHandle< JSNumberFormat > number_format)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSArrayFormatToParts (Isolate *isolate, DirectHandle< JSNumberFormat > number_format, Handle< Object > numeric_obj)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringFormatNumericRange (Isolate *isolate, DirectHandle< JSNumberFormat > number_format, Handle< Object > x, Handle< Object > y)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSArrayFormatNumericRangeToParts (Isolate *isolate, DirectHandle< JSNumberFormat > number_format, Handle< Object > x, Handle< Object > y)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringFormatNumeric (Isolate *isolate, const icu::number::LocalizedNumberFormatter &number_format, Handle< Object > numeric_obj)
 
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales ()
 
static int32_t MinimumIntegerDigitsFromSkeleton (const icu::UnicodeString &skeleton)
 
static bool FractionDigitsFromSkeleton (const icu::UnicodeString &skeleton, int32_t *minimum, int32_t *maximum)
 
static bool SignificantDigitsFromSkeleton (const icu::UnicodeString &skeleton, int32_t *minimum, int32_t *maximum)
 
static DirectHandle< StringRoundingModeString (Isolate *isolate, const icu::UnicodeString &skeleton)
 
static DirectHandle< StringRoundingPriorityString (Isolate *isolate, const icu::UnicodeString &skeleton)
 
static DirectHandle< StringTrailingZeroDisplayString (Isolate *isolate, const icu::UnicodeString &skeleton)
 
static DirectHandle< ObjectRoundingIncrement (Isolate *isolate, const icu::UnicodeString &skeleton)
 
static icu::number::UnlocalizedNumberFormatter SetDigitOptionsToFormatter (const icu::number::UnlocalizedNumberFormatter &settings, const Intl::NumberFormatDigitOptions &digit_options)
 
static const icu::UnicodeString NumberingSystemFromSkeleton (const icu::UnicodeString &skeleton)
 
static V8_WARN_UNUSED_RESULT Maybe< icu::number::LocalizedNumberRangeFormatter > GetRangeFormatter (Isolate *isolate, Tagged< String > locale, const icu::number::LocalizedNumberFormatter &number_formatter)
 

Detailed Description

Definition at line 42 of file js-number-format.h.

Member Enumeration Documentation

◆ ShowTrailingZeros

Enumerator
kShow 
kHide 

Definition at line 102 of file js-number-format.h.

Member Function Documentation

◆ FormatNumeric()

MaybeDirectHandle< String > v8::internal::JSNumberFormat::FormatNumeric ( Isolate * isolate,
const icu::number::LocalizedNumberFormatter & number_format,
Handle< Object > numeric_obj )
static

Definition at line 2118 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FormatNumericRange()

MaybeDirectHandle< String > v8::internal::JSNumberFormat::FormatNumericRange ( Isolate * isolate,
DirectHandle< JSNumberFormat > number_format,
Handle< Object > x,
Handle< Object > y )
static

Definition at line 2175 of file js-number-format.cc.

◆ FormatNumericRangeToParts()

MaybeDirectHandle< JSArray > v8::internal::JSNumberFormat::FormatNumericRangeToParts ( Isolate * isolate,
DirectHandle< JSNumberFormat > number_format,
Handle< Object > x,
Handle< Object > y )
static

Definition at line 2183 of file js-number-format.cc.

◆ FormatToParts()

MaybeDirectHandle< JSArray > v8::internal::JSNumberFormat::FormatToParts ( Isolate * isolate,
DirectHandle< JSNumberFormat > number_format,
Handle< Object > numeric_obj )
static

Definition at line 2153 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FractionDigitsFromSkeleton()

bool v8::internal::JSNumberFormat::FractionDigitsFromSkeleton ( const icu::UnicodeString & skeleton,
int32_t * minimum,
int32_t * maximum )
static

Definition at line 705 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAvailableLocales()

const std::set< std::string > & v8::internal::JSNumberFormat::GetAvailableLocales ( )
static

Definition at line 2200 of file js-number-format.cc.

Here is the caller graph for this function:

◆ GetRangeFormatter()

Maybe< icu::number::LocalizedNumberRangeFormatter > v8::internal::JSNumberFormat::GetRangeFormatter ( Isolate * isolate,
Tagged< String > locale,
const icu::number::LocalizedNumberFormatter & number_formatter )
static

Definition at line 2099 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MinimumIntegerDigitsFromSkeleton()

int32_t v8::internal::JSNumberFormat::MinimumIntegerDigitsFromSkeleton ( const icu::UnicodeString & skeleton)
static

Definition at line 674 of file js-number-format.cc.

Here is the caller graph for this function:

◆ New()

MaybeDirectHandle< JSNumberFormat > v8::internal::JSNumberFormat::New ( Isolate * isolate,
DirectHandle< Map > map,
DirectHandle< Object > locales,
DirectHandle< Object > options,
const char * service )
static

Definition at line 1070 of file js-number-format.cc.

Here is the call graph for this function:

◆ NumberFormatFunction()

MaybeDirectHandle< String > v8::internal::JSNumberFormat::NumberFormatFunction ( Isolate * isolate,
DirectHandle< JSNumberFormat > number_format,
Handle< Object > numeric_obj )
static

Definition at line 2130 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NumberingSystemFromSkeleton()

const icu::UnicodeString v8::internal::JSNumberFormat::NumberingSystemFromSkeleton ( const icu::UnicodeString & skeleton)
static

Definition at line 435 of file js-number-format.cc.

Here is the caller graph for this function:

◆ ResolvedOptions()

DirectHandle< JSObject > v8::internal::JSNumberFormat::ResolvedOptions ( Isolate * isolate,
DirectHandle< JSNumberFormat > number_format )
static

Definition at line 880 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RoundingIncrement()

DirectHandle< Object > v8::internal::JSNumberFormat::RoundingIncrement ( Isolate * isolate,
const icu::UnicodeString & skeleton )
static

Definition at line 619 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RoundingModeString()

DirectHandle< String > v8::internal::JSNumberFormat::RoundingModeString ( Isolate * isolate,
const icu::UnicodeString & skeleton )
static

Definition at line 565 of file js-number-format.cc.

Here is the caller graph for this function:

◆ RoundingPriorityString()

DirectHandle< String > v8::internal::JSNumberFormat::RoundingPriorityString ( Isolate * isolate,
const icu::UnicodeString & skeleton )
static

Definition at line 635 of file js-number-format.cc.

Here is the caller graph for this function:

◆ SetDigitOptionsToFormatter()

icu::number::UnlocalizedNumberFormatter v8::internal::JSNumberFormat::SetDigitOptionsToFormatter ( const icu::number::UnlocalizedNumberFormatter & settings,
const Intl::NumberFormatDigitOptions & digit_options )
static

Definition at line 827 of file js-number-format.cc.

Here is the caller graph for this function:

◆ SignificantDigitsFromSkeleton()

bool v8::internal::JSNumberFormat::SignificantDigitsFromSkeleton ( const icu::UnicodeString & skeleton,
int32_t * minimum,
int32_t * maximum )
static

Definition at line 743 of file js-number-format.cc.

Here is the caller graph for this function:

◆ TrailingZeroDisplayString()

DirectHandle< String > v8::internal::JSNumberFormat::TrailingZeroDisplayString ( Isolate * isolate,
const icu::UnicodeString & skeleton )
static

Definition at line 656 of file js-number-format.cc.

Here is the caller graph for this function:

◆ UnwrapNumberFormat()

MaybeDirectHandle< JSNumberFormat > v8::internal::JSNumberFormat::UnwrapNumberFormat ( Isolate * isolate,
DirectHandle< JSReceiver > format_holder )
static

Definition at line 1043 of file js-number-format.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: