Searched refs:DateParseData (Results 1 – 7 of 7) sorted by relevance
/external/libtextclassifier/util/calendar/ |
D | calendar-icu.cc | 30 case DateParseData::MONDAY: in MapToDayOfWeekOrDefault() 32 case DateParseData::TUESDAY: in MapToDayOfWeekOrDefault() 34 case DateParseData::WEDNESDAY: in MapToDayOfWeekOrDefault() 36 case DateParseData::THURSDAY: in MapToDayOfWeekOrDefault() 38 case DateParseData::FRIDAY: in MapToDayOfWeekOrDefault() 40 case DateParseData::SATURDAY: in MapToDayOfWeekOrDefault() 42 case DateParseData::SUNDAY: in MapToDayOfWeekOrDefault() 53 case DateParseData::MONDAY: in DispatchToRecedeOrToLastDayOfWeek() 54 case DateParseData::TUESDAY: in DispatchToRecedeOrToLastDayOfWeek() 55 case DateParseData::WEDNESDAY: in DispatchToRecedeOrToLastDayOfWeek() [all …]
|
D | calendar_test.cc | 33 DateParseData{0l, 0, 0, 0, 0, 0, 0, 0, 0, 0, in TEST() 34 static_cast<DateParseData::Relation>(0), in TEST() 35 static_cast<DateParseData::RelationType>(0), 0}, in TEST() 45 DateParseData data; in TEST() 52 data.field_set_mask = DateParseData::YEAR_FIELD | DateParseData::MONTH_FIELD | in TEST() 53 DateParseData::DAY_FIELD | DateParseData::HOUR_FIELD | in TEST() 54 DateParseData::MINUTE_FIELD | in TEST() 55 DateParseData::SECOND_FIELD; in TEST()
|
D | calendar-icu.h | 33 bool InterpretParseData(const DateParseData& parse_data,
|
/external/libtextclassifier/datetime/ |
D | extractor.cc | 23 bool DatetimeExtractor::Extract(DateParseData* result, in Extract() 53 result->field_set_mask |= DateParseData::YEAR_FIELD; in Extract() 61 result->field_set_mask |= DateParseData::MONTH_FIELD; in Extract() 69 result->field_set_mask |= DateParseData::DAY_FIELD; in Extract() 77 result->field_set_mask |= DateParseData::HOUR_FIELD; in Extract() 85 result->field_set_mask |= DateParseData::MINUTE_FIELD; in Extract() 93 result->field_set_mask |= DateParseData::SECOND_FIELD; in Extract() 101 result->field_set_mask |= DateParseData::AMPM_FIELD; in Extract() 109 result->field_set_mask |= DateParseData::RELATION_DISTANCE_FIELD; in Extract() 117 result->field_set_mask |= DateParseData::RELATION_FIELD; in Extract() [all …]
|
D | parser.cc | 333 DatetimeGranularity GetGranularity(const DateParseData& data) { in GetGranularity() 335 if ((data.field_set_mask & DateParseData::YEAR_FIELD) || in GetGranularity() 336 (data.field_set_mask & DateParseData::RELATION_TYPE_FIELD && in GetGranularity() 337 (data.relation_type == DateParseData::RelationType::YEAR))) { in GetGranularity() 340 if ((data.field_set_mask & DateParseData::MONTH_FIELD) || in GetGranularity() 341 (data.field_set_mask & DateParseData::RELATION_TYPE_FIELD && in GetGranularity() 342 (data.relation_type == DateParseData::RelationType::MONTH))) { in GetGranularity() 345 if (data.field_set_mask & DateParseData::RELATION_TYPE_FIELD && in GetGranularity() 346 (data.relation_type == DateParseData::RelationType::WEEK)) { in GetGranularity() 349 if (data.field_set_mask & DateParseData::DAY_FIELD || in GetGranularity() [all …]
|
D | extractor.h | 61 bool Extract(DateParseData* result, CodepointSpan* result_span) const; 91 DateParseData::Relation* parsed_relation) const; 97 DateParseData::RelationType* parsed_relation_type) const;
|
/external/libtextclassifier/ |
D | types.h | 308 struct DateParseData { struct
|