7 #ifndef REGEXRULEFACTORY_H_
8 #define REGEXRULEFACTORY_H_
10 #include "highlightrulefactory.h"
24 const std::string &s);
27 const WordList &list,
bool caseSensitve =
true);
30 const WordList &list,
bool caseSensitve =
true);
33 const std::string &start,
const std::string &end,
34 const std::string &escape =
"",
bool nested =
false);
37 const std::string &start,
const std::string &end,
38 const std::string &escape,
bool nested);
41 const std::string &rep);
virtual HighlightRule * createMultiLineRule(const std::string &name, const std::string &start, const std::string &end, const std::string &escape, bool nested)
Creates a rule for matching a delimited string (possibly spanning more than one line) ...
Definition: regexrulefactory.cpp:124
virtual HighlightRule * createWordListRule(const std::string &name, const WordList &list, bool caseSensitve=true)
Creates a rule for detecting a list of specific words, i.e., isolated from other parts by a space or ...
Definition: regexrulefactory.cpp:52
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
Abstract factory for highlighting rules.
Definition: highlightrulefactory.h:23
virtual HighlightRule * createCompoundRule(const ElemNameList &nameList, const std::string &rep)
Creates a rule for matching many element names, each represented by a subexpression (the number of su...
Definition: regexrulefactory.cpp:170
virtual HighlightRule * createListRule(const std::string &name, const WordList &list, bool caseSensitve=true)
Creates a rule for detecting a list of specific expressions.
Definition: regexrulefactory.cpp:71
virtual HighlightRule * createSimpleRule(const std::string &name, const std::string &s)
Creates a generic highlighting rule.
Definition: regexrulefactory.cpp:47
Implementation of the abstract factory, creating highlighting rules based on boost::regex regular exp...
Definition: regexrulefactory.h:18
Base class for highlight rules.
Definition: highlightrule.h:27
virtual HighlightRule * createLineRule(const std::string &name, const std::string &start, const std::string &end, const std::string &escape="", bool nested=false)
Creates a rule for matching a delimited string (spanning a single line)
Definition: regexrulefactory.cpp:81