9 #ifndef __PDG_BASE_PATTERN_H__
10 #define __PDG_BASE_PATTERN_H__
44 {
return myPattern.isstring() &&
45 !myPattern.isEmpty(); }
66 eSeparatorToken =
':',
78 eRangeBeginToken =
'[',
84 eAttributeToken =
'@',
87 eComponentToken =
'.',
UT_WorkBuffer myErrors
Parse errors.
void reset(const UT_StringHolder &pattern)
Resets the pattern.
bool hasPattern() const
Returns true if there is a pattern set.
bool myIsValid
Whether or not the pattern is valid.
ParseTokens
Special tokens, in addition to alphanumeric and whitespace.
const UT_WorkBuffer & errors() const
If the pattern is invalid, contains parse errors.
UT_StringHolder myPattern
The pattern used to construct this object.
const UT_StringHolder & pattern() const
Returns the pattern used to construct this object.
PDG_BasePattern(const UT_StringHolder &pattern)
Constructs a default-initialized, invalid pattern.