Searched refs:DateToken (Results 1 – 3 of 3) sorted by relevance
/external/v8/src/ |
D | dateparser-inl.h | 95 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 …]
|
D | dateparser.h | 164 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 …]
|
D | dateparser.cc | 181 int DateParser::ReadMilliseconds(DateToken token) { in ReadMilliseconds()
|