_regex.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* this file is copied from libc/include/regex.h */
  2. #ifndef _REGEX_H
  3. #include <regex.h>
  4. /* Document internal interfaces. */
  5. extern reg_syntax_t __re_set_syntax (reg_syntax_t syntax) attribute_hidden;
  6. extern const char *__re_compile_pattern (const char *pattern, size_t length,
  7. struct re_pattern_buffer *buffer) attribute_hidden;
  8. extern int __re_compile_fastmap (struct re_pattern_buffer *buffer) attribute_hidden;
  9. extern int __re_search (struct re_pattern_buffer *buffer, const char *string,
  10. int length, int start, int range,
  11. struct re_registers *regs) attribute_hidden;
  12. extern int __re_search_2
  13. (struct re_pattern_buffer *buffer, const char *string1,
  14. int length1, const char *string2, int length2,
  15. int start, int range, struct re_registers *regs, int stop) attribute_hidden;
  16. extern int __re_match
  17. (struct re_pattern_buffer *buffer, const char *string,
  18. int length, int start, struct re_registers *regs) attribute_hidden;
  19. extern int __re_match_2
  20. (struct re_pattern_buffer *buffer, const char *string1,
  21. int length1, const char *string2, int length2,
  22. int start, struct re_registers *regs, int stop) attribute_hidden;
  23. extern void __re_set_registers
  24. (struct re_pattern_buffer *buffer, struct re_registers *regs,
  25. unsigned num_regs, regoff_t *starts, regoff_t *ends) attribute_hidden;
  26. extern int __regcomp (regex_t *__preg, const char *__pattern, int __cflags) attribute_hidden;
  27. extern int __regexec (const regex_t *__preg, const char *__string,
  28. size_t __nmatch, regmatch_t __pmatch[], int __eflags) attribute_hidden;
  29. extern size_t __regerror (int __errcode, const regex_t *__preg,
  30. char *__errbuf, size_t __errbuf_size) attribute_hidden;
  31. extern void __regfree (regex_t *__preg) attribute_hidden;
  32. #endif