regex.h 548 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. regex.h - POSIX regular expression API definitions
  3. This header is under public domain.
  4. */
  5. #ifndef _REGEX_H
  6. #define _REGEX_H 1
  7. #include <tre/tre.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. int regcomp(regex_t *preg, const char *pattern,
  12. int cflags);
  13. size_t regerror(int errcode, const regex_t *preg,
  14. char *errbuf, size_t errbuf_size);
  15. int regexec(const regex_t *preg, const char *string,
  16. size_t nmatch, regmatch_t pmatch[], int eflags);
  17. void regfree(regex_t *preg);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* regex.h */