pcre.h File Reference

#include <stdlib.h>

Include dependency graph for pcre.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcre_extra
struct  pcre_callout_block

Defines

#define PCRE_MAJOR   4
#define PCRE_MINOR   2
#define PCRE_DATE   14-Apr-2003
#define PCRE_DATA_SCOPE   extern
#define PCRE_CASELESS   0x0001
#define PCRE_MULTILINE   0x0002
#define PCRE_DOTALL   0x0004
#define PCRE_EXTENDED   0x0008
#define PCRE_ANCHORED   0x0010
#define PCRE_DOLLAR_ENDONLY   0x0020
#define PCRE_EXTRA   0x0040
#define PCRE_NOTBOL   0x0080
#define PCRE_NOTEOL   0x0100
#define PCRE_UNGREEDY   0x0200
#define PCRE_NOTEMPTY   0x0400
#define PCRE_UTF8   0x0800
#define PCRE_NO_AUTO_CAPTURE   0x1000
#define PCRE_ERROR_NOMATCH   (-1)
#define PCRE_ERROR_NULL   (-2)
#define PCRE_ERROR_BADOPTION   (-3)
#define PCRE_ERROR_BADMAGIC   (-4)
#define PCRE_ERROR_UNKNOWN_NODE   (-5)
#define PCRE_ERROR_NOMEMORY   (-6)
#define PCRE_ERROR_NOSUBSTRING   (-7)
#define PCRE_ERROR_MATCHLIMIT   (-8)
#define PCRE_ERROR_CALLOUT   (-9)
#define PCRE_INFO_OPTIONS   0
#define PCRE_INFO_SIZE   1
#define PCRE_INFO_CAPTURECOUNT   2
#define PCRE_INFO_BACKREFMAX   3
#define PCRE_INFO_FIRSTBYTE   4
#define PCRE_INFO_FIRSTCHAR   4
#define PCRE_INFO_FIRSTTABLE   5
#define PCRE_INFO_LASTLITERAL   6
#define PCRE_INFO_NAMEENTRYSIZE   7
#define PCRE_INFO_NAMECOUNT   8
#define PCRE_INFO_NAMETABLE   9
#define PCRE_INFO_STUDYSIZE   10
#define PCRE_CONFIG_UTF8   0
#define PCRE_CONFIG_NEWLINE   1
#define PCRE_CONFIG_LINK_SIZE   2
#define PCRE_CONFIG_POSIX_MALLOC_THRESHOLD   3
#define PCRE_CONFIG_MATCH_LIMIT   4
#define PCRE_EXTRA_STUDY_DATA   0x0001
#define PCRE_EXTRA_MATCH_LIMIT   0x0002
#define PCRE_EXTRA_CALLOUT_DATA   0x0004

Typedefs

typedef real_pcre pcre

Functions

pcrepcre_compile (const char *, int, const char **, int *, const unsigned char *)
int pcre_config (int, void *)
int pcre_copy_named_substring (const pcre *, const char *, int *, int, const char *, char *, int)
int pcre_copy_substring (const char *, int *, int, int, char *, int)
int pcre_exec (const pcre *, const pcre_extra *, const char *, int, int, int, int, int *, int, const unsigned char *)
void pcre_free_substring (const char *)
void pcre_free_substring_list (const char **)
int pcre_fullinfo (const pcre *, const pcre_extra *, int, void *)
int pcre_get_named_substring (const pcre *, const char *, int *, int, const char *, const char **)
int pcre_get_stringnumber (const pcre *, const char *)
int pcre_get_substring (const char *, int *, int, int, const char **)
int pcre_get_substring_list (const char *, int *, int, const char ***)
int pcre_info (const pcre *, int *, int *)
const unsigned char * pcre_maketables (void)
pcre_extrapcre_study (const pcre *, int, const char **)
const char * pcre_version (void)

Variables

PCRE_DATA_SCOPE void *(* pcre_malloc )(size_t)
PCRE_DATA_SCOPE void(* pcre_free )(void *)
PCRE_DATA_SCOPE int(* pcre_callout )(pcre_callout_block *)


