Lines Matching full:peek
115 if (scanner.Peek().IsSymbol('.')) scanner.Next();
119 if (!scanner.Peek().IsNumber()) return false;
129 DateToken peek = scanner.Peek();
130 if (!peek.IsEndOfInput() &&
131 !peek.IsWhiteSpace() &&
132 !peek.IsKeywordZ() &&
133 !peek.IsAsciiSign()) return false;
154 if (scanner.Peek().IsNumber()) return false;
161 if (scanner.Peek().IsNumber()) {
166 if (scanner.Peek().IsSymbol(':')) {
231 if (scanner->Peek().IsAsciiSign()) {
235 if (!scanner->Peek().IsFixedLengthNumber(6)) return sign_token;
240 } else if (scanner->Peek().IsFixedLengthNumber(4)) {
246 if (!scanner->Peek().IsFixedLengthNumber(2) ||
247 !DayComposer::IsMonth(scanner->Peek().number())) return scanner->Next();
250 if (!scanner->Peek().IsFixedLengthNumber(2) ||
251 !DayComposer::IsDay(scanner->Peek().number())) return scanner->Next();
256 if (!scanner->Peek().IsKeywordType(TIME_SEPARATOR)) {
257 if (!scanner->Peek().IsEndOfInput()) return scanner->Next();
261 if (!scanner->Peek().IsFixedLengthNumber(2) ||
262 !Between(scanner->Peek().number(), 0, 24)) {
266 bool hour_is_24 = (scanner->Peek().number() == 24);
269 if (!scanner->Peek().IsFixedLengthNumber(2) ||
270 !TimeComposer::IsMinute(scanner->Peek().number()) ||
271 (hour_is_24 && scanner->Peek().number() > 0)) {
276 if (!scanner->Peek().IsFixedLengthNumber(2) ||
277 !TimeComposer::IsSecond(scanner->Peek().number()) ||
278 (hour_is_24 && scanner->Peek().number() > 0)) {
283 if (!scanner->Peek().IsNumber() ||
284 (hour_is_24 && scanner->Peek().number() > 0)) {
292 if (scanner->Peek().IsKeywordZ()) {
295 } else if (scanner->Peek().IsSymbol('+') ||
296 scanner->Peek().IsSymbol('-')) {
298 if (scanner->Peek().IsFixedLengthNumber(4)) {
310 if (!scanner->Peek().IsFixedLengthNumber(2) ||
311 !TimeComposer::IsHour(scanner->Peek().number())) {
316 if (!scanner->Peek().IsFixedLengthNumber(2) ||
317 !TimeComposer::IsMinute(scanner->Peek().number())) {
323 if (!scanner->Peek().IsEndOfInput()) return DateToken::Invalid();