File: filter.f

package info (click to toggle)
filtermail 1.06.00-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,688 kB
  • sloc: cpp: 2,487; fortran: 249; makefile: 106; ansic: 51; sh: 36
file content (35 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
inline void Filter::addRule(size_t begin, size_t rule, 
                            std::string const &nrTxt, size_t beyondIdx)
{
    d_rule = &d_rules->addRule(begin, rule, nrTxt, beyondIdx);
}

inline void Filter::matchMode(eMatchMode mode) 
{
    d_expr = &d_rule->matchMode(mode);
}

inline void Filter::endRule(size_t offset)
{
    d_rule->setEnd(offset);
}

inline bool Filter::matchCondition()
{
    return d_condition.matched(d_rules->ruleMatched());
}

inline void Filter::matchExpr(eTruth truth)
{
    d_rule->matchExpr(truth);
}

inline bool Filter::regex(std::string const &txt)
{
    return d_expr->regex(txt);
}

inline void Filter::setDate(std::string const &date, size_t idx)
{
    d_rule->setDate(date, idx);
}