Define Documentation

#define PCRE_ANCHORED   0x0010
 

Definition at line 54 of file pcre.h.

Referenced by pcre_study().

#define PCRE_CASELESS   0x0001
 

Definition at line 50 of file pcre.h.

Referenced by compile_branch(), getsearchparams(), pcre_study(), and set_start_bits().

#define PCRE_CONFIG_LINK_SIZE   2
 

Definition at line 95 of file pcre.h.

Referenced by pcre_config().

#define PCRE_CONFIG_MATCH_LIMIT   4
 

Definition at line 97 of file pcre.h.

Referenced by pcre_config().

#define PCRE_CONFIG_NEWLINE   1
 

Definition at line 94 of file pcre.h.

Referenced by pcre_config().

#define PCRE_CONFIG_POSIX_MALLOC_THRESHOLD   3
 

Definition at line 96 of file pcre.h.

Referenced by pcre_config().

#define PCRE_CONFIG_UTF8   0
 

Definition at line 93 of file pcre.h.

Referenced by pcre_config().

#define PCRE_DATA_SCOPE   extern
 

Definition at line 34 of file pcre.h.

#define PCRE_DATE   14-Apr-2003
 

Definition at line 18 of file pcre.h.

Referenced by pcre_version().

#define PCRE_DOLLAR_ENDONLY   0x0020
 

Definition at line 55 of file pcre.h.

Referenced by pcre_exec().

#define PCRE_DOTALL   0x0004
 

Definition at line 52 of file pcre.h.

Referenced by getsearchparams(), is_anchored(), and pcre_compile().

#define PCRE_ERROR_BADMAGIC   (-4)
 

Definition at line 69 of file pcre.h.

Referenced by pcre_exec(), pcre_fullinfo(), and pcre_info().

#define PCRE_ERROR_BADOPTION   (-3)
 

Definition at line 68 of file pcre.h.

Referenced by pcre_config(), pcre_exec(), and pcre_fullinfo().

#define PCRE_ERROR_CALLOUT   (-9)
 

Definition at line 74 of file pcre.h.

#define PCRE_ERROR_MATCHLIMIT   (-8)
 

Definition at line 73 of file pcre.h.

Referenced by match().

#define PCRE_ERROR_NOMATCH   (-1)
 

Definition at line 66 of file pcre.h.

Referenced by pcre_exec().

#define PCRE_ERROR_NOMEMORY   (-6)
 

Definition at line 71 of file pcre.h.

Referenced by pcre_copy_substring(), pcre_exec(), pcre_get_substring(), and pcre_get_substring_list().

#define PCRE_ERROR_NOSUBSTRING   (-7)
 

Definition at line 72 of file pcre.h.

Referenced by pcre_copy_substring(), pcre_get_stringnumber(), and pcre_get_substring().

#define PCRE_ERROR_NULL   (-2)
 

Definition at line 67 of file pcre.h.

Referenced by pcre_exec(), pcre_fullinfo(), and pcre_info().

#define PCRE_ERROR_UNKNOWN_NODE   (-5)
 

Definition at line 70 of file pcre.h.

#define PCRE_EXTENDED   0x0008
 

Definition at line 53 of file pcre.h.

Referenced by compile_branch().

#define PCRE_EXTRA   0x0040
 

Definition at line 56 of file pcre.h.

Referenced by check_escape(), and pcre_compile().

#define PCRE_EXTRA_CALLOUT_DATA   0x0004
 

Definition at line 103 of file pcre.h.

Referenced by pcre_exec().

#define PCRE_EXTRA_MATCH_LIMIT   0x0002
 

Definition at line 102 of file pcre.h.

Referenced by pcre_exec().

#define PCRE_EXTRA_STUDY_DATA   0x0001
 

Definition at line 101 of file pcre.h.

Referenced by pcre_exec(), pcre_fullinfo(), and pcre_study().

#define PCRE_INFO_BACKREFMAX   3
 

Definition at line 81 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_INFO_CAPTURECOUNT   2
 

