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

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

Inheritance diagram for v8::internal::JSDateTimeFormat:
Collaboration diagram for v8::internal::JSDateTimeFormat:

Public Types

enum class  RequiredOption { kDate , kTime , kAny }
 
enum class  DefaultsOption { kDate , kTime , kAll }
 
enum class  DateTimeStyle {
  kUndefined , kFull , kLong , kMedium ,
  kShort
}
 
enum class  HourCycle {
  kUndefined , kH11 , kH12 , kH23 ,
  kH24
}
 

Public Member Functions

Handle< StringHourCycleAsString (Isolate *isolate) const
 
void set_hour_cycle (HourCycle hour_cycle)
 
HourCycle hour_cycle () const
 
void set_date_style (DateTimeStyle date_style)
 
DateTimeStyle date_style () const
 
void set_time_style (DateTimeStyle time_style)
 
DateTimeStyle time_style () const
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSDateTimeFormatNew (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options, const char *service)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSDateTimeFormatCreateDateTimeFormat (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options, RequiredOption required, DefaultsOption defaults, const char *service)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSObjectResolvedOptions (Isolate *isolate, DirectHandle< JSDateTimeFormat > date_time_format)
 
static V8_WARN_UNUSED_RESULT DirectHandle< StringCalendar (Isolate *isolate, DirectHandle< JSDateTimeFormat > date_time_format)
 
static V8_WARN_UNUSED_RESULT DirectHandle< ObjectTimeZone (Isolate *isolate, DirectHandle< JSDateTimeFormat > date_time_format)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSDateTimeFormatUnwrapDateTimeFormat (Isolate *isolate, Handle< JSReceiver > format_holder)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringDateTimeFormat (Isolate *isolate, DirectHandle< JSDateTimeFormat > date_time_format, DirectHandle< Object > date, const char *method_name)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSArrayFormatToParts (Isolate *isolate, DirectHandle< JSDateTimeFormat > date_time_format, DirectHandle< Object > x, bool output_source, const char *method_name)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringFormatRange (Isolate *isolate, DirectHandle< JSDateTimeFormat > date_time_format, DirectHandle< Object > x_date_value, DirectHandle< Object > y_date_value, const char *method_name)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSArrayFormatRangeToParts (Isolate *isolate, DirectHandle< JSDateTimeFormat > date_time_format, DirectHandle< Object > x_date_value, DirectHandle< Object > y_date_value, const char *method_name)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringToLocaleDateTime (Isolate *isolate, DirectHandle< Object > date, DirectHandle< Object > locales, DirectHandle< Object > options, RequiredOption required, DefaultsOption defaults, const char *method_name)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< StringTemporalToLocaleString (Isolate *isolate, DirectHandle< JSReceiver > temporal, DirectHandle< Object > locales, DirectHandle< Object > options, const char *method_name)
 
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales ()
 
static DirectHandle< ObjectTimeZoneId (Isolate *isolate, const icu::TimeZone &tz)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringTimeZoneIdToString (Isolate *isolate, const icu::UnicodeString &id)
 
static std::unique_ptr< icu::TimeZone > CreateTimeZone (Isolate *isolate, DirectHandle< String > time_zone)
 
static V8_EXPORT_PRIVATE std::string CanonicalizeTimeZoneID (const std::string &input)
 

Detailed Description

Definition at line 36 of file js-date-time-format.h.

Member Enumeration Documentation

◆ DateTimeStyle

Enumerator
kUndefined 
kFull 
kLong 
kMedium 
kShort 

Definition at line 116 of file js-date-time-format.h.

◆ DefaultsOption

Enumerator
kDate 
kTime 
kAll 

Definition at line 41 of file js-date-time-format.h.

◆ HourCycle

Enumerator
kUndefined 
kH11 
kH12 
kH23 
kH24 

Definition at line 119 of file js-date-time-format.h.

◆ RequiredOption

Enumerator
kDate 
kTime 
kAny 

Definition at line 40 of file js-date-time-format.h.

Member Function Documentation

◆ Calendar()

DirectHandle< String > v8::internal::JSDateTimeFormat::Calendar ( Isolate * isolate,
DirectHandle< JSDateTimeFormat > date_time_format )
static

Definition at line 623 of file js-date-time-format.cc.

Here is the caller graph for this function:

◆ CanonicalizeTimeZoneID()

std::string v8::internal::JSDateTimeFormat::CanonicalizeTimeZoneID ( const std::string & input)
static

Definition at line 476 of file js-date-time-format.cc.

Here is the caller graph for this function:

◆ CreateDateTimeFormat()

MaybeDirectHandle< JSDateTimeFormat > v8::internal::JSDateTimeFormat::CreateDateTimeFormat ( Isolate * isolate,
DirectHandle< Map > map,
DirectHandle< Object > locales,
DirectHandle< Object > options,
RequiredOption required,
DefaultsOption defaults,
const char * service )
static

Definition at line 2181 of file js-date-time-format.cc.

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

◆ CreateTimeZone()

std::unique_ptr< icu::TimeZone > v8::internal::JSDateTimeFormat::CreateTimeZone ( Isolate * isolate,
DirectHandle< String > time_zone )
static

Definition at line 1712 of file js-date-time-format.cc.

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

◆ date_style()

JSDateTimeFormat::DateTimeStyle v8::internal::JSDateTimeFormat::date_style ( ) const
inline

