Lines Matching refs:spDate
372 pdfium::span<const wchar_t> spDate = wsDate.span(); in ValidateCanonicalDate() local
373 if (spDate.size() < wCountY || in ValidateCanonicalDate()
374 spDate.size() > wCountY + wCountM + wCountD + 2) { in ValidateCanonicalDate()
383 while (nIndex < wCountY && spDate[nIndex] != '\0') { in ValidateCanonicalDate()
384 if (!FXSYS_IsDecimalDigit(spDate[nIndex])) in ValidateCanonicalDate()
387 wYear = (spDate[nIndex] - '0') + wYear * 10; in ValidateCanonicalDate()
391 if (nIndex >= spDate.size() || spDate[nIndex] != 0x2D) in ValidateCanonicalDate()
397 while (nIndex < spDate.size() && spDate[nIndex] != '\0' && in ValidateCanonicalDate()
399 if (!FXSYS_IsDecimalDigit(spDate[nIndex])) in ValidateCanonicalDate()
402 wMonth = (spDate[nIndex] - '0') + wMonth * 10; in ValidateCanonicalDate()
406 if (nIndex >= spDate.size() || spDate[nIndex] != 0x2D) in ValidateCanonicalDate()
412 while (nIndex < spDate.size() && spDate[nIndex] != '\0' && in ValidateCanonicalDate()
414 if (!FXSYS_IsDecimalDigit(spDate[nIndex])) in ValidateCanonicalDate()
417 wDay = (spDate[nIndex] - '0') + wDay * 10; in ValidateCanonicalDate()
420 if (nIndex != spDate.size()) in ValidateCanonicalDate()
425 return wMonth == 0 && spDate.size() == wCountY; in ValidateCanonicalDate()
427 return wDay == 0 && spDate.size() == wCountY + wCountM; in ValidateCanonicalDate()