Definition at line 80 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_INFO_FIRSTBYTE   4
 

Definition at line 82 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_INFO_FIRSTCHAR   4
 

Definition at line 83 of file pcre.h.

#define PCRE_INFO_FIRSTTABLE   5
 

Definition at line 84 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_INFO_LASTLITERAL   6
 

Definition at line 85 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_INFO_NAMECOUNT   8
 

Definition at line 87 of file pcre.h.

Referenced by pcre_fullinfo(), and pcre_get_stringnumber().

#define PCRE_INFO_NAMEENTRYSIZE   7
 

Definition at line 86 of file pcre.h.

Referenced by pcre_fullinfo(), and pcre_get_stringnumber().

#define PCRE_INFO_NAMETABLE   9
 

Definition at line 88 of file pcre.h.

Referenced by pcre_fullinfo(), and pcre_get_stringnumber().

#define PCRE_INFO_OPTIONS   0
 

Definition at line 78 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_INFO_SIZE   1
 

Definition at line 79 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_INFO_STUDYSIZE   10
 

Definition at line 89 of file pcre.h.

Referenced by pcre_fullinfo().

#define PCRE_MAJOR   4
 

Definition at line 16 of file pcre.h.

Referenced by pcre_version().

#define PCRE_MINOR   2
 

Definition at line 17 of file pcre.h.

Referenced by pcre_version().

#define PCRE_MULTILINE   0x0002
 

Definition at line 51 of file pcre.h.

Referenced by getsearchparams().

#define PCRE_NO_AUTO_CAPTURE   0x1000
 

Definition at line 62 of file pcre.h.

#define PCRE_NOTBOL   0x0080
 

Definition at line 57 of file pcre.h.

Referenced by pcre_exec().

#define PCRE_NOTEMPTY   0x0400
 

Definition at line 60 of file pcre.h.

Referenced by getsearchparams(), and pcre_exec().

#define PCRE_NOTEOL   0x0100
 

Definition at line 58 of file pcre.h.

Referenced by pcre_exec().

#define PCRE_UNGREEDY   0x0200
 

Definition at line 59 of file pcre.h.

Referenced by compile_branch(), and pcre_compile().

#define PCRE_UTF8   0x0800
 

Definition at line 61 of file pcre.h.

Referenced by check_escape(), compile_branch(), find_fixedlength(), pcre_compile(), pcre_exec(), and pcre_study().


Typedef Documentation

typedef struct real_pcre pcre
 

Definition at line 108 of file pcre.h.


Function Documentation

pcre* pcre_compile const char *  ,
int  ,
const char **  ,
int *  ,
const unsigned char * 
 

Definition at line 3710 of file pcre.c.

References compile_data::backref_map, BRASTACK_SIZE, compile_data::cbits, cbits_offset, check_escape(), check_posix_syntax(), ctype_word, compile_data::ctypes, ctypes_offset, DPRINTF, ERR12, ERR16, ERR17, ERR18, ERR24, ERR26, ERR28, ERR29, ERR32, ERR39, ERR41, ERR42, ERR6, ESC_b, ESC_Q, ESC_REF, extra, FALSE, compile_data::fcc, fcc_offset, GETCHARLEN, is_counted_repeat(), compile_data::lcc, lcc_offset, max, min, NEWLINE, NULL, pcre_default_tables, PCRE_DOTALL, PCRE_EXTRA, PCRE_ICHANGED, PCRE_UNGREEDY, PCRE_UTF8, PUBLIC_OPTIONS, read_repeat_counts(), compile_data::top_backref, and TRUE.

Here is the call graph for this function:

int pcre_config int  ,
void * 
 

Definition at line 544 of file pcre.c.

References LINK_SIZE, MATCH_LIMIT, NEWLINE, PCRE_CONFIG_LINK_SIZE, PCRE_CONFIG_MATCH_LIMIT, PCRE_CONFIG_NEWLINE, PCRE_CONFIG_POSIX_MALLOC_THRESHOLD, PCRE_CONFIG_UTF8, PCRE_ERROR_BADOPTION, and POSIX_MALLOC_THRESHOLD.

