Searched refs:DateToken (Results 1 – 3 of 3) sorted by relevance
/external/v8/src/ |
D | dateparser-inl.h | 74 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse() 79 for (DateToken token = next_unhandled_token; in Parse() 109 DateToken peek = scanner.Peek(); in Parse() 145 DateToken token = scanner.Next(); in Parse() 187 DateParser::DateToken DateParser::DateStringTokenizer<CharType>::Scan() { in Scan() 189 if (in_->IsEnd()) return DateToken::EndOfInput(); in Scan() 193 return DateToken::Number(n, length); in Scan() 195 if (in_->Skip(':')) return DateToken::Symbol(':'); in Scan() 196 if (in_->Skip('-')) return DateToken::Symbol('-'); in Scan() 197 if (in_->Skip('+')) return DateToken::Symbol('+'); in Scan() [all …]
|
D | dateparser.h | 126 struct DateToken { struct 177 static DateToken Keyword(KeywordType tag, int value, int length) { in Keyword() argument 178 return DateToken(tag, length, value); in Keyword() 180 static DateToken Number(int value, int length) { in Number() argument 181 return DateToken(kNumberTag, length, value); in Number() 183 static DateToken Symbol(char symbol) { in Symbol() argument 184 return DateToken(kSymbolTag, 1, symbol); in Symbol() 186 static DateToken EndOfInput() { in EndOfInput() argument 187 return DateToken(kEndOfInputTag, 0, -1); in EndOfInput() 189 static DateToken WhiteSpace(int length) { in WhiteSpace() argument [all …]
|
D | dateparser.cc | 172 int DateParser::ReadMilliseconds(DateToken token) { in ReadMilliseconds()
|