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

#include <dateparser.h>

Inheritance diagram for v8::internal::DateParser:
Collaboration diagram for v8::internal::DateParser:

Classes

class  DateStringTokenizer
 
struct  DateToken
 
class  DayComposer
 
class  InputReader
 
class  KeywordTable
 
class  TimeComposer
 
class  TimeZoneComposer
 

Public Types

enum  {
  YEAR , MONTH , DAY , HOUR ,
  MINUTE , SECOND , MILLISECOND , UTC_OFFSET ,
  OUTPUT_SIZE
}
 

Static Public Member Functions

template<typename Char >
static bool Parse (Isolate *isolate, base::Vector< Char > str, double *output)
 

Private Types

enum  KeywordType {
  INVALID , MONTH_NAME , TIME_ZONE_NAME , TIME_SEPARATOR ,
  AM_PM
}
 

Static Private Member Functions

static bool Between (int x, int lo, int hi)
 
static int ReadMilliseconds (DateToken number)
 
template<typename Char >
static DateParser::DateToken ParseES5DateTime (DateStringTokenizer< Char > *scanner, DayComposer *day, TimeComposer *time, TimeZoneComposer *tz)
 

Static Private Attributes

static const int kNone = kMaxInt
 
static const int kMaxSignificantDigits = 9
 

Detailed Description

Definition at line 15 of file dateparser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
YEAR 
MONTH 
DAY 
HOUR 
MINUTE 
SECOND 
MILLISECOND 
UTC_OFFSET 
OUTPUT_SIZE 

Definition at line 17 of file dateparser.h.

◆ KeywordType

Enumerator
INVALID 
MONTH_NAME 
TIME_ZONE_NAME 
TIME_SEPARATOR 
AM_PM 

Definition at line 131 of file dateparser.h.

Member Function Documentation

◆ Between()

static bool v8::internal::DateParser::Between ( int x,
int lo,
int hi )
inlinestaticprivate

Definition at line 45 of file dateparser.h.

Here is the caller graph for this function:

◆ Parse()

template<typename Char >
bool v8::internal::DateParser::Parse ( Isolate * isolate,
base::Vector< Char > str,
double * output )
static

Definition at line 18 of file dateparser-inl.h.

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

◆ ParseES5DateTime()

template<typename Char >
DateParser::DateToken v8::internal::DateParser::ParseES5DateTime ( DateStringTokenizer< Char > * scanner,
DayComposer * day,
TimeComposer * time,
TimeZoneComposer * tz )
staticprivate

Definition at line 239 of file dateparser-inl.h.

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

◆ ReadMilliseconds()

int v8::internal::DateParser::ReadMilliseconds ( DateToken number)
staticprivate

Definition at line 169 of file dateparser.cc.

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

Member Data Documentation

◆ kMaxSignificantDigits

const int v8::internal::DateParser::kMaxSignificantDigits = 9
staticprivate

Definition at line 54 of file dateparser.h.

◆ kNone

const int v8::internal::DateParser::kNone = kMaxInt
staticprivate

Definition at line 50 of file dateparser.h.


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