int pcre_copy_named_substring const pcre ,
const char *  ,
int *  ,
int  ,
const char *  ,
char *  ,
int 
 

Definition at line 168 of file get.c.

References pcre_copy_substring(), and pcre_get_stringnumber().

Here is the call graph for this function:

int pcre_copy_substring const char *  ,
int *  ,
int  ,
int  ,
char *  ,
int 
 

Definition at line 124 of file get.c.

References PCRE_ERROR_NOMEMORY, and PCRE_ERROR_NOSUBSTRING.

Referenced by pcre_copy_named_substring().

int pcre_exec const pcre ,
const pcre_extra ,
const char *  ,
int  ,
int  ,
int  ,
int  ,
int *  ,
int  ,
const unsigned char * 
 

Definition at line 7226 of file pcre.c.

References pcre_extra::callout_data, match_data::callout_data, match_data::capture_last, match_data::ctypes, ctypes_offset, DPRINTF, match_data::end_match_ptr, match_data::end_offset_top, match_data::end_subject, match_data::endonly, FALSE, fcc_offset, real_pcre::first_byte, first_byte, pcre_extra::flags, match_data::lcc, lcc_offset, MAGIC_NUMBER, real_pcre::magic_number, match(), match_data::match_call_count, match_isgroup, pcre_extra::match_limit, MATCH_LIMIT, match_data::match_limit, MATCH_MATCH, MATCH_NOMATCH, real_pcre::name_count, real_pcre::name_entry_size, NEWLINE, match_data::notbol, match_data::notempty, match_data::noteol, NULL, match_data::offset_end, match_data::offset_max, match_data::offset_overflow, match_data::offset_vector, pcre_study_data::options, real_pcre::options, PCRE_DOLLAR_ENDONLY, PCRE_ERROR_BADMAGIC, PCRE_ERROR_BADOPTION, PCRE_ERROR_NOMATCH, PCRE_ERROR_NOMEMORY, PCRE_ERROR_NULL, PCRE_EXTRA_CALLOUT_DATA, PCRE_EXTRA_MATCH_LIMIT, PCRE_EXTRA_STUDY_DATA, PCRE_FIRSTSET, pcre_malloc, PCRE_NOTBOL, PCRE_NOTEMPTY, PCRE_NOTEOL, PCRE_REQCHSET, PCRE_STARTLINE, PCRE_STUDY_MAPPED, PCRE_UTF8, PUBLIC_EXEC_OPTIONS, rc, match_data::recursive, real_pcre::req_byte, REQ_BYTE_MAX, REQ_CASELESS, pcre_study_data::start_bits, match_data::start_code, match_data::start_match, match_data::start_offset, match_data::start_subject, pcre_extra::study_data, real_pcre::top_backref, real_pcre::top_bracket, TRUE, and match_data::utf8.

Here is the call graph for this function:

void pcre_free_substring const char *   ) 
 

Definition at line 347 of file get.c.

References pcre_free.

void pcre_free_substring_list const char **   ) 
 

Definition at line 245 of file get.c.

References pcre_free.

int pcre_fullinfo const pcre ,
const pcre_extra ,
int  ,
void * 
 

Definition at line 458 of file pcre.c.

References real_pcre::first_byte, pcre_extra::flags, MAGIC_NUMBER, real_pcre::magic_number, real_pcre::name_count, real_pcre::name_entry_size, NULL, pcre_study_data::options, real_pcre::options, PCRE_ERROR_BADMAGIC, PCRE_ERROR_BADOPTION, PCRE_ERROR_NULL, PCRE_EXTRA_STUDY_DATA, PCRE_FIRSTSET, PCRE_INFO_BACKREFMAX, PCRE_INFO_CAPTURECOUNT, PCRE_INFO_FIRSTBYTE, PCRE_INFO_FIRSTTABLE, PCRE_INFO_LASTLITERAL, PCRE_INFO_NAMECOUNT, PCRE_INFO_NAMEENTRYSIZE, PCRE_INFO_NAMETABLE, PCRE_INFO_OPTIONS, PCRE_INFO_SIZE, PCRE_INFO_STUDYSIZE, PCRE_REQCHSET, PCRE_STARTLINE, PCRE_STUDY_MAPPED, PUBLIC_OPTIONS, real_pcre::req_byte, pcre_study_data::size, real_pcre::size, pcre_study_data::start_bits, pcre_extra::study_data, real_pcre::top_backref, and real_pcre::top_bracket.

Referenced by pcre_get_stringnumber().

int pcre_get_named_substring const pcre ,
const char *  ,
int *  ,
int  ,
const char *  ,
const char ** 
 

Definition at line 324 of file get.c.

References pcre_get_stringnumber(), and pcre_get_substring().

Here is the call graph for this function:

int pcre_get_stringnumber const pcre ,
const char * 
 

Definition at line 65 of file get.c.

References NULL, PCRE_ERROR_NOSUBSTRING, pcre_fullinfo(), PCRE_INFO_NAMECOUNT, PCRE_INFO_NAMEENTRYSIZE, PCRE_INFO_NAMETABLE, and rc.

Referenced by pcre_copy_named_substring(), and pcre_get_named_substring().

Here is the call graph for this function:

int pcre_get_substring const char *  ,
int *  ,
int  ,
int  ,
const char ** 
 

Definition at line 278 of file get.c.

References NULL, PCRE_ERROR_NOMEMORY, PCRE_ERROR_NOSUBSTRING, and pcre_malloc.

Referenced by pcre_get_named_substring().

int pcre_get_substring_list const char *  ,
int *  ,
int  ,
const char *** 
 

Definition at line 200 of file get.c.

References i, NULL, PCRE_ERROR_NOMEMORY, and pcre_malloc.

int pcre_info const pcre ,
int *  ,
int * 
 

Definition at line 427 of file pcre.c.

References real_pcre::first_byte, MAGIC_NUMBER, real_pcre::magic_number, NULL, real_pcre::options, PCRE_ERROR_BADMAGIC, PCRE_ERROR_NULL, PCRE_FIRSTSET, PCRE_STARTLINE, PUBLIC_OPTIONS, and real_pcre::top_bracket.

const unsigned char* pcre_maketables void   ) 
 

Definition at line 65 of file maketables.c.

References cbit_digit, cbit_length, cbit_word, i, NULL, pcre_malloc, and tables_length.

pcre_extra* pcre_study const pcre ,
int  ,
const char ** 
 

Definition at line 370 of file study.c.

References compile_data::cbits, cbits_offset, compile_data::ctypes, ctypes_offset, extra, compile_data::fcc, fcc_offset, compile_data::lcc, lcc_offset, real_pcre::magic_number, MAGIC_NUMBER, real_pcre::name_count, real_pcre::name_entry_size, NULL, real_pcre::options, pcre_study_data::options, PCRE_ANCHORED, PCRE_CASELESS, PCRE_EXTRA_STUDY_DATA, PCRE_FIRSTSET, pcre_malloc, PCRE_STARTLINE, PCRE_STUDY_MAPPED, PCRE_UTF8, PUBLIC_STUDY_OPTIONS, set_start_bits(), pcre_study_data::size, pcre_study_data::start_bits, and real_pcre::tables.

Here is the call graph for this function:

const char* pcre_version void   ) 
 

Definition at line 396 of file pcre.c.

References PCRE_DATE, PCRE_MAJOR, PCRE_MINOR, and XSTRING.


Variable Documentation

PCRE_DATA_SCOPE int(* pcre_callout)(pcre_callout_block *)
 

Definition at line 149 of file pcre.h.

PCRE_DATA_SCOPE void(* pcre_free)(void *)
 

Definition at line 148 of file pcre.h.

PCRE_DATA_SCOPE void*(* pcre_malloc)(size_t)
 

Definition at line 147 of file pcre.h.


Generated on Fri Jun 9 22:24:24 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6