Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/zlib/
Dzlib_regex.cc57 std::unique_ptr<UniLib::RegexPattern> regex_pattern; in UncompressMakeRegexPattern() local
59 regex_pattern = unilib.CreateLazyRegexPattern(unicode_regex_pattern); in UncompressMakeRegexPattern()
61 regex_pattern = unilib.CreateRegexPattern(unicode_regex_pattern); in UncompressMakeRegexPattern()
64 if (!regex_pattern) { in UncompressMakeRegexPattern()
68 return regex_pattern; in UncompressMakeRegexPattern()
/external/libtextclassifier/utils/
Dregex-match_test.cc63 auto regex_pattern = unilib_.CreateRegexPattern(pattern); in TEST_F() local
64 ASSERT_TRUE(regex_pattern != nullptr); in TEST_F()
65 auto matcher = regex_pattern->Matcher(message); in TEST_F()
/external/libtextclassifier/utils/utf8/
Dunilib_test-include.cc67 const UnicodeText regex_pattern = in TEST_F() local
70 unilib_.CreateRegexPattern(regex_pattern); in TEST_F()
85 const UnicodeText regex_pattern = in TEST_F() local
88 unilib_.CreateRegexPattern(regex_pattern); in TEST_F()
143 const UnicodeText regex_pattern = in TEST_F() local
146 unilib_.CreateRegexPattern(regex_pattern); in TEST_F()
/external/libtextclassifier/annotator/
Dannotator.cc470 for (const auto& regex_pattern : *model_->regex_model()->patterns()) { in InitializeRegexModel()
473 *unilib_, regex_pattern->pattern(), in InitializeRegexModel()
474 regex_pattern->compressed_pattern(), in InitializeRegexModel()
481 if (regex_pattern->enabled_modes() & ModeFlag_ANNOTATION) { in InitializeRegexModel()
484 if (regex_pattern->enabled_modes() & ModeFlag_CLASSIFICATION) { in InitializeRegexModel()
487 if (regex_pattern->enabled_modes() & ModeFlag_SELECTION) { in InitializeRegexModel()
491 regex_pattern, in InitializeRegexModel()
1370 const CompiledRegexPattern& regex_pattern = regex_patterns_[pattern_id]; in RegexClassifyText() local
1372 regex_pattern.pattern->Matcher(selection_text_unicode); in RegexClassifyText()
1375 if (regex_pattern.config->use_approximate_matching()) { in RegexClassifyText()
[all …]
/external/libtextclassifier/annotator/datetime/
Dparser.cc54 std::unique_ptr<UniLib::RegexPattern> regex_pattern = in DatetimeParser() local
58 if (!regex_pattern) { in DatetimeParser()
62 rules_.push_back({std::move(regex_pattern), regex, pattern}); in DatetimeParser()
75 std::unique_ptr<UniLib::RegexPattern> regex_pattern = in DatetimeParser() local
79 if (!regex_pattern) { in DatetimeParser()
83 extractor_rules_.push_back(std::move(regex_pattern)); in DatetimeParser()
/external/flatbuffers/.travis/
Dcheck-sources.sh.py5 def check_encoding(encoding, scan_dir, regex_pattern): argument
9 cmp = re.compile(regex_pattern)