Home
last modified time | relevance | path

Searched refs:DateToken (Results 1 – 3 of 3) sorted by relevance

/external/v8/src/
Ddateparser-inl.h95 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse()
99 for (DateToken token = next_unhandled_token; in Parse()
128 DateToken peek = scanner.Peek(); in Parse()
183 DateParser::DateToken DateParser::DateStringTokenizer<CharType>::Scan() { in Scan()
185 if (in_->IsEnd()) return DateToken::EndOfInput(); in Scan()
189 return DateToken::Number(n, length); in Scan()
191 if (in_->Skip(':')) return DateToken::Symbol(':'); in Scan()
192 if (in_->Skip('-')) return DateToken::Symbol('-'); in Scan()
193 if (in_->Skip('+')) return DateToken::Symbol('+'); in Scan()
194 if (in_->Skip('.')) return DateToken::Symbol('.'); in Scan()
[all …]
Ddateparser.h164 struct DateToken { struct
215 static DateToken Keyword(KeywordType tag, int value, int length) { in Keyword() argument
216 return DateToken(tag, length, value); in Keyword()
218 static DateToken Number(int value, int length) { in Number() argument
219 return DateToken(kNumberTag, length, value); in Number()
221 static DateToken Symbol(char symbol) { in Symbol() argument
222 return DateToken(kSymbolTag, 1, symbol); in Symbol()
224 static DateToken EndOfInput() { in EndOfInput() argument
225 return DateToken(kEndOfInputTag, 0, -1); in EndOfInput()
227 static DateToken WhiteSpace(int length) { in WhiteSpace() argument
[all …]
Ddateparser.cc181 int DateParser::ReadMilliseconds(DateToken token) { in ReadMilliseconds()