pcreposix.c File Reference

#include "pcre.h"
#include "pcre_internal.h"
#include "pcreposix.h"

Go to the source code of this file.

Functions

PCREPOSIX_EXP_DEFN size_t
PCRE_CALL_CONVENTION 
regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
PCREPOSIX_EXP_DEFN void PCRE_CALL_CONVENTION regfree (regex_t *preg)
PCREPOSIX_EXP_DEFN int PCRE_CALL_CONVENTION regcomp (regex_t *preg, const char *pattern, int cflags)
PCREPOSIX_EXP_DEFN int PCRE_CALL_CONVENTION regexec (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)

Variables

static const int eint []
static const char *const pstring []


Function Documentation

PCREPOSIX_EXP_DEFN int PCRE_CALL_CONVENTION regcomp ( regex_t preg,
const char *  pattern,
int  cflags 
)

Definition at line 222 of file pcreposix.c.

References eint, NULL, PCRE_CASELESS, pcre_compile2(), PCRE_DOTALL, pcre_info(), PCRE_MULTILINE, PCRE_NO_AUTO_CAPTURE, PCRE_UTF8, regex_t::re_erroffset, regex_t::re_nsub, regex_t::re_pcre, REG_DOTALL, REG_ICASE, REG_NEWLINE, REG_NOSUB, and REG_UTF8.

Referenced by el_match(), and main().

PCREPOSIX_EXP_DEFN size_t PCRE_CALL_CONVENTION regerror ( int  errcode,
const regex_t preg,
char *  errbuf,
size_t  errbuf_size 
)

Definition at line 164 of file pcreposix.c.

References int, length, NULL, pstring, regex_t::re_erroffset, size_t, and sprintf().

Referenced by main().

PCREPOSIX_EXP_DEFN int PCRE_CALL_CONVENTION regexec ( const regex_t preg,
const char *  string,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

Definition at line 264 of file pcreposix.c.

References FALSE, free(), i, malloc(), NULL, PCRE_ERROR_BADMAGIC, PCRE_ERROR_BADOPTION, PCRE_ERROR_BADUTF8, PCRE_ERROR_BADUTF8_OFFSET, PCRE_ERROR_MATCHLIMIT, PCRE_ERROR_NOMATCH, PCRE_ERROR_NOMEMORY, PCRE_ERROR_NULL, PCRE_ERROR_UNKNOWN_NODE, pcre_exec(), PCRE_NO_AUTO_CAPTURE, PCRE_NOTBOL, PCRE_NOTEOL, POSIX_MALLOC_THRESHOLD, regex_t::re_pcre, REG_ASSERT, REG_ESPACE, REG_INVARG, REG_NOMATCH, REG_NOTBOL, REG_NOTEOL, REG_STARTEND, regmatch_t::rm_eo, regmatch_t::rm_so, size_t, and TRUE.

Referenced by el_match(), and main().

PCREPOSIX_EXP_DEFN void PCRE_CALL_CONVENTION regfree ( regex_t preg  ) 

Definition at line 199 of file pcreposix.c.

References pcre_free, and regex_t::re_pcre.

Referenced by el_match(), and main().


Variable Documentation

const int eint[] [static]

Definition at line 67 of file pcreposix.c.

Referenced by regcomp().

const char* const pstring[] [static]

Initial value:

 {
  "",                                
  "internal error",                  
  "invalid repeat counts in {}",     
  "pattern error",                   
  "? * + invalid",                   
  "unbalanced {}",                   
  "unbalanced []",                   
  "collation error - not relevant",  
  "bad class",                       
  "bad escape sequence",             
  "empty expression",                
  "unbalanced ()",                   
  "bad range inside []",             
  "expression too big",              
  "failed to get memory",            
  "bad back reference",              
  "bad argument",                    
  "match failed"                     
}

Definition at line 135 of file pcreposix.c.

Referenced by regerror().


Generated on Tue Jul 5 15:57:31 2011 for ROOT_528-00b_version by  doxygen 1.5.1