File indexing completed on 2024-04-21 05:51:36
0001 /* 0002 * SPDX-FileCopyrightText: 2002-2003 Jesper K. Pedersen <blackie@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-only 0005 **/ 0006 0007 #ifndef DOTREGEXP_H 0008 #define DOTREGEXP_H 0009 0010 #include "regexp.h" 0011 0012 /** 0013 Abstract syntax node for "the dot" regular expression (i.e. any characters) 0014 @internal 0015 */ 0016 class DotRegExp : public RegExp 0017 { 0018 public: 0019 DotRegExp(bool selected); 0020 0021 bool check(ErrorMap &, bool first, bool last) override; 0022 int precedence() const override 0023 { 0024 return 4; 0025 } 0026 0027 QDomNode toXml(QDomDocument *doc) const override; 0028 bool load(const QDomElement &, const QString &version) override; 0029 RegExpType type() const override 0030 { 0031 return DOT; 0032 } 0033 }; 0034 0035 #endif // DOTREGEXP_H