Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc123 bool IsNonterminal(StringPiece rhs_component) { in IsNonterminal() argument
124 return rhs_component[0] == '<' && in IsNonterminal()
125 rhs_component[rhs_component.size() - 1] == '>'; in IsNonterminal()
129 void ValidateTerminal(StringPiece rhs_component) { in ValidateTerminal() argument
130 TC3_CHECK_EQ(rhs_component.find('<'), std::string::npos) in ValidateTerminal()
131 << "Rhs terminal `" << rhs_component << "` contains an angle bracket."; in ValidateTerminal()
132 TC3_CHECK_EQ(rhs_component.find('>'), std::string::npos) in ValidateTerminal()
133 << "Rhs terminal `" << rhs_component << "` contains an angle bracket."; in ValidateTerminal()
134 TC3_CHECK_EQ(rhs_component.find('?'), std::string::npos) in ValidateTerminal()
135 << "Rhs terminal `" << rhs_component << "` contains a question mark."; in ValidateTerminal()
[all …]