Home
last modified time | relevance | path

Searched refs:parsed_year (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/native/annotator/datetime/
Dutils.cc67 int GetAdjustedYear(const int parsed_year) { in GetAdjustedYear() argument
68 if (parsed_year < 100) { in GetAdjustedYear()
69 if (parsed_year < 50) { in GetAdjustedYear()
70 return parsed_year + 2000; in GetAdjustedYear()
72 return parsed_year + 1900; in GetAdjustedYear()
75 return parsed_year; in GetAdjustedYear()
Dextractor.cc393 int* parsed_year) const { in ParseYear()
394 if (!ParseDigits(input, parsed_year)) { in ParseYear()
397 *parsed_year = GetAdjustedYear(*parsed_year); in ParseYear()
Dutils.h34 int GetAdjustedYear(const int parsed_year);
Dextractor.h87 bool ParseYear(const UnicodeText& input, int* parsed_year) const;