v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
js-duration-format.cc File Reference
#include "src/objects/js-duration-format.h"
#include <map>
#include <memory>
#include <string>
#include <string_view>
#include "src/common/globals.h"
#include "src/execution/isolate.h"
#include "src/heap/factory.h"
#include "src/objects/intl-objects.h"
#include "src/objects/js-duration-format-inl.h"
#include "src/objects/js-number-format.h"
#include "src/objects/js-temporal-objects.h"
#include "src/objects/managed-inl.h"
#include "src/objects/objects-inl.h"
#include "src/objects/option-utils.h"
#include "unicode/dtfmtsym.h"
#include "unicode/listformatter.h"
#include "unicode/locid.h"
#include "unicode/numberformatter.h"
#include "unicode/ulistformatter.h"
#include "unicode/unumberformatter.h"
Include dependency graph for js-duration-format.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define CALL_GET_DURATION_UNIT_OPTIONS(unit, property, strings, enums, digital_base, prev_style)
 
#define OUTPUT_PROPERTY(s, f)
 
#define OUTPUT_STYLE_PROPERTY(p)
 
#define OUTPUT_DISPLAY_PROPERTY(p)
 
#define OUTPUT_STYLE_AND_DISPLAY_PROPERTIES(p)
 

Functions

MaybeDirectHandle< Stringv8::internal::FormattedToString (Isolate *isolate, const icu::FormattedValue &formatted, const std::vector< std::vector< Part > > *parts, JSDurationFormat::Separator)
 
MaybeDirectHandle< JSArrayv8::internal::FormattedListToJSArray (Isolate *isolate, const icu::FormattedValue &formatted, const std::vector< std::vector< Part > > *parts, JSDurationFormat::Separator separator)
 

Macro Definition Documentation

◆ CALL_GET_DURATION_UNIT_OPTIONS

#define CALL_GET_DURATION_UNIT_OPTIONS ( unit,
property,
strings,
enums,
digital_base,
prev_style )
Value:
isolate, property##_option, \
GetDurationUnitOptions( \
isolate, Unit::unit, #property, #property "Display", options, style, \
strings, enums, JSDurationFormat::FieldStyle::digital_base, \
prev_style), \
DirectHandle<JSDurationFormat>());
#define MAYBE_ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, value)
Definition isolate.h:440
JSDurationFormat::FieldStyle style

◆ OUTPUT_DISPLAY_PROPERTY

#define OUTPUT_DISPLAY_PROPERTY ( p)
Value:
OUTPUT_PROPERTY(p##Display_string, \
DisplayToString(isolate, format->p##_display()))
#define OUTPUT_PROPERTY(s, f)

◆ OUTPUT_PROPERTY

#define OUTPUT_PROPERTY ( s,
f )
Value:
isolate, created, \
JSReceiver::CreateDataProperty(isolate, options, factory->s(), f, \
Just(kDontThrow)), \
DirectHandle<JSObject>()); \
CHECK(created);

◆ OUTPUT_STYLE_AND_DISPLAY_PROPERTIES

#define OUTPUT_STYLE_AND_DISPLAY_PROPERTIES ( p)
Value:
OUTPUT_DISPLAY_PROPERTY(p);
#define OUTPUT_STYLE_PROPERTY(p)

◆ OUTPUT_STYLE_PROPERTY

#define OUTPUT_STYLE_PROPERTY ( p)
Value:
OUTPUT_PROPERTY(p##_string, StyleToString(isolate, format->p##_style()))

Variable Documentation

◆ display

JSDurationFormat::Display display

Definition at line 59 of file js-duration-format.cc.

◆ formatted

icu::number::FormattedNumber formatted

Definition at line 655 of file js-duration-format.cc.

◆ part_type

Type part_type

Definition at line 653 of file js-duration-format.cc.

◆ style

JSDurationFormat::FieldStyle style

Definition at line 58 of file js-duration-format.cc.

◆ type

std::string type

Definition at line 654 of file js-duration-format.cc.