Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/datetime/
Dextractor.cc42 UnicodeText group_text; in Extract() local
47 if (!GroupTextFromMatch(group_id, &group_text)) { in Extract()
53 if (group_text.empty()) { in Extract()
60 if (!ParseYear(group_text, &(year))) { in Extract()
69 if (!ParseMonth(group_text, &(month))) { in Extract()
79 if (!ParseDigits(group_text, &(day_of_month))) { in Extract()
89 if (!ParseDigits(group_text, &(hour))) { in Extract()
98 if (!ParseDigits(group_text, &(minute)) && in Extract()
99 !ParseWrittenNumber(group_text, &(minute))) { in Extract()
109 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()