Back to index

glibc  2.9
regex.h
Go to the documentation of this file.
00001 #ifndef _REGEX_H
00002 #include <posix/regex.h>
00003 
00004 /* Document internal interfaces.  */
00005 extern reg_syntax_t __re_set_syntax (reg_syntax_t syntax);
00006 
00007 extern const char *__re_compile_pattern (const char *pattern, size_t length,
00008                                     struct re_pattern_buffer *buffer);
00009 
00010 extern int __re_compile_fastmap (struct re_pattern_buffer *buffer);
00011 
00012 extern int __re_search (struct re_pattern_buffer *buffer, const char *string,
00013                      int length, int start, int range,
00014                      struct re_registers *regs);
00015 
00016 extern int __re_search_2
00017   (struct re_pattern_buffer *buffer, const char *string1,
00018    int length1, const char *string2, int length2,
00019    int start, int range, struct re_registers *regs, int stop);
00020 
00021 extern int __re_match
00022   (struct re_pattern_buffer *buffer, const char *string,
00023    int length, int start, struct re_registers *regs);
00024 
00025 extern int __re_match_2
00026   (struct re_pattern_buffer *buffer, const char *string1,
00027    int length1, const char *string2, int length2,
00028    int start, struct re_registers *regs, int stop);
00029 
00030 extern void __re_set_registers
00031   (struct re_pattern_buffer *buffer, struct re_registers *regs,
00032    unsigned num_regs, regoff_t *starts, regoff_t *ends);
00033 
00034 extern int __regcomp (regex_t *__preg, const char *__pattern, int __cflags);
00035 
00036 extern int __regexec (const regex_t *__preg, const char *__string,
00037                     size_t __nmatch, regmatch_t __pmatch[], int __eflags);
00038 
00039 extern size_t __regerror (int __errcode, const regex_t *__preg,
00040                        char *__errbuf, size_t __errbuf_size);
00041 
00042 extern void __regfree (regex_t *__preg);
00043 #endif