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

Static Public Member Functions

static int Lookup (const uint32_t *pre, int len)
 
static KeywordType GetType (int i)
 
static int GetValue (int i)
 

Static Public Attributes

static const int kPrefixLength = 3
 
static const int kTypeOffset = kPrefixLength
 
static const int kValueOffset = kTypeOffset + 1
 
static const int kEntrySize = kValueOffset + 1
 
static const int8_t array [][kEntrySize]
 

Detailed Description

Definition at line 250 of file dateparser.h.

Member Function Documentation

◆ GetType()

static KeywordType v8::internal::DateParser::KeywordTable::GetType ( int i)
inlinestatic

Definition at line 257 of file dateparser.h.

◆ GetValue()

static int v8::internal::DateParser::KeywordTable::GetValue ( int i)
inlinestatic

Definition at line 261 of file dateparser.h.

◆ Lookup()

int v8::internal::DateParser::KeywordTable::Lookup ( const uint32_t * pre,
int len )
static

Definition at line 152 of file dateparser.cc.

Member Data Documentation

◆ array

const int8_t v8::internal::DateParser::KeywordTable::array
static
Initial value:
= {
{'j', 'a', 'n', DateParser::MONTH_NAME, 1},
{'f', 'e', 'b', DateParser::MONTH_NAME, 2},
{'m', 'a', 'r', DateParser::MONTH_NAME, 3},
{'a', 'p', 'r', DateParser::MONTH_NAME, 4},
{'m', 'a', 'y', DateParser::MONTH_NAME, 5},
{'j', 'u', 'n', DateParser::MONTH_NAME, 6},
{'j', 'u', 'l', DateParser::MONTH_NAME, 7},
{'a', 'u', 'g', DateParser::MONTH_NAME, 8},
{'s', 'e', 'p', DateParser::MONTH_NAME, 9},
{'o', 'c', 't', DateParser::MONTH_NAME, 10},
{'n', 'o', 'v', DateParser::MONTH_NAME, 11},
{'d', 'e', 'c', DateParser::MONTH_NAME, 12},
{'a', 'm', '\0', DateParser::AM_PM, 0},
{'p', 'm', '\0', DateParser::AM_PM, 12},
{'u', 't', '\0', DateParser::TIME_ZONE_NAME, 0},
{'u', 't', 'c', DateParser::TIME_ZONE_NAME, 0},
{'z', '\0', '\0', DateParser::TIME_ZONE_NAME, 0},
{'g', 'm', 't', DateParser::TIME_ZONE_NAME, 0},
{'c', 'd', 't', DateParser::TIME_ZONE_NAME, -5},
{'c', 's', 't', DateParser::TIME_ZONE_NAME, -6},
{'e', 'd', 't', DateParser::TIME_ZONE_NAME, -4},
{'e', 's', 't', DateParser::TIME_ZONE_NAME, -5},
{'m', 'd', 't', DateParser::TIME_ZONE_NAME, -6},
{'m', 's', 't', DateParser::TIME_ZONE_NAME, -7},
{'p', 'd', 't', DateParser::TIME_ZONE_NAME, -7},
{'p', 's', 't', DateParser::TIME_ZONE_NAME, -8},
{'t', '\0', '\0', DateParser::TIME_SEPARATOR, 0},
{'\0', '\0', '\0', DateParser::INVALID, 0},
}

Definition at line 267 of file dateparser.h.

◆ kEntrySize

const int v8::internal::DateParser::KeywordTable::kEntrySize = kValueOffset + 1
static

Definition at line 266 of file dateparser.h.

◆ kPrefixLength

const int v8::internal::DateParser::KeywordTable::kPrefixLength = 3
static

Definition at line 263 of file dateparser.h.

◆ kTypeOffset

const int v8::internal::DateParser::KeywordTable::kTypeOffset = kPrefixLength
static

Definition at line 264 of file dateparser.h.

◆ kValueOffset

const int v8::internal::DateParser::KeywordTable::kValueOffset = kTypeOffset + 1
static

Definition at line 265 of file dateparser.h.


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