1
0

regex.hpp 361 B

1234567891011121314
  1. #ifndef AFUN_REGEX
  2. #define AFUN_REGEX
  3. #define REGEX_ERROR_SIZE (512)
  4. #include "aFunToolExport.h"
  5. typedef struct af_Regex af_Regex;
  6. AFUN_TOOL_EXPORT af_Regex *makeRegex(const char *pattern, char **error);
  7. AFUN_TOOL_EXPORT void freeRegex(af_Regex *rg);
  8. AFUN_TOOL_EXPORT int matchRegex(const char *subject, af_Regex *rg, char **error);
  9. #endif //AFUN_REGEX