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