Definition at line 52 of file js-date-time-format-inl.h.

Here is the caller graph for this function:

◆ DateTimeFormat()

MaybeDirectHandle< String > v8::internal::JSDateTimeFormat::DateTimeFormat ( Isolate * isolate,
DirectHandle< JSDateTimeFormat > date_time_format,
DirectHandle< Object > date,
const char * method_name )
static

Definition at line 1497 of file js-date-time-format.cc.

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

◆ FormatRange()

MaybeDirectHandle< String > v8::internal::JSDateTimeFormat::FormatRange ( Isolate * isolate,
DirectHandle< JSDateTimeFormat > date_time_format,
DirectHandle< Object > x_date_value,
DirectHandle< Object > y_date_value,
const char * method_name )
static

Definition at line 3147 of file js-date-time-format.cc.

Here is the call graph for this function:

◆ FormatRangeToParts()

MaybeDirectHandle< JSArray > v8::internal::JSDateTimeFormat::FormatRangeToParts ( Isolate * isolate,
DirectHandle< JSDateTimeFormat > date_time_format,
DirectHandle< Object > x_date_value,
DirectHandle< Object > y_date_value,
const char * method_name )
static

Definition at line 3163 of file js-date-time-format.cc.

◆ FormatToParts()

MaybeDirectHandle< JSArray > v8::internal::JSDateTimeFormat::FormatToParts ( Isolate * isolate,
DirectHandle< JSDateTimeFormat > date_time_format,
DirectHandle< Object > x,
bool output_source,
const char * method_name )
static

Definition at line 2794 of file js-date-time-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::JSDateTimeFormat::GetAvailableLocales ( )
static

Definition at line 2886 of file js-date-time-format.cc.

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

◆ hour_cycle()

JSDateTimeFormat::HourCycle v8::internal::JSDateTimeFormat::hour_cycle ( ) const
inline

Definition at line 41 of file js-date-time-format-inl.h.

Here is the caller graph for this function:

◆ HourCycleAsString()

Handle< String > v8::internal::JSDateTimeFormat::HourCycleAsString ( Isolate * isolate) const

Definition at line 2890 of file js-date-time-format.cc.

Here is the call graph for this function:

◆ New()

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

Definition at line 2173 of file js-date-time-format.cc.

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

◆ ResolvedOptions()

MaybeDirectHandle< JSObject > v8::internal::JSDateTimeFormat::ResolvedOptions ( Isolate * isolate,
DirectHandle< JSDateTimeFormat > date_time_format )
static

Definition at line 636 of file js-date-time-format.cc.

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

◆ set_date_style()

void v8::internal::JSDateTimeFormat::set_date_style ( JSDateTimeFormat::DateTimeStyle date_style)
inline

Definition at line 45 of file js-date-time-format-inl.h.

Here is the call graph for this function:

◆ set_hour_cycle()

void v8::internal::JSDateTimeFormat::set_hour_cycle ( HourCycle hour_cycle)
inline

◆ set_time_style()

void v8::internal::JSDateTimeFormat::set_time_style ( JSDateTimeFormat::DateTimeStyle time_style)
inline

Definition at line 56 of file js-date-time-format-inl.h.

Here is the call graph for this function:

◆ TemporalToLocaleString()

MaybeDirectHandle< String > v8::internal::JSDateTimeFormat::TemporalToLocaleString ( Isolate * isolate,
DirectHandle< JSReceiver > temporal,
DirectHandle< Object > locales,
DirectHandle< Object > options,
const char * method_name )
static

Definition at line 1601 of file js-date-time-format.cc.

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

◆ time_style()

JSDateTimeFormat::DateTimeStyle v8::internal::JSDateTimeFormat::time_style ( ) const
inline

Definition at line 63 of file js-date-time-format-inl.h.

Here is the caller graph for this function:

◆ TimeZone()

DirectHandle< Object > v8::internal::JSDateTimeFormat::TimeZone ( Isolate * isolate,
DirectHandle< JSDateTimeFormat > date_time_format )
static

Definition at line 629 of file js-date-time-format.cc.

Here is the caller graph for this function:

◆ TimeZoneId()

DirectHandle< Object > v8::internal::JSDateTimeFormat::TimeZoneId ( Isolate * isolate,
const icu::TimeZone & tz )
static

Definition at line 572 of file js-date-time-format.cc.

Here is the call graph for this function:

◆ TimeZoneIdToString()

MaybeHandle< String > v8::internal::JSDateTimeFormat::TimeZoneIdToString ( Isolate * isolate,
const icu::UnicodeString & id )
static

Definition at line 552 of file js-date-time-format.cc.

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

◆ ToLocaleDateTime()

MaybeDirectHandle< String > v8::internal::JSDateTimeFormat::ToLocaleDateTime ( Isolate * isolate,
DirectHandle< Object > date,
DirectHandle< Object > locales,
DirectHandle< Object > options,
RequiredOption required,
DefaultsOption defaults,
const char * method_name )
static

Definition at line 1540 of file js-date-time-format.cc.

Here is the call graph for this function:

◆ UnwrapDateTimeFormat()

MaybeDirectHandle< JSDateTimeFormat > v8::internal::JSDateTimeFormat::UnwrapDateTimeFormat ( Isolate * isolate,
Handle< JSReceiver > format_holder )
static

Definition at line 1621 of file js-date-time-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: