Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/zlib/
Dzlib_regex.cc58 std::unique_ptr<UniLib::RegexPattern> regex_pattern; in UncompressMakeRegexPattern() local
60 regex_pattern = unilib.CreateLazyRegexPattern(unicode_regex_pattern); in UncompressMakeRegexPattern()
62 regex_pattern = unilib.CreateRegexPattern(unicode_regex_pattern); in UncompressMakeRegexPattern()
65 if (!regex_pattern) { in UncompressMakeRegexPattern()
69 return regex_pattern; in UncompressMakeRegexPattern()
/external/libtextclassifier/native/utils/
Dregex-match_test.cc67 const std::unique_ptr<UniLib::RegexPattern> regex_pattern = in TEST_F() local
69 ASSERT_TRUE(regex_pattern != nullptr); in TEST_F()
71 regex_pattern->Matcher(message); in TEST_F()
85 const std::unique_ptr<UniLib::RegexPattern> regex_pattern = in TEST_F() local
87 ASSERT_TRUE(regex_pattern != nullptr); in TEST_F()
91 regex_pattern->Matcher(message); in TEST_F()
/external/flatbuffers/.travis/
Dcheck-sources.sh.py5 def check_encoding(encoding, scan_dir, regex_pattern): argument
9 cmp = re.compile(regex_pattern)
/external/libtextclassifier/native/annotator/datetime/
Dparser.cc55 std::unique_ptr<UniLib::RegexPattern> regex_pattern = in DatetimeParser() local
59 if (!regex_pattern) { in DatetimeParser()
63 rules_.push_back({std::move(regex_pattern), regex, pattern}); in DatetimeParser()
76 std::unique_ptr<UniLib::RegexPattern> regex_pattern = in DatetimeParser() local
80 if (!regex_pattern) { in DatetimeParser()
84 extractor_rules_.push_back(std::move(regex_pattern)); in DatetimeParser()
/external/libtextclassifier/native/annotator/
Dannotator.cc574 for (const auto regex_pattern : *model_->regex_model()->patterns()) { in InitializeRegexModel()
577 *unilib_, regex_pattern->pattern(), in InitializeRegexModel()
578 regex_pattern->compressed_pattern(), in InitializeRegexModel()
585 if (regex_pattern->enabled_modes() & ModeFlag_ANNOTATION) { in InitializeRegexModel()
588 if (regex_pattern->enabled_modes() & ModeFlag_CLASSIFICATION) { in InitializeRegexModel()
591 if (regex_pattern->enabled_modes() & ModeFlag_SELECTION) { in InitializeRegexModel()
595 regex_pattern, in InitializeRegexModel()
1601 const CompiledRegexPattern& regex_pattern = regex_patterns_[pattern_id]; in RegexClassifyText() local
1603 regex_pattern.pattern->Matcher(selection_text_unicode); in RegexClassifyText()
1606 if (regex_pattern.config->use_approximate_matching()) { in RegexClassifyText()
[all …]
/external/libtextclassifier/native/utils/grammar/utils/
Drules.h144 void AddRegex(const std::string& lhs, const std::string& regex_pattern);
145 void AddRegex(int lhs, const std::string& regex_pattern);
Drules.cc382 void Rules::AddRegex(const std::string& lhs, const std::string& regex_pattern) { in AddRegex() argument
383 AddRegex(AddNonterminal(lhs), regex_pattern); in AddRegex()
386 void Rules::AddRegex(int lhs, const std::string& regex_pattern) { in AddRegex() argument
388 regex_rules_.push_back(regex_pattern); in AddRegex()
Dir.h173 Nonterm AddRegex(Nonterm lhs, const std::string& regex_pattern);
Dir.cc261 Nonterm Ir::AddRegex(Nonterm lhs, const std::string& regex_pattern) { in AddRegex() argument
263 regex_rules_.emplace_back(regex_pattern, lhs); in AddRegex()
/external/tensorflow/tensorflow/python/tools/
Dinspect_checkpoint.py39 regex_pattern = re.compile(count_exclude_pattern)
44 if regex_pattern.search(v):