Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc193 bool Rules::IsNonterminalOfName(const RhsElement& element, in IsNonterminalOfName() function in libtextclassifier3::grammar::Rules
253 if (IsNonterminalOfName(rhs.front(), kStartNonterm) && in ResolveAnchors()
254 IsNonterminalOfName(rhs[1], kFiller)) { in ResolveAnchors()
258 if (IsNonterminalOfName(rhs.back(), kEndNonterm) && in ResolveAnchors()
259 IsNonterminalOfName(rhs[rhs.size() - 2], kFiller)) { in ResolveAnchors()
270 if (i == rhs.size() - 1 || IsNonterminalOfName(rhs[i], kFiller) || in ResolveFillers()
271 rhs[i].is_optional || !IsNonterminalOfName(rhs[i + 1], kFiller)) { in ResolveFillers()
420 if (IsNonterminalOfName(rhs_element, kFiller)) { in UsesFillers()
Drules.h214 bool IsNonterminalOfName(const RhsElement& element,