File: RegularExpression.h

package info (click to toggle)
openterface-qt 0.1.0%2Bds-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 1,444 kB
  • sloc: cpp: 9,552; sh: 127; python: 57; ansic: 4; makefile: 4
file content (32 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef REGULAR_EXPRESSIONS_H
#define REGULAR_EXPRESSIONS_H

#include <QRegularExpression>
#include <QString>

class RegularExpression {
public:
    RegularExpression(const RegularExpression&) = delete;
    RegularExpression& operator=(const RegularExpression&) = delete;
    
    static RegularExpression& instance() {
        static RegularExpression instance;
        return instance;
    }

    QRegularExpression onRegex;
    QRegularExpression offRegex;
    QRegularExpression sendEmbedRegex;
    QRegularExpression numberRegex;
    QRegularExpression buttonRegex;
    QRegularExpression downUpRegex;
    QRegularExpression relativeRegex;
    QRegularExpression braceKeyRegex;
    QRegularExpression controlKeyRegex;

private:
    RegularExpression();
    ~RegularExpression() = default;
};

#endif // REGULAR_EXPRESSIONS_H