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