V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::Intl Class Reference

Classes

struct  ResolvedLocale
 

Public Types

enum  BoundFunctionContextSlot { kBoundFunction = Context::MIN_CONTEXT_SLOTS, kLength }
 
enum  CaseFirst { kUpper, kLower, kFalse, kUndefined }
 
enum  HourCycle {
  kH11, kH12, kH23, kH24,
  kUndefined
}
 
enum  MatcherOption { kBestFit, kLookup }
 

Static Public Member Functions

static std::set< std::string > BuildLocaleSet (const icu::Locale *icu_available_locales, int32_t count)
 
static std::string GetNumberingSystem (const icu::Locale &icu_locale)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< JSObjectSupportedLocalesOf (Isolate *isolate, const char *method, const std::set< std::string > &available_locales, Handle< Object > locales_in, Handle< Object > options_in)
 
static std::string DefaultLocale (Isolate *isolate)
 
static V8_WARN_UNUSED_RESULT Maybe< boolGetStringOption (Isolate *isolate, Handle< JSReceiver > options, const char *property, std::vector< const char *> values, const char *service, std::unique_ptr< char[]> *result)
 
template<typename T >
static V8_WARN_UNUSED_RESULT Maybe< TGetStringOption (Isolate *isolate, Handle< JSReceiver > options, const char *name, const char *method, const std::vector< const char *> &str_values, const std::vector< T > &enum_values, T default_value)
 
static V8_WARN_UNUSED_RESULT Maybe< boolGetBoolOption (Isolate *isolate, Handle< JSReceiver > options, const char *property, const char *service, bool *result)
 
static Maybe< std::string > CanonicalizeLanguageTag (Isolate *isolate, Handle< Object > locale_in)
 
static Maybe< std::vector< std::string > > CanonicalizeLocaleList (Isolate *isolate, Handle< Object > locales, bool only_return_one_result=false)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< JSArrayGetCanonicalLocales (Isolate *isolate, Handle< Object > locales)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringStringLocaleConvertCase (Isolate *isolate, Handle< String > s, bool is_upper, Handle< Object > locales)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringConvertToUpper (Isolate *isolate, Handle< String > s)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringConvertToLower (Isolate *isolate, Handle< String > s)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectStringLocaleCompare (Isolate *isolate, Handle< String > s1, Handle< String > s2, Handle< Object > locales, Handle< Object > options)
 
static V8_WARN_UNUSED_RESULT Handle< ObjectCompareStrings (Isolate *isolate, const icu::Collator &collator, Handle< String > s1, Handle< String > s2)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringNumberToLocaleString (Isolate *isolate, Handle< Object > num, Handle< Object > locales, Handle< Object > options)
 
static V8_WARN_UNUSED_RESULT Maybe< boolSetNumberFormatDigitOptions (Isolate *isolate, icu::DecimalFormat *number_format, Handle< JSReceiver > options, int mnfd_default, int mxfd_default)
 
static icu::Locale CreateICULocale (const std::string &bcp47_locale)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringToString (Isolate *isolate, const icu::UnicodeString &string)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringToString (Isolate *isolate, const icu::UnicodeString &string, int32_t begin, int32_t end)
 
static void AddElement (Isolate *isolate, Handle< JSArray > array, int index, Handle< String > field_type_string, Handle< String > value)
 
static void AddElement (Isolate *isolate, Handle< JSArray > array, int index, Handle< String > field_type_string, Handle< String > value, Handle< String > additional_property_name, Handle< String > additional_property_value)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectLegacyUnwrapReceiver (Isolate *isolate, Handle< JSReceiver > receiver, Handle< JSFunction > constructor, bool has_initialized_slot)
 
static V8_WARN_UNUSED_RESULT Maybe< CaseFirst > GetCaseFirst (Isolate *isolate, Handle< JSReceiver > options, const char *method)
 
static V8_WARN_UNUSED_RESULT Maybe< HourCycle > GetHourCycle (Isolate *isolate, Handle< JSReceiver > options, const char *method)
 
static V8_WARN_UNUSED_RESULT Maybe< MatcherOption > GetLocaleMatcher (Isolate *isolate, Handle< JSReceiver > options, const char *method)
 
static ResolvedLocale ResolveLocale (Isolate *isolate, const std::set< std::string > &available_locales, const std::vector< std::string > &requested_locales, MatcherOption options, const std::set< std::string > &relevant_extension_keys)
 
static Managed< icu::UnicodeString > * SetTextToBreakIterator (Isolate *isolate, Handle< String > text, icu::BreakIterator *break_iterator)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< StringNormalize (Isolate *isolate, Handle< String > string, Handle< Object > form_input)
 
static base::TimezoneCacheCreateTimeZoneCache ()
 
static icu::UnicodeString ToICUUnicodeString (Isolate *isolate, Handle< String > string)
 
static const uint8_t * ToLatin1LowerTable ()
 
static String ConvertOneByteToLower (String src, String dst)
 

Detailed Description

Definition at line 40 of file intl-objects.h.


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