Home
last modified time | relevance | path

Searched refs:group_text (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/annotator/datetime/
Dextractor.cc33 UnicodeText group_text; in Extract() local
38 if (!GroupTextFromMatch(group_id, &group_text)) { in Extract()
44 if (group_text.empty()) { in Extract()
49 if (!ParseYear(group_text, &(result->year))) { in Extract()
57 if (!ParseMonth(group_text, &(result->month))) { in Extract()
65 if (!ParseDigits(group_text, &(result->day_of_month))) { in Extract()
73 if (!ParseDigits(group_text, &(result->hour))) { in Extract()
81 if (!ParseDigits(group_text, &(result->minute))) { in Extract()
89 if (!ParseDigits(group_text, &(result->second))) { in Extract()
97 if (!ParseAMPM(group_text, &(result->ampm))) { in Extract()
[all …]
/external/libtextclassifier/utils/
Dregex-match.cc157 std::string group_text = matcher->Group(group_id, &status).ToUTF8String(); in SetFieldFromCapturingGroup() local
158 if (status != UniLib::RegexMatcher::kNoError || group_text.empty()) { in SetFieldFromCapturingGroup()
161 return flatbuffer->ParseAndSet(field_path, group_text); in SetFieldFromCapturingGroup()
/external/libtextclassifier/actions/
Dactions-suggestions.cc1269 const std::string group_text = in SuggestActionsFromRules() local
1275 if (group_text.empty()) { in SuggestActionsFromRules()
1282 /*default_response_text=*/group_text)); in SuggestActionsFromRules()