Lines Matching refs:spDate
243 pdfium::span<const wchar_t> spDate = wsDate.span(); in ParseLocaleDate() local
245 while (*cc < spDate.size() && ccf < spDatePattern.size()) { in ParseLocaleDate()
249 if (*cc + iLiteralLen > spDate.size() || in ParseLocaleDate()
250 wcsncmp(spDate.data() + *cc, wsLiteral.c_str(), iLiteralLen) != 0) { in ParseLocaleDate()
258 if (spDatePattern[ccf] != spDate[*cc]) in ParseLocaleDate()
273 if (!ExtractCountDigitsWithOptional(spDate, 1, cc, &day)) in ParseLocaleDate()
277 ExtractCountDigits(spDate, 3, cc, &val); in ParseLocaleDate()
280 if (!ExtractCountDigitsWithOptional(spDate, 1, cc, &month)) in ParseLocaleDate()
288 if (wcsncmp(wsMonthName.c_str(), spDate.data() + *cc, in ParseLocaleDate()
301 if (wcsncmp(wsDayName.c_str(), spDate.data() + *cc, in ParseLocaleDate()
308 if (*cc + symbol.GetLength() > spDate.size()) in ParseLocaleDate()
312 if (!ExtractCountDigits(spDate, symbol.GetLength(), cc, &year)) in ParseLocaleDate()
327 if (*cc < spDate.size()) in ParseLocaleDate()
712 bool FX_DateFromCanonical(pdfium::span<const wchar_t> spDate, in FX_DateFromCanonical() argument
714 if (spDate.size() > 10) in FX_DateFromCanonical()
719 if (!ExtractCountDigits(spDate, 4, &cc, &year)) in FX_DateFromCanonical()
723 if (cc >= spDate.size()) { in FX_DateFromCanonical()
728 if (spDate[cc] == '-') in FX_DateFromCanonical()
732 if (!ExtractCountDigits(spDate, 2, &cc, &month) || month < 1 || month > 12) in FX_DateFromCanonical()
735 if (cc >= spDate.size()) { in FX_DateFromCanonical()
740 if (spDate[cc] == '-') in FX_DateFromCanonical()
744 if (!ExtractCountDigits(spDate, 2, &cc, &day)) in FX_DateFromCanonical()