Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Drules.h152 void AddRegex(const std::string& lhs, const std::string& regex_pattern);
153 void AddRegex(int lhs, const std::string& regex_pattern);
Drules.cc408 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()
Drules_test.cc141 rules.AddRegex("<code>", "[A-Z]+"); in TEST()
142 rules.AddRegex("<numbers>", "\\d+"); in TEST()
Dir.h180 Nonterm AddRegex(Nonterm lhs, const std::string& regex_pattern);
Dir.cc253 Nonterm Ir::AddRegex(Nonterm lhs, const std::string& regex_pattern) { in AddRegex() function in libtextclassifier3::grammar::Ir
/external/libtextclassifier/native/utils/grammar/parsing/
Dparser_test.cc185 rules.AddRegex("<code>", in TEST_F()