Searched refs:RhsElement (Results 1 – 2 of 2) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | rules.h | 62 struct RhsElement { struct 63 RhsElement() {} in RhsElement() function 64 explicit RhsElement(const std::string& terminal, const bool is_optional) in RhsElement() argument 69 explicit RhsElement(const int nonterminal, const bool is_optional, 87 std::vector<RhsElement> rhs; argument 123 void Add(int lhs, const std::vector<RhsElement>& rhs, 147 void AddValueMapping(int lhs, const std::vector<RhsElement>& rhs, int64 value, 184 int lhs, const std::vector<RhsElement>& rhs, CallbackId callback, 191 std::vector<RhsElement> OptimizeRhs(const std::vector<RhsElement>& rhs, 196 std::vector<RhsElement> ResolveAnchors( [all …]
|
D | rules.cc | 58 for (const Rules::RhsElement& element : rule.rhs) { in IsRhsAssigned() 104 for (const Rules::RhsElement& element : rule.rhs) { in LowerRule() 193 bool Rules::IsNonterminalOfName(const RhsElement& element, in IsNonterminalOfName() 206 const int lhs, const std::vector<RhsElement>& rhs, in ExpandOptionals() 246 std::vector<Rules::RhsElement> Rules::ResolveAnchors( in ResolveAnchors() 247 const std::vector<RhsElement>& rhs) const { in ResolveAnchors() 263 return std::vector<Rules::RhsElement>(begin, end); in ResolveAnchors() 266 std::vector<Rules::RhsElement> Rules::ResolveFillers( in ResolveFillers() 267 const std::vector<RhsElement>& rhs, int shard) { in ResolveFillers() 268 std::vector<RhsElement> result; in ResolveFillers() [all …]
|