42 StringDef(
const std::string &s,
const std::string &o) :
43 stringdef(s), orig(o), doubleQuotedString(false), hasBackRef_(false) {
52 StringDef(
const std::string &s,
bool doubleQuotes =
false) :
53 stringdef(s), doubleQuotedString(doubleQuotes), hasBackRef_(false) {
104 typedef std::list<StringDef *> StringDefsBase;
113 for (StringDefsBase::iterator it = begin(); it != end(); ++it)
A collection (list) of StringDef's.
Definition: stringdef.h:110
const std::string toStringOriginal() const
return the original representation (without any preprocessing); this is useful for printing errors ...
Definition: stringdef.h:67
represent a string for a language definition file's element
Definition: stringdef.h:25
void setBackRef(bool b)
Definition: stringdef.h:89
std::string stringdef
the actual content
Definition: stringdef.h:28
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
StringDef(const std::string &s, bool doubleQuotes=false)
constructs a StringDef and record whether it comes from a double quoted string.
Definition: stringdef.h:52
bool doubleQuotedString
whether the string was specified with double quotes
Definition: stringdef.h:32
const std::string toString() const
return the string representation (after preprocessing)
Definition: stringdef.cpp:38
bool isDoubleQuoted() const
whether this comes from a double quoted string
Definition: stringdef.h:75
bool hasBackRef_
whether this is contains a back reference to a matched subexpression
Definition: stringdef.h:34
std::string orig
the original representation (without any preprocessing)
Definition: stringdef.h:30
bool hasBackRef() const
Definition: stringdef.h:82
StringDef(const std::string &s, const std::string &o)
constructs a StringDef and store also the original representation
Definition: stringdef.h:42
static StringDef * concat(const StringDef *s1, const StringDef *s2)
Given two StringDef produces a new StringDef (keeping properties such as hasBackRef) ...
Definition: stringdef.cpp:30