mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
45 lines
1.1 KiB
C++
45 lines
1.1 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;
|
|
};
|
|
|
|
|
|
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;
|
|
};
|
|
|
|
} // namespace RX
|
|
|
|
#endif // GLOBALREGEX_HH
|