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

#include <js-relative-time-format.h>

Inheritance diagram for v8::internal::JSRelativeTimeFormat:
Collaboration diagram for v8::internal::JSRelativeTimeFormat:

Public Types

enum class  Numeric { ALWAYS , AUTO }
 

Public Member Functions

Handle< StringNumericAsString (Isolate *isolate) const
 
void set_numeric (Numeric numeric)
 
Numeric numeric () const
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSRelativeTimeFormatNew (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options)
 
static V8_WARN_UNUSED_RESULT DirectHandle< JSObjectResolvedOptions (Isolate *isolate, DirectHandle< JSRelativeTimeFormat > format_holder)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringFormat (Isolate *isolate, Handle< Object > value_obj, Handle< Object > unit_obj, DirectHandle< JSRelativeTimeFormat > format)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSArrayFormatToParts (Isolate *isolate, Handle< Object > value_obj, Handle< Object > unit_obj, DirectHandle< JSRelativeTimeFormat > format)
 
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales ()
 

Detailed Description

Definition at line 35 of file js-relative-time-format.h.

Member Enumeration Documentation

◆ Numeric

Enumerator
ALWAYS 
AUTO 

Definition at line 70 of file js-relative-time-format.h.

Member Function Documentation

◆ Format()

MaybeDirectHandle< String > v8::internal::JSRelativeTimeFormat::Format ( Isolate * isolate,
Handle< Object > value_obj,
Handle< Object > unit_obj,
DirectHandle< JSRelativeTimeFormat > format )
static

Definition at line 495 of file js-relative-time-format.cc.

Here is the caller graph for this function:

◆ FormatToParts()

MaybeDirectHandle< JSArray > v8::internal::JSRelativeTimeFormat::FormatToParts ( Isolate * isolate,
Handle< Object > value_obj,
Handle< Object > unit_obj,
DirectHandle< JSRelativeTimeFormat > format )
static

Definition at line 503 of file js-relative-time-format.cc.

Here is the caller graph for this function:

◆ GetAvailableLocales()

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

Definition at line 511 of file js-relative-time-format.cc.

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

◆ New()

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

Definition at line 69 of file js-relative-time-format.cc.

Here is the call graph for this function:

◆ numeric()

JSRelativeTimeFormat::Numeric v8::internal::JSRelativeTimeFormat::numeric ( ) const
inline

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

Here is the caller graph for this function:

◆ NumericAsString()

Handle< String > v8::internal::JSRelativeTimeFormat::NumericAsString ( Isolate * isolate) const

Definition at line 272 of file js-relative-time-format.cc.

Here is the call graph for this function:

◆ ResolvedOptions()

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

Definition at line 249 of file js-relative-time-format.cc.

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

◆ set_numeric()

void v8::internal::JSRelativeTimeFormat::set_numeric ( Numeric numeric)
inline

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