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

#include <js-list-format.h>

Inheritance diagram for v8::internal::JSListFormat:
Collaboration diagram for v8::internal::JSListFormat:

Public Types

enum class  Style { LONG , SHORT , NARROW }
 
enum class  Type { CONJUNCTION , DISJUNCTION , UNIT }
 

Public Member Functions

Handle< StringStyleAsString (Isolate *isolate) const
 
Handle< StringTypeAsString (Isolate *isolate) const
 
void set_style (Style style)
 
Style style () const
 
void set_type (Type type)
 
Type type () const
 

Static Public Member Functions

static MaybeDirectHandle< JSListFormatNew (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options)
 
static DirectHandle< JSObjectResolvedOptions (Isolate *isolate, DirectHandle< JSListFormat > format_holder)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringFormatList (Isolate *isolate, DirectHandle< JSListFormat > format_holder, DirectHandle< FixedArray > list)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSArrayFormatListToParts (Isolate *isolate, DirectHandle< JSListFormat > format_holder, DirectHandle< FixedArray > list)
 
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales ()
 

Detailed Description

Definition at line 34 of file js-list-format.h.

Member Enumeration Documentation

◆ Style

Enumerator
LONG 
SHORT 
NARROW 

Definition at line 68 of file js-list-format.h.

◆ Type

Enumerator
CONJUNCTION 
DISJUNCTION 
UNIT 

Definition at line 79 of file js-list-format.h.

Member Function Documentation

◆ FormatList()

MaybeDirectHandle< String > v8::internal::JSListFormat::FormatList ( Isolate * isolate,
DirectHandle< JSListFormat > format_holder,
DirectHandle< FixedArray > list )
static

Definition at line 276 of file js-list-format.cc.

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

◆ FormatListToParts()

MaybeDirectHandle< JSArray > v8::internal::JSListFormat::FormatListToParts ( Isolate * isolate,
DirectHandle< JSListFormat > format_holder,
DirectHandle< FixedArray > list )
static

Definition at line 284 of file js-list-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::JSListFormat::GetAvailableLocales ( )
static

Definition at line 300 of file js-list-format.cc.

Here is the caller graph for this function:

◆ New()

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

Definition at line 60 of file js-list-format.cc.

Here is the call graph for this function:

◆ ResolvedOptions()

DirectHandle< JSObject > v8::internal::JSListFormat::ResolvedOptions ( Isolate * isolate,
DirectHandle< JSListFormat > format_holder )
static

Definition at line 148 of file js-list-format.cc.

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

◆ set_style()

void v8::internal::JSListFormat::set_style ( Style style)
inline

◆ set_type()

void v8::internal::JSListFormat::set_type ( Type type)
inline

Definition at line 42 of file js-list-format-inl.h.

◆ style()

JSListFormat::Style v8::internal::JSListFormat::style ( ) const
inline

Definition at line 38 of file js-list-format-inl.h.

Here is the caller graph for this function:

◆ StyleAsString()

Handle< String > v8::internal::JSListFormat::StyleAsString ( Isolate * isolate) const

Definition at line 172 of file js-list-format.cc.

Here is the call graph for this function:

◆ type()

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

Definition at line 49 of file js-list-format-inl.h.

Here is the caller graph for this function:

◆ TypeAsString()

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

Definition at line 184 of file js-list-format.cc.

Here is the call graph for this function:

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