Home | History | Annotate | Download | only in src

Lines Matching refs:Peek

114           if (scanner.Peek().IsSymbol('.')) scanner.Next();
118 if (!scanner.Peek().IsNumber()) return false;
128 DateToken peek = scanner.Peek();
129 if (!peek.IsEndOfInput() &&
130 !peek.IsWhiteSpace() &&
131 !peek.IsKeywordZ() &&
132 !peek.IsAsciiSign()) return false;
157 if (scanner.Peek().IsNumber()) {
162 if (scanner.Peek().IsSymbol(':')) {
227 if (scanner->Peek().IsAsciiSign()) {
231 if (!scanner->Peek().IsFixedLengthNumber(6)) return sign_token;
236 } else if (scanner->Peek().IsFixedLengthNumber(4)) {
242 if (!scanner->Peek().IsFixedLengthNumber(2) ||
243 !DayComposer::IsMonth(scanner->Peek().number())) return scanner->Next();
246 if (!scanner->Peek().IsFixedLengthNumber(2) ||
247 !DayComposer::IsDay(scanner->Peek().number())) return scanner->Next();
252 if (!scanner->Peek().IsKeywordType(TIME_SEPARATOR)) {
253 if (!scanner->Peek().IsEndOfInput()) return scanner->Next();
257 if (!scanner->Peek().IsFixedLengthNumber(2) ||
258 !Between(scanner->Peek().number(), 0, 24)) {
262 bool hour_is_24 = (scanner->Peek().number() == 24);
265 if (!scanner->Peek().IsFixedLengthNumber(2) ||
266 !TimeComposer::IsMinute(scanner->Peek().number()) ||
267 (hour_is_24 && scanner->Peek().number() > 0)) {
272 if (!scanner->Peek().IsFixedLengthNumber(2) ||
273 !TimeComposer::IsSecond(scanner->Peek().number()) ||
274 (hour_is_24 && scanner->Peek().number() > 0)) {
279 if (!scanner->Peek().IsNumber() ||
280 (hour_is_24 && scanner->Peek().number() > 0)) {
288 if (scanner->Peek().IsKeywordZ()) {
291 } else if (scanner->Peek().IsSymbol('+') ||
292 scanner->Peek().IsSymbol('-')) {
294 if (scanner->Peek().IsFixedLengthNumber(4)) {
306 if (!scanner->Peek().IsFixedLengthNumber(2) ||
307 !TimeComposer::IsHour(scanner->Peek().number())) {
312 if (!scanner->Peek().IsFixedLengthNumber(2) ||
313 !TimeComposer::IsMinute(scanner->Peek().number())) {
319 if (!scanner->Peek().IsEndOfInput()) return DateToken::Invalid();