regex.h 364 B

123456789101112131415
  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. extern char regex_error[REGEX_ERROR_SIZE];
  7. AFUN_TOOL_EXPORT af_Regex *makeRegex(char *pattern);
  8. AFUN_TOOL_EXPORT void freeRegex(af_Regex *rg);
  9. AFUN_TOOL_EXPORT int matchRegex(char *subject, af_Regex *rg);
  10. #endif //AFUN_REGEX