Lines Matching refs:rule
37 RulesModel_::RegexRuleT* rule = model->rules->regex_rule[i].get(); in CompressActionsModel() local
38 rule->compressed_pattern.reset(new CompressedBufferT); in CompressActionsModel()
39 zlib_compressor->Compress(rule->pattern, rule->compressed_pattern.get()); in CompressActionsModel()
40 rule->pattern.clear(); in CompressActionsModel()
46 RulesModel_::RegexRuleT* rule = in CompressActionsModel() local
48 if (!rule->pattern.empty()) { in CompressActionsModel()
49 rule->compressed_pattern.reset(new CompressedBufferT); in CompressActionsModel()
50 zlib_compressor->Compress(rule->pattern, in CompressActionsModel()
51 rule->compressed_pattern.get()); in CompressActionsModel()
52 rule->pattern.clear(); in CompressActionsModel()
54 if (!rule->output_pattern.empty()) { in CompressActionsModel()
55 rule->compressed_output_pattern.reset(new CompressedBufferT); in CompressActionsModel()
56 zlib_compressor->Compress(rule->output_pattern, in CompressActionsModel()
57 rule->compressed_output_pattern.get()); in CompressActionsModel()
58 rule->output_pattern.clear(); in CompressActionsModel()
97 RulesModel_::RegexRuleT* rule = model->rules->regex_rule[i].get(); in DecompressActionsModel() local
98 if (!zlib_decompressor->MaybeDecompress(rule->compressed_pattern.get(), in DecompressActionsModel()
99 &rule->pattern)) { in DecompressActionsModel()
103 rule->compressed_pattern.reset(nullptr); in DecompressActionsModel()
110 RulesModel_::RegexRuleT* rule = in DecompressActionsModel() local
112 if (!zlib_decompressor->MaybeDecompress(rule->compressed_pattern.get(), in DecompressActionsModel()
113 &rule->pattern)) { in DecompressActionsModel()
118 rule->compressed_output_pattern.get(), &rule->output_pattern)) { in DecompressActionsModel()
122 rule->compressed_pattern.reset(nullptr); in DecompressActionsModel()
123 rule->compressed_output_pattern.reset(nullptr); in DecompressActionsModel()