|
@@ -1,17 +1,14 @@
|
|
|
-#ifndef AFUN_REGEX
|
|
|
-#define AFUN_REGEX
|
|
|
-#include "aFunToolExport.h"
|
|
|
+#ifndef AFUN_TOOL_REGEX
|
|
|
+#define AFUN_TOOL_REGEX
|
|
|
#include <regex>
|
|
|
|
|
|
namespace aFuntool {
|
|
|
- const int REGEX_ERROR_SIZE = 512;
|
|
|
-
|
|
|
- class AFUN_TOOL_EXPORT Regex {
|
|
|
+ class Regex { // 整个对象都是inline的, 不需要Export符号
|
|
|
std::regex re; // 正则表达式
|
|
|
std::string pattern; // 正则表达式的字符串
|
|
|
public:
|
|
|
inline explicit Regex(std::string pattern_);
|
|
|
- inline Regex(const Regex ®ex);
|
|
|
+ inline Regex(const Regex ®ex) noexcept;
|
|
|
inline Regex(Regex &®ex) noexcept;
|
|
|
Regex &operator=(const Regex ®ex)=delete;
|
|
|
Regex &operator=(Regex &®ex)=delete;
|
|
@@ -23,4 +20,4 @@ namespace aFuntool {
|
|
|
|
|
|
#include "tool-regex.inline.h"
|
|
|
|
|
|
-#endif //AFUN_REGEX
|
|
|
+#endif //AFUN_TOOL_REGEX
|