5#ifndef V8_OBJECTS_JS_DISPLAY_NAMES_H_
6#define V8_OBJECTS_JS_DISPLAY_NAMES_H_
9#error Internationalization is expected to be enabled.
26class DisplayNamesInternal;
28#include "torque-generated/src/objects/js-display-names-tq.inc"
31 :
public TorqueGeneratedJSDisplayNames<JSDisplayNames, JSObject> {
82 DEFINE_TORQUE_GENERATED_JS_DISPLAY_NAMES_FLAGS()
84 static_assert(StyleBits::is_valid(
Style::
kLong));
102#include "src/objects/object-macros-undef.h"
void set_style(Style style)
static MaybeDirectHandle< Object > Of(Isolate *isolate, DirectHandle< JSDisplayNames > holder, Handle< Object > code_obj)
static V8_EXPORT_PRIVATE const std::set< std::string > & GetAvailableLocales()
LanguageDisplay language_display() const
Handle< String > StyleAsString(Isolate *isolate) const
DirectHandle< String > LanguageDisplayAsString(Isolate *isolate) const
Handle< String > FallbackAsString(Isolate *isolate) const
void set_language_display(LanguageDisplay language_display)
static MaybeDirectHandle< JSDisplayNames > New(Isolate *isolate, DirectHandle< Map > map, DirectHandle< Object > locales, DirectHandle< Object > options)
static DirectHandle< JSObject > ResolvedOptions(Isolate *isolate, DirectHandle< JSDisplayNames > format_holder)
Fallback fallback() const
void set_fallback(Fallback fallback)
#define DECL_ACCESSORS(name,...)
#define DECL_PRINTER(Name)
#define TQ_OBJECT_CONSTRUCTORS(Type)
#define V8_EXPORT_PRIVATE