Searched refs:regex_pattern (Results 1 – 6 of 6) sorted by relevance
57 std::unique_ptr<UniLib::RegexPattern> regex_pattern; in UncompressMakeRegexPattern() local59 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()
63 auto regex_pattern = unilib_.CreateRegexPattern(pattern); in TEST_F() local64 ASSERT_TRUE(regex_pattern != nullptr); in TEST_F()65 auto matcher = regex_pattern->Matcher(message); in TEST_F()
67 const UnicodeText regex_pattern = in TEST_F() local70 unilib_.CreateRegexPattern(regex_pattern); in TEST_F()85 const UnicodeText regex_pattern = in TEST_F() local88 unilib_.CreateRegexPattern(regex_pattern); in TEST_F()143 const UnicodeText regex_pattern = in TEST_F() local146 unilib_.CreateRegexPattern(regex_pattern); in TEST_F()
470 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() local1372 regex_pattern.pattern->Matcher(selection_text_unicode); in RegexClassifyText()1375 if (regex_pattern.config->use_approximate_matching()) { in RegexClassifyText()[all …]
54 std::unique_ptr<UniLib::RegexPattern> regex_pattern = in DatetimeParser() local58 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() local79 if (!regex_pattern) { in DatetimeParser()83 extractor_rules_.push_back(std::move(regex_pattern)); in DatetimeParser()
5 def check_encoding(encoding, scan_dir, regex_pattern): argument9 cmp = re.compile(regex_pattern)