]>
Commit | Line | Data |
---|---|---|
5c2a0669 | 1 | #ifndef _REGEX_H |
2b83a2a4 | 2 | #include <posix/regex.h> |
5c2a0669 | 3 | |
31341567 | 4 | #ifndef _ISOMAC |
5c2a0669 | 5 | /* Document internal interfaces. */ |
2d87db5b | 6 | extern reg_syntax_t __re_set_syntax (reg_syntax_t syntax); |
5c2a0669 | 7 | |
2d87db5b UD |
8 | extern const char *__re_compile_pattern (const char *pattern, size_t length, |
9 | struct re_pattern_buffer *buffer); | |
5c2a0669 | 10 | |
2d87db5b | 11 | extern int __re_compile_fastmap (struct re_pattern_buffer *buffer); |
5c2a0669 | 12 | |
2d87db5b UD |
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); | |
5c2a0669 UD |
16 | |
17 | extern int __re_search_2 | |
2d87db5b UD |
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); | |
5c2a0669 UD |
21 | |
22 | extern int __re_match | |
2d87db5b UD |
23 | (struct re_pattern_buffer *buffer, const char *string, |
24 | int length, int start, struct re_registers *regs); | |
5c2a0669 UD |
25 | |
26 | extern int __re_match_2 | |
2d87db5b UD |
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); | |
5c2a0669 UD |
30 | |
31 | extern void __re_set_registers | |
2d87db5b UD |
32 | (struct re_pattern_buffer *buffer, struct re_registers *regs, |
33 | unsigned num_regs, regoff_t *starts, regoff_t *ends); | |
5c2a0669 | 34 | |
2d87db5b | 35 | extern int __regcomp (regex_t *__preg, const char *__pattern, int __cflags); |
5c2a0669 | 36 | |
2d87db5b UD |
37 | extern int __regexec (const regex_t *__preg, const char *__string, |
38 | size_t __nmatch, regmatch_t __pmatch[], int __eflags); | |
5c2a0669 | 39 | |
2d87db5b UD |
40 | extern size_t __regerror (int __errcode, const regex_t *__preg, |
41 | char *__errbuf, size_t __errbuf_size); | |
5c2a0669 | 42 | |
2d87db5b | 43 | extern void __regfree (regex_t *__preg); |
5c2a0669 | 44 | #endif |
31341567 | 45 | #endif |