Searched refs:AddRegex (Results 1 – 6 of 6) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | rules.h | 152 void AddRegex(const std::string& lhs, const std::string& regex_pattern); 153 void AddRegex(int lhs, const std::string& regex_pattern);
|
D | rules.cc | 408 void Rules::AddRegex(const std::string& lhs, const std::string& regex_pattern) { in AddRegex() function in libtextclassifier3::grammar::Rules 409 AddRegex(AddNonterminal(lhs), regex_pattern); in AddRegex() 412 void Rules::AddRegex(int lhs, const std::string& regex_pattern) { in AddRegex() function in libtextclassifier3::grammar::Rules 471 rules.AddRegex(nonterminal_ids[i], regex_rules_[regex_rule]); in Finalize()
|
D | rules_test.cc | 141 rules.AddRegex("<code>", "[A-Z]+"); in TEST() 142 rules.AddRegex("<numbers>", "\\d+"); in TEST()
|
D | ir.h | 180 Nonterm AddRegex(Nonterm lhs, const std::string& regex_pattern);
|
D | ir.cc | 253 Nonterm Ir::AddRegex(Nonterm lhs, const std::string& regex_pattern) { in AddRegex() function in libtextclassifier3::grammar::Ir
|
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | parser_test.cc | 185 rules.AddRegex("<code>", in TEST_F()
|