Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/parsing/
Dmatcher_test.cc65 MATCHER_P3(IsNonterminal, begin, end, name,
81 return ExplainMatchResult(IsNonterminal(begin, end, name), arg,
145 ElementsAre(IsNonterminal(0, 4, "<test>"), in TEST_F()
146 IsNonterminal(0, 4, "<action>"))); in TEST_F()
241 IsNonterminal(4, 6, "<output_3>"), in TEST_F()
242 IsNonterminal(4, 6, "<thestarbrownfox>"), in TEST_F()
243 IsNonterminal(3, 6, "<thestarbrownfox>"), in TEST_F()
244 IsNonterminal(2, 6, "<thestarbrownfox>"), in TEST_F()
245 IsNonterminal(1, 6, "<thestarbrownfox>"), in TEST_F()
246 IsNonterminal(0, 6, "<thestarbrownfox>"))); in TEST_F()
[all …]
/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc123 bool IsNonterminal(StringPiece rhs_component) { in IsNonterminal() function
357 if (IsNonterminal(rhs_component)) { in Add()