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