Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/datetime/
Dextractor.cc39 UnicodeText group_text; in Extract() local
44 if (!GroupTextFromMatch(group_id, &group_text)) { in Extract()
50 if (group_text.empty()) { in Extract()
57 if (!ParseYear(group_text, &(year))) { in Extract()
66 if (!ParseMonth(group_text, &(month))) { in Extract()
76 if (!ParseDigits(group_text, &(day_of_month))) { in Extract()
86 if (!ParseDigits(group_text, &(hour))) { in Extract()
95 if (!ParseDigits(group_text, &(minute)) && in Extract()
96 !ParseWrittenNumber(group_text, &(minute))) { in Extract()
106 if (!ParseDigits(group_text, &(second))) { in Extract()
[all …]
/external/libtextclassifier/native/utils/
Dregex-match.cc159 std::string group_text = matcher->Group(group_id, &status).ToUTF8String(); in GetCapturingGroupText() local
160 if (status != UniLib::RegexMatcher::kNoError || group_text.empty()) { in GetCapturingGroupText()
163 return Optional<std::string>(group_text); in GetCapturingGroupText()
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc318 StringPiece group_text = StringPiece( in InstantiateClassificationInterpretation() local
323 UTF8ToUnicodeText(group_text, /*do_copy=*/false); in InstantiateClassificationInterpretation()