unknown
2025-09-10 a4fc45393e242f15517f9347f95e55c77887b332
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
/* 工具类 */
//提供各种检测输入或者输出的有效性的函数
 
#ifndef TEXTVALIDATOR_H
#define TEXTVALIDATOR_H
 
/* 自定义头文件 */
 
/* 系统头文键 */
#include <QString>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
 
class TextValidator
{
public:
    TextValidator();
    ~TextValidator();
 
    /* 辅助函数 */
    static bool isValidUsername(const QString username);
    static bool isValidPassword(const QString password);
    static bool isValidEmail(const QString email);
    static bool isValidTelephone(const QString telephone);
 
};
 
#endif // TEXTVALIDATOR_H