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

#include <js-plural-rules.h>

Inheritance diagram for v8::internal::JSPluralRules:
Collaboration diagram for v8::internal::JSPluralRules:

Public Types

enum class  Type { CARDINAL , ORDINAL }
 

Public Member Functions

void set_type (Type type)
 
Type type () const
 
Handle< StringTypeAsString (Isolate *isolate) const
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSPluralRulesNew (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options)
 
static DirectHandle< JSObjectResolvedOptions (Isolate *isolate, DirectHandle< JSPluralRules > plural_rules)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringResolvePlural (Isolate *isolate, DirectHandle< JSPluralRules > plural_rules, double number)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringResolvePluralRange (Isolate *isolate, DirectHandle< JSPluralRules > plural_rules, double x, double y)
 
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales ()
 

Detailed Description

Definition at line 38 of file js-plural-rules.h.

Member Enumeration Documentation

◆ Type

Enumerator
CARDINAL 
ORDINAL 

Definition at line 60 of file js-plural-rules.h.

Member Function Documentation

◆ GetAvailableLocales()

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

Definition at line 382 of file js-plural-rules.cc.

Here is the caller graph for this function:

◆ New()

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

Definition at line 69 of file js-plural-rules.cc.

Here is the call graph for this function:

◆ ResolvedOptions()

DirectHandle< JSObject > v8::internal::JSPluralRules::ResolvedOptions ( Isolate * isolate,
DirectHandle< JSPluralRules > plural_rules )
static

Definition at line 251 of file js-plural-rules.cc.

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

◆ ResolvePlural()

MaybeDirectHandle< String > v8::internal::JSPluralRules::ResolvePlural ( Isolate * isolate,
DirectHandle< JSPluralRules > plural_rules,
double number )
static

Definition at line 179 of file js-plural-rules.cc.

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

◆ ResolvePluralRange()

MaybeDirectHandle< String > v8::internal::JSPluralRules::ResolvePluralRange ( Isolate * isolate,
DirectHandle< JSPluralRules > plural_rules,
double x,
double y )
static

Definition at line 200 of file js-plural-rules.cc.

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

◆ set_type()

kIcuNumberFormatterOffset void v8::internal::JSPluralRules::set_type ( Type type)
inline

Definition at line 34 of file js-plural-rules-inl.h.

◆ type()

JSPluralRules::Type v8::internal::JSPluralRules::type ( ) const
inline

Definition at line 41 of file js-plural-rules-inl.h.

Here is the caller graph for this function:

◆ TypeAsString()

Handle< String > v8::internal::JSPluralRules::TypeAsString ( Isolate * isolate) const

Definition at line 58 of file js-plural-rules.cc.

Here is the call graph for this function:

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