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

#include <js-display-names.h>

Inheritance diagram for v8::internal::JSDisplayNames:
Collaboration diagram for v8::internal::JSDisplayNames:

Public Types

enum class  Style { kLong , kShort , kNarrow }
 
enum class  Fallback { kCode , kNone }
 
enum class  LanguageDisplay { kDialect , kStandard }
 

Public Member Functions

Handle< StringStyleAsString (Isolate *isolate) const
 
Handle< StringFallbackAsString (Isolate *isolate) const
 
DirectHandle< StringLanguageDisplayAsString (Isolate *isolate) const
 
void set_style (Style style)
 
Style style () const
 
void set_fallback (Fallback fallback)
 
Fallback fallback () const
 
void set_language_display (LanguageDisplay language_display)
 
LanguageDisplay language_display () const
 

Static Public Member Functions

static MaybeDirectHandle< JSDisplayNamesNew (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options)
 
static DirectHandle< JSObjectResolvedOptions (Isolate *isolate, DirectHandle< JSDisplayNames > format_holder)
 
static MaybeDirectHandle< ObjectOf (Isolate *isolate, DirectHandle< JSDisplayNames > holder, Handle< Object > code_obj)
 
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales ()
 

Detailed Description

Definition at line 30 of file js-display-names.h.

Member Enumeration Documentation

◆ Fallback

Enumerator
kCode 
kNone 

Definition at line 67 of file js-display-names.h.

◆ LanguageDisplay

Enumerator
kDialect 
kStandard 

Definition at line 74 of file js-display-names.h.

◆ Style

Enumerator
kLong 
kShort 
kNarrow 

Definition at line 56 of file js-display-names.h.

Member Function Documentation

◆ fallback()

JSDisplayNames::Fallback v8::internal::JSDisplayNames::fallback ( ) const
inline

Definition at line 43 of file js-display-names-inl.h.

Here is the caller graph for this function:

◆ FallbackAsString()

Handle< String > v8::internal::JSDisplayNames::FallbackAsString ( Isolate * isolate) const

Definition at line 650 of file js-display-names.cc.

Here is the call graph for this function:

◆ GetAvailableLocales()

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

Definition at line 632 of file js-display-names.cc.

Here is the caller graph for this function:

◆ language_display()

JSDisplayNames::LanguageDisplay v8::internal::JSDisplayNames::language_display ( ) const
inline

Definition at line 53 of file js-display-names-inl.h.

Here is the caller graph for this function:

◆ LanguageDisplayAsString()

DirectHandle< String > v8::internal::JSDisplayNames::LanguageDisplayAsString ( Isolate * isolate) const

Definition at line 660 of file js-display-names.cc.

Here is the call graph for this function:

◆ New()

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

Definition at line 404 of file js-display-names.cc.

Here is the call graph for this function:

◆ Of()

MaybeDirectHandle< Object > v8::internal::JSDisplayNames::Of ( Isolate * isolate,
DirectHandle< JSDisplayNames > holder,
Handle< Object > code_obj )
static

Definition at line 606 of file js-display-names.cc.

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

◆ ResolvedOptions()

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

Definition at line 553 of file js-display-names.cc.

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

◆ set_fallback()

void v8::internal::JSDisplayNames::set_fallback ( Fallback fallback)
inline

Definition at line 38 of file js-display-names-inl.h.

Here is the call graph for this function:

◆ set_language_display()

void v8::internal::JSDisplayNames::set_language_display ( LanguageDisplay language_display)
inline

Definition at line 47 of file js-display-names-inl.h.

Here is the call graph for this function:

◆ set_style()

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

◆ style()

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

Definition at line 34 of file js-display-names-inl.h.

Here is the caller graph for this function:

◆ StyleAsString()

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

Definition at line 638 of file js-display-names.cc.

Here is the call graph for this function:

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