goldendict-ng/base/globalregex.hh
Xiao YiFang bcca3e7ec2 fix: findEndOfCloseDiv does not work as always
if the start div is <div> ,the actual result will has an extra html closed tags .
2023-04-16 11:46:26 +08:00

65 lines
1.4 KiB
C++

#ifndef GLOBALREGEX_HH
#define GLOBALREGEX_HH
#include <QRegularExpression>
namespace RX
{
class Ftx
{
public:
static QRegularExpression regBrackets;
static QRegularExpression regSplit;
static QRegularExpression spacesRegExp;
static QRegularExpression wordRegExp;
static QRegularExpression setsRegExp;
static QRegularExpression regexRegExp;
static QRegularExpression handleRoundBracket;
static QRegularExpression noRoundBracket;
static QRegularExpression tokenBoundary;
static QRegularExpression token;
};
class Mdx
{
public:
static QRegularExpression allLinksRe;
static QRegularExpression wordCrossLink;
static QRegularExpression anchorIdRe;
static QRegularExpression anchorIdReWord;
static QRegularExpression anchorIdRe2;
static QRegularExpression anchorLinkRe;
static QRegularExpression audioRe;
static QRegularExpression stylesRe;
static QRegularExpression stylesRe2;
static QRegularExpression inlineScriptRe;
static QRegularExpression closeScriptTagRe;
static QRegularExpression srcRe;
static QRegularExpression srcRe2;
static QRegularExpression links;
static QRegularExpression fontFace;
static QRegularExpression styleElment;
};
class Zim{
public:
static QRegularExpression linkSpecialChar;
};
class Epwing{
public:
static QRegularExpression refWord;
};
namespace Html {
const static QRegularExpression startDivTag( R"(<div[\s>])" );
}
} // namespace RX
#endif // GLOBALREGEX_HH