Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/duration/
Dduration.cc161 bool has_quantity = false; in FindDurationStartingAt() local
176 has_quantity = true; in FindDurationStartingAt()
181 } else if (((!options_->require_quantity() || has_quantity) && in FindDurationStartingAt()
189 has_quantity = false; in FindDurationStartingAt()
202 has_quantity; in FindDurationStartingAt()
323 bool has_quantity = false; in ParseQuantityDurationUnitToken() local
327 if (has_quantity || !ParseQuantityToken(sub_token, value)) { in ParseQuantityDurationUnitToken()
330 has_quantity = true; in ParseQuantityDurationUnitToken()
338 return (!options_->require_quantity() || has_quantity) && in ParseQuantityDurationUnitToken()