freebsd-dev/gnu/lib/libregex/regex.h

48 lines
1.7 KiB
C
Raw Normal View History

2004-02-25 02:39:10 +00:00
/* $FreeBSD$ */
#ifndef _REGEX_H
#include <posix/regex.h>
1993-07-30 20:16:53 +00:00
2004-02-25 02:39:10 +00:00
/* Document internal interfaces. */
extern reg_syntax_t __re_set_syntax _RE_ARGS ((reg_syntax_t syntax));
1993-07-30 20:16:53 +00:00
2004-02-25 02:39:10 +00:00
extern const char *__re_compile_pattern
_RE_ARGS ((const char *pattern, size_t length,
1993-07-30 20:16:53 +00:00
struct re_pattern_buffer *buffer));
2004-02-25 02:39:10 +00:00
extern int __re_compile_fastmap _RE_ARGS ((struct re_pattern_buffer *buffer));
1993-07-30 20:16:53 +00:00
2004-02-25 02:39:10 +00:00
extern int __re_search
1993-07-30 20:16:53 +00:00
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string,
int length, int start, int range, struct re_registers *regs));
2004-02-25 02:39:10 +00:00
extern int __re_search_2
1993-07-30 20:16:53 +00:00
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1,
int length1, const char *string2, int length2,
int start, int range, struct re_registers *regs, int stop));
2004-02-25 02:39:10 +00:00
extern int __re_match
1993-07-30 20:16:53 +00:00
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string,
int length, int start, struct re_registers *regs));
2004-02-25 02:39:10 +00:00
extern int __re_match_2
1993-07-30 20:16:53 +00:00
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1,
int length1, const char *string2, int length2,
int start, struct re_registers *regs, int stop));
2004-02-25 02:39:10 +00:00
extern void __re_set_registers
1993-07-30 20:16:53 +00:00
_RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
unsigned num_regs, regoff_t *starts, regoff_t *ends));
2004-02-25 02:39:10 +00:00
extern int __regcomp _RE_ARGS ((regex_t *__preg, const char *__pattern,
int __cflags));
1993-07-30 20:16:53 +00:00
2004-02-25 02:39:10 +00:00
extern int __regexec _RE_ARGS ((const regex_t *__preg,
const char *__string, size_t __nmatch,
regmatch_t __pmatch[], int __eflags));
1993-07-30 20:16:53 +00:00
2004-02-25 02:39:10 +00:00
extern size_t __regerror _RE_ARGS ((int __errcode, const regex_t *__preg,
char *__errbuf, size_t __errbuf_size));
2004-02-25 02:39:10 +00:00
extern void __regfree _RE_ARGS ((regex_t *__preg));
#endif