ComponentClass::ComponentClass(const ParseMode &mode_in)
: m_negate(false), mode(mode_in), in_cand_range(false),
- range_start(INVALID_UNICODE), finalized(false), firstChar('\0') {}
+ range_start(INVALID_UNICODE), finalized(false) {}
ComponentClass::~ComponentClass() { }
bool isNegated() const { return m_negate; }
- void setFirstChar(char c) { firstChar = c; }
- char getFirstChar() const { return firstChar; }
-
std::vector<PositionInfo> first() const override = 0;
std::vector<PositionInfo> last() const override = 0;
bool empty() const override { return false; } /* always 1 codepoint wide */
unichar range_start;
bool finalized;
- /** Literal character at the start of this character class, e.g. '.' for
- * the class [.abc]. Used to identify (unsupported) POSIX collating
- * elements. */
- char firstChar;
-
virtual void createRange(unichar) = 0;
// Protected copy ctor. Use clone instead.
ComponentClass(const ComponentClass &other)
: Component(other), m_negate(other.m_negate), mode(other.mode),
in_cand_range(other.in_cand_range), range_start(other.range_start),
- finalized(other.finalized),
- firstChar(other.firstChar) {}
+ finalized(other.finalized) {}
};
} // namespace ue2