2 #include <posix/regex.h>
5 /* Document internal interfaces. */
6 extern reg_syntax_t
__re_set_syntax (reg_syntax_t syntax
);
8 extern const char *__re_compile_pattern (const char *pattern
, size_t length
,
9 struct re_pattern_buffer
*buffer
);
11 extern int __re_compile_fastmap (struct re_pattern_buffer
*buffer
);
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
);
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
);
23 (struct re_pattern_buffer
*buffer
, const char *string
,
24 int length
, int start
, struct re_registers
*regs
);
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
);
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
);
35 extern int __regcomp (regex_t
*__preg
, const char *__pattern
, int __cflags
);
37 extern int __regexec (const regex_t
*__preg
, const char *__string
,
38 size_t __nmatch
, regmatch_t __pmatch
[], int __eflags
);
40 extern size_t __regerror (int __errcode
, const regex_t
*__preg
,
41 char *__errbuf
, size_t __errbuf_size
);
43 extern void __regfree (regex_t
*__preg
);