tin  2.4.4
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.4.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

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
 

Macros

#define PCRE_MAJOR   7
 
#define PCRE_MINOR   0
 
#define PCRE_PRERELEASE
 
#define PCRE_DATE   18-Dec-2006
 
#define PCRE_DATA_SCOPE   extern
 
#define PCRE_CASELESS   0x00000001
 
#define PCRE_MULTILINE   0x00000002
 
#define PCRE_DOTALL   0x00000004
 
#define PCRE_EXTENDED   0x00000008
 
#define PCRE_ANCHORED   0x00000010
 
#define PCRE_DOLLAR_ENDONLY   0x00000020
 
#define PCRE_EXTRA   0x00000040
 
#define PCRE_NOTBOL   0x00000080
 
#define PCRE_NOTEOL   0x00000100
 
#define PCRE_UNGREEDY   0x00000200
 
#define PCRE_NOTEMPTY   0x00000400
 
#define PCRE_UTF8   0x00000800
 
#define PCRE_NO_AUTO_CAPTURE   0x00001000
 
#define PCRE_NO_UTF8_CHECK   0x00002000
 
#define PCRE_AUTO_CALLOUT   0x00004000
 
#define PCRE_PARTIAL   0x00008000
 
#define PCRE_DFA_SHORTEST   0x00010000
 
#define PCRE_DFA_RESTART   0x00020000
 
#define PCRE_FIRSTLINE   0x00040000
 
#define PCRE_DUPNAMES   0x00080000
 
#define PCRE_NEWLINE_CR   0x00100000
 
#define PCRE_NEWLINE_LF   0x00200000
 
#define PCRE_NEWLINE_CRLF   0x00300000
 
#define PCRE_NEWLINE_ANY   0x00400000
 
#define PCRE_ERROR_NOMATCH   (-1)
 
#define PCRE_ERROR_NULL   (-2)
 
#define PCRE_ERROR_BADOPTION   (-3)
 
#define PCRE_ERROR_BADMAGIC   (-4)
 
#define PCRE_ERROR_UNKNOWN_OPCODE   (-5)
 
#define PCRE_ERROR_UNKNOWN_NODE   (-5) /* For backward compatibility */
 
#define PCRE_ERROR_NOMEMORY   (-6)
 
#define PCRE_ERROR_NOSUBSTRING   (-7)
 
#define PCRE_ERROR_MATCHLIMIT   (-8)
 
#define PCRE_ERROR_CALLOUT   (-9) /* Never used by PCRE itself */
 
#define PCRE_ERROR_BADUTF8   (-10)
 
#define PCRE_ERROR_BADUTF8_OFFSET   (-11)
 
#define PCRE_ERROR_PARTIAL   (-12)
 
#define PCRE_ERROR_BADPARTIAL   (-13)
 
#define PCRE_ERROR_INTERNAL   (-14)
 
#define PCRE_ERROR_BADCOUNT   (-15)
 
#define PCRE_ERROR_DFA_UITEM   (-16)
 
#define PCRE_ERROR_DFA_UCOND   (-17)
 
#define PCRE_ERROR_DFA_UMLIMIT   (-18)
 
#define PCRE_ERROR_DFA_WSSIZE   (-19)
 
#define PCRE_ERROR_DFA_RECURSE   (-20)
 
#define PCRE_ERROR_RECURSIONLIMIT   (-21)
 
#define PCRE_ERROR_NULLWSLIMIT   (-22)
 
#define PCRE_ERROR_BADNEWLINE   (-23)
 
#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 /* For backwards compatibility */
 
#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_INFO_DEFAULT_TABLES   11
 
#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_CONFIG_STACKRECURSE   5
 
#define PCRE_CONFIG_UNICODE_PROPERTIES   6
 
#define PCRE_CONFIG_MATCH_LIMIT_RECURSION   7
 
#define PCRE_EXTRA_STUDY_DATA   0x0001
 
#define PCRE_EXTRA_MATCH_LIMIT   0x0002
 
#define PCRE_EXTRA_CALLOUT_DATA   0x0004
 
#define PCRE_EXTRA_TABLES   0x0008
 
#define PCRE_EXTRA_MATCH_LIMIT_RECURSION   0x0010
 
#define PCRE_SPTR   const char *
 

Typedefs

typedef struct real_pcre pcre
 
typedef struct pcre_extra pcre_extra
 
typedef struct pcre_callout_block pcre_callout_block
 

Functions

pcrepcre_compile (const char *, int, const char **, int *, const unsigned char *)
 
pcrepcre_compile2 (const char *, int, 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_dfa_exec (const pcre *, const pcre_extra *, const char *, int, int, int, int *, int, int *, int)
 
int pcre_exec (const pcre *, const pcre_extra *, const char *, int, int, int, int *, int)
 
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_stringtable_entries (const pcre *, const char *, char **, 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)
 
int pcre_refcount (pcre *, int)
 
pcre_extrapcre_study (const pcre *, int, const char **)
 
const char * pcre_version (void)
 

Variables

void *(* pcre_malloc )(size_t)
 
void(* pcre_free )(void *)
 
void *(* pcre_stack_malloc )(size_t)
 
void(* pcre_stack_free )(void *)
 
int(* pcre_callout )(pcre_callout_block *)
 

Macro Definition Documentation

◆ PCRE_ANCHORED

#define PCRE_ANCHORED   0x00000010

Definition at line 102 of file pcre.h.

◆ PCRE_AUTO_CALLOUT

#define PCRE_AUTO_CALLOUT   0x00004000

Definition at line 112 of file pcre.h.

◆ PCRE_CASELESS

#define PCRE_CASELESS   0x00000001

Definition at line 98 of file pcre.h.

◆ PCRE_CONFIG_LINK_SIZE

#define PCRE_CONFIG_LINK_SIZE   2

Definition at line 171 of file pcre.h.

◆ PCRE_CONFIG_MATCH_LIMIT

#define PCRE_CONFIG_MATCH_LIMIT   4

Definition at line 173 of file pcre.h.

◆ PCRE_CONFIG_MATCH_LIMIT_RECURSION

#define PCRE_CONFIG_MATCH_LIMIT_RECURSION   7

Definition at line 176 of file pcre.h.

◆ PCRE_CONFIG_NEWLINE

#define PCRE_CONFIG_NEWLINE   1

Definition at line 170 of file pcre.h.

◆ PCRE_CONFIG_POSIX_MALLOC_THRESHOLD

#define PCRE_CONFIG_POSIX_MALLOC_THRESHOLD   3

Definition at line 172 of file pcre.h.

◆ PCRE_CONFIG_STACKRECURSE

#define PCRE_CONFIG_STACKRECURSE   5

Definition at line 174 of file pcre.h.

◆ PCRE_CONFIG_UNICODE_PROPERTIES

#define PCRE_CONFIG_UNICODE_PROPERTIES   6

Definition at line 175 of file pcre.h.

◆ PCRE_CONFIG_UTF8

#define PCRE_CONFIG_UTF8   0

Definition at line 169 of file pcre.h.

◆ PCRE_DATA_SCOPE

#define PCRE_DATA_SCOPE   extern

Definition at line 81 of file pcre.h.

◆ PCRE_DATE

#define PCRE_DATE   18-Dec-2006

Definition at line 58 of file pcre.h.

◆ PCRE_DFA_RESTART

#define PCRE_DFA_RESTART   0x00020000

Definition at line 115 of file pcre.h.

◆ PCRE_DFA_SHORTEST

#define PCRE_DFA_SHORTEST   0x00010000

Definition at line 114 of file pcre.h.

◆ PCRE_DOLLAR_ENDONLY

#define PCRE_DOLLAR_ENDONLY   0x00000020

Definition at line 103 of file pcre.h.

◆ PCRE_DOTALL

#define PCRE_DOTALL   0x00000004

Definition at line 100 of file pcre.h.

◆ PCRE_DUPNAMES

#define PCRE_DUPNAMES   0x00080000

Definition at line 117 of file pcre.h.

◆ PCRE_ERROR_BADCOUNT

#define PCRE_ERROR_BADCOUNT   (-15)

Definition at line 140 of file pcre.h.

◆ PCRE_ERROR_BADMAGIC

#define PCRE_ERROR_BADMAGIC   (-4)

Definition at line 128 of file pcre.h.

◆ PCRE_ERROR_BADNEWLINE

#define PCRE_ERROR_BADNEWLINE   (-23)

Definition at line 148 of file pcre.h.

◆ PCRE_ERROR_BADOPTION

#define PCRE_ERROR_BADOPTION   (-3)

Definition at line 127 of file pcre.h.

◆ PCRE_ERROR_BADPARTIAL

#define PCRE_ERROR_BADPARTIAL   (-13)

Definition at line 138 of file pcre.h.

◆ PCRE_ERROR_BADUTF8

#define PCRE_ERROR_BADUTF8   (-10)

Definition at line 135 of file pcre.h.

◆ PCRE_ERROR_BADUTF8_OFFSET

#define PCRE_ERROR_BADUTF8_OFFSET   (-11)

Definition at line 136 of file pcre.h.

◆ PCRE_ERROR_CALLOUT

#define PCRE_ERROR_CALLOUT   (-9) /* Never used by PCRE itself */

Definition at line 134 of file pcre.h.

◆ PCRE_ERROR_DFA_RECURSE

#define PCRE_ERROR_DFA_RECURSE   (-20)

Definition at line 145 of file pcre.h.

◆ PCRE_ERROR_DFA_UCOND

#define PCRE_ERROR_DFA_UCOND   (-17)

Definition at line 142 of file pcre.h.

◆ PCRE_ERROR_DFA_UITEM

#define PCRE_ERROR_DFA_UITEM   (-16)

Definition at line 141 of file pcre.h.

◆ PCRE_ERROR_DFA_UMLIMIT

#define PCRE_ERROR_DFA_UMLIMIT   (-18)

Definition at line 143 of file pcre.h.

◆ PCRE_ERROR_DFA_WSSIZE

#define PCRE_ERROR_DFA_WSSIZE   (-19)

Definition at line 144 of file pcre.h.

◆ PCRE_ERROR_INTERNAL

#define PCRE_ERROR_INTERNAL   (-14)

Definition at line 139 of file pcre.h.

◆ PCRE_ERROR_MATCHLIMIT

#define PCRE_ERROR_MATCHLIMIT   (-8)

Definition at line 133 of file pcre.h.

◆ PCRE_ERROR_NOMATCH

#define PCRE_ERROR_NOMATCH   (-1)

Definition at line 125 of file pcre.h.

◆ PCRE_ERROR_NOMEMORY

#define PCRE_ERROR_NOMEMORY   (-6)

Definition at line 131 of file pcre.h.

◆ PCRE_ERROR_NOSUBSTRING

#define PCRE_ERROR_NOSUBSTRING   (-7)

Definition at line 132 of file pcre.h.

◆ PCRE_ERROR_NULL

#define PCRE_ERROR_NULL   (-2)

Definition at line 126 of file pcre.h.

◆ PCRE_ERROR_NULLWSLIMIT

#define PCRE_ERROR_NULLWSLIMIT   (-22)

Definition at line 147 of file pcre.h.

◆ PCRE_ERROR_PARTIAL

#define PCRE_ERROR_PARTIAL   (-12)

Definition at line 137 of file pcre.h.

◆ PCRE_ERROR_RECURSIONLIMIT

#define PCRE_ERROR_RECURSIONLIMIT   (-21)

Definition at line 146 of file pcre.h.

◆ PCRE_ERROR_UNKNOWN_NODE

#define PCRE_ERROR_UNKNOWN_NODE   (-5) /* For backward compatibility */

Definition at line 130 of file pcre.h.

◆ PCRE_ERROR_UNKNOWN_OPCODE

#define PCRE_ERROR_UNKNOWN_OPCODE   (-5)

Definition at line 129 of file pcre.h.

◆ PCRE_EXTENDED

#define PCRE_EXTENDED   0x00000008

Definition at line 101 of file pcre.h.

◆ PCRE_EXTRA

#define PCRE_EXTRA   0x00000040

Definition at line 104 of file pcre.h.

◆ PCRE_EXTRA_CALLOUT_DATA

#define PCRE_EXTRA_CALLOUT_DATA   0x0004

Definition at line 183 of file pcre.h.

◆ PCRE_EXTRA_MATCH_LIMIT

#define PCRE_EXTRA_MATCH_LIMIT   0x0002

Definition at line 182 of file pcre.h.

◆ PCRE_EXTRA_MATCH_LIMIT_RECURSION

#define PCRE_EXTRA_MATCH_LIMIT_RECURSION   0x0010

Definition at line 185 of file pcre.h.

◆ PCRE_EXTRA_STUDY_DATA

#define PCRE_EXTRA_STUDY_DATA   0x0001

Definition at line 181 of file pcre.h.

◆ PCRE_EXTRA_TABLES

#define PCRE_EXTRA_TABLES   0x0008

Definition at line 184 of file pcre.h.

◆ PCRE_FIRSTLINE

#define PCRE_FIRSTLINE   0x00040000

Definition at line 116 of file pcre.h.

◆ PCRE_INFO_BACKREFMAX

#define PCRE_INFO_BACKREFMAX   3

Definition at line 155 of file pcre.h.

◆ PCRE_INFO_CAPTURECOUNT

#define PCRE_INFO_CAPTURECOUNT   2

Definition at line 154 of file pcre.h.

◆ PCRE_INFO_DEFAULT_TABLES

#define PCRE_INFO_DEFAULT_TABLES   11

Definition at line 164 of file pcre.h.

◆ PCRE_INFO_FIRSTBYTE

#define PCRE_INFO_FIRSTBYTE   4

Definition at line 156 of file pcre.h.

◆ PCRE_INFO_FIRSTCHAR

#define PCRE_INFO_FIRSTCHAR   4 /* For backwards compatibility */

Definition at line 157 of file pcre.h.

◆ PCRE_INFO_FIRSTTABLE

#define PCRE_INFO_FIRSTTABLE   5

Definition at line 158 of file pcre.h.

◆ PCRE_INFO_LASTLITERAL

#define PCRE_INFO_LASTLITERAL   6

Definition at line 159 of file pcre.h.

◆ PCRE_INFO_NAMECOUNT

#define PCRE_INFO_NAMECOUNT   8

Definition at line 161 of file pcre.h.

◆ PCRE_INFO_NAMEENTRYSIZE

#define PCRE_INFO_NAMEENTRYSIZE   7

Definition at line 160 of file pcre.h.

◆ PCRE_INFO_NAMETABLE

#define PCRE_INFO_NAMETABLE   9

Definition at line 162 of file pcre.h.

◆ PCRE_INFO_OPTIONS

#define PCRE_INFO_OPTIONS   0

Definition at line 152 of file pcre.h.

◆ PCRE_INFO_SIZE

#define PCRE_INFO_SIZE   1

Definition at line 153 of file pcre.h.

◆ PCRE_INFO_STUDYSIZE

#define PCRE_INFO_STUDYSIZE   10

Definition at line 163 of file pcre.h.

◆ PCRE_MAJOR

#define PCRE_MAJOR   7

Perl-Compatible Regular Expressions *

Definition at line 55 of file pcre.h.

◆ PCRE_MINOR

#define PCRE_MINOR   0

Definition at line 56 of file pcre.h.

◆ PCRE_MULTILINE

#define PCRE_MULTILINE   0x00000002

Definition at line 99 of file pcre.h.

◆ PCRE_NEWLINE_ANY

#define PCRE_NEWLINE_ANY   0x00400000

Definition at line 121 of file pcre.h.

◆ PCRE_NEWLINE_CR

#define PCRE_NEWLINE_CR   0x00100000

Definition at line 118 of file pcre.h.

◆ PCRE_NEWLINE_CRLF

#define PCRE_NEWLINE_CRLF   0x00300000

Definition at line 120 of file pcre.h.

◆ PCRE_NEWLINE_LF

#define PCRE_NEWLINE_LF   0x00200000

Definition at line 119 of file pcre.h.

◆ PCRE_NO_AUTO_CAPTURE

#define PCRE_NO_AUTO_CAPTURE   0x00001000

Definition at line 110 of file pcre.h.

◆ PCRE_NO_UTF8_CHECK

#define PCRE_NO_UTF8_CHECK   0x00002000

Definition at line 111 of file pcre.h.

◆ PCRE_NOTBOL

#define PCRE_NOTBOL   0x00000080

Definition at line 105 of file pcre.h.

◆ PCRE_NOTEMPTY

#define PCRE_NOTEMPTY   0x00000400

Definition at line 108 of file pcre.h.

◆ PCRE_NOTEOL

#define PCRE_NOTEOL   0x00000100

Definition at line 106 of file pcre.h.

◆ PCRE_PARTIAL

#define PCRE_PARTIAL   0x00008000

Definition at line 113 of file pcre.h.

◆ PCRE_PRERELEASE

#define PCRE_PRERELEASE

Definition at line 57 of file pcre.h.

◆ PCRE_SPTR

#define PCRE_SPTR   const char *

Definition at line 197 of file pcre.h.

◆ PCRE_UNGREEDY

#define PCRE_UNGREEDY   0x00000200

Definition at line 107 of file pcre.h.

◆ PCRE_UTF8

#define PCRE_UTF8   0x00000800

Definition at line 109 of file pcre.h.

Typedef Documentation

◆ pcre

typedef struct real_pcre pcre

Definition at line 190 of file pcre.h.

◆ pcre_callout_block

◆ pcre_extra

typedef struct pcre_extra pcre_extra

Function Documentation

◆ pcre_compile()

pcre* pcre_compile ( const char *  pattern,
int  options,
const char **  errorptr,
int *  erroroffset,
const unsigned char *  tables 
)

Compile a Regular Expression *

Definition at line 5043 of file pcre_compile.c.

References pcre_compile2().

Referenced by compile_regex(), compile_single_pattern(), and main().

◆ pcre_compile2()

pcre* pcre_compile2 ( const char *  ,
int  ,
int *  ,
const char **  ,
int *  ,
const unsigned char *   
)

Definition at line 5051 of file pcre_compile.c.

References _pcre_default_tables, _pcre_valid_utf8(), compile_data::backref_map, compile_data::bracount, compile_data::cbits, cbits_offset, code, compile_regex(), COMPILE_WORK_SIZE, compile_data::ctypes, ctypes_offset, DPRINTF, real_pcre::dummy1, compile_data::end_pattern, ERR0, ERR15, ERR16, ERR17, ERR20, ERR21, ERR22, ERR23, ERR32, ERR44, ERR53, ERR56, error_texts, compile_data::external_options, FALSE, compile_data::fcc, fcc_offset, find_bracket(), find_firstassertedchar(), real_pcre::first_byte, compile_data::hwm, is_anchored(), is_startline(), compile_data::lcc, lcc_offset, MAGIC_NUMBER, real_pcre::magic_number, real_pcre::name_count, real_pcre::name_entry_size, compile_data::name_entry_size, compile_data::name_table, real_pcre::name_table_offset, compile_data::names_found, newline, compile_data::nl, compile_data::nllen, compile_data::nltype, NLTYPE_ANY, NLTYPE_FIXED, compile_data::nopartial, real_pcre::nullpad, offset, OP_BRA, OP_END, real_pcre::options, PCRE_ANCHORED, PCRE_FIRSTSET, pcre_free, PCRE_IMS, pcre_malloc, PCRE_NEWLINE_ANY, PCRE_NEWLINE_CR, PCRE_NEWLINE_CRLF, PCRE_NEWLINE_LF, PCRE_NO_UTF8_CHECK, PCRE_NOPARTIAL, PCRE_STARTLINE, PCRE_UTF8, PUBLIC_OPTIONS, real_pcre::ref_count, real_pcre::req_byte, REQ_CASELESS, compile_data::req_varyopt, real_pcre::size, compile_data::start_code, compile_data::start_pattern, compile_data::start_workspace, real_pcre::tables, real_pcre::top_backref, compile_data::top_backref, real_pcre::top_bracket, and utf8.

Referenced by pcre_compile(), and regcomp().

◆ pcre_config()

int pcre_config ( int  what,
void *  where 
)

◆ pcre_copy_named_substring()

int pcre_copy_named_substring ( const pcre code,
const char *  subject,
int *  ovector,
int  stringcount,
const char *  stringname,
char *  buffer,
int  size 
)

Copy named captured string to given buffer *

Definition at line 276 of file pcre_get.c.

References buffer, code, get_first_set(), and pcre_copy_substring().

Referenced by main().

◆ pcre_copy_substring()

int pcre_copy_substring ( const char *  subject,
int *  ovector,
int  stringcount,
int  stringnumber,
char *  buffer,
int  size 
)

Copy captured string to given buffer *

Definition at line 231 of file pcre_get.c.

References buffer, PCRE_ERROR_NOMEMORY, and PCRE_ERROR_NOSUBSTRING.

Referenced by main(), and pcre_copy_named_substring().

◆ pcre_dfa_exec()

int pcre_dfa_exec ( const pcre argument_re,
const pcre_extra extra_data,
const char *  subject,
int  length,
int  start_offset,
int  options,
int *  offsets,
int  offsetcount,
int *  workspace,
int  wscount 
)

Execute a Regular Expression - DFA engine *

Definition at line 2077 of file pcre_dfa_exec.c.

References _pcre_default_tables, _pcre_try_flipped(), _pcre_valid_utf8(), pcre_extra::callout_data, dfa_match_data::callout_data, dfa_match_data::end_subject, FALSE, fcc_offset, real_pcre::first_byte, pcre_extra::flags, internal_dfa_exec(), IS_NEWLINE, lcc_offset, MAGIC_NUMBER, real_pcre::magic_number, dfa_match_data::moptions, real_pcre::name_count, real_pcre::name_entry_size, real_pcre::name_table_offset, newline, dfa_match_data::nl, dfa_match_data::nllen, dfa_match_data::nltype, NLTYPE_ANY, NLTYPE_FIXED, real_pcre::options, pcre_study_data::options, PCRE_ANCHORED, PCRE_CASELESS, PCRE_DFA_RESTART, PCRE_DOTALL, PCRE_ERROR_BADCOUNT, PCRE_ERROR_BADMAGIC, PCRE_ERROR_BADNEWLINE, PCRE_ERROR_BADOPTION, PCRE_ERROR_BADUTF8, PCRE_ERROR_BADUTF8_OFFSET, PCRE_ERROR_DFA_UMLIMIT, PCRE_ERROR_DFA_WSSIZE, PCRE_ERROR_NOMATCH, PCRE_ERROR_NULL, PCRE_EXTRA_CALLOUT_DATA, PCRE_EXTRA_MATCH_LIMIT, PCRE_EXTRA_MATCH_LIMIT_RECURSION, PCRE_EXTRA_STUDY_DATA, PCRE_EXTRA_TABLES, PCRE_FIRSTLINE, PCRE_FIRSTSET, PCRE_MULTILINE, PCRE_NEWLINE_ANY, PCRE_NEWLINE_BITS, PCRE_NEWLINE_CR, PCRE_NEWLINE_LF, PCRE_NO_UTF8_CHECK, PCRE_PARTIAL, PCRE_REQCHSET, PCRE_STARTLINE, PCRE_STUDY_MAPPED, PCRE_UTF8, dfa_match_data::poptions, PUBLIC_DFA_EXEC_OPTIONS, real_pcre::req_byte, REQ_BYTE_MAX, REQ_CASELESS, pcre_study_data::start_bits, dfa_match_data::start_code, dfa_match_data::start_subject, pcre_extra::study_data, pcre_extra::tables, real_pcre::tables, dfa_match_data::tables, TRUE, utf8, and WAS_NEWLINE.

Referenced by main().

◆ pcre_exec()

int pcre_exec ( const pcre argument_re,
const pcre_extra extra_data,
const char *  subject,
int  length,
int  start_offset,
int  options,
int *  offsets,
int  offsetcount 
)
               RECURSION IN THE match() FUNCTION

Undefine all the macros that were defined above to handle this. Execute a Regular Expression *

Definition at line 3690 of file pcre_exec.c.

References _pcre_default_tables, _pcre_try_flipped(), _pcre_valid_utf8(), 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, EPTR_WORK_SIZE, match_data::eptrchain, match_data::eptrn, FALSE, fcc_offset, real_pcre::first_byte, pcre_extra::flags, match_data::hitend, IS_NEWLINE, match_data::lcc, lcc_offset, MAGIC_NUMBER, real_pcre::magic_number, match(), match_data::match_call_count, pcre_extra::match_limit, match_data::match_limit, pcre_extra::match_limit_recursion, match_data::match_limit_recursion, MATCH_MATCH, MATCH_NOMATCH, real_pcre::name_count, real_pcre::name_entry_size, real_pcre::name_table_offset, newline, match_data::nl, match_data::nllen, match_data::nltype, NLTYPE_ANY, NLTYPE_FIXED, match_data::notbol, match_data::notempty, match_data::noteol, match_data::offset_end, match_data::offset_max, match_data::offset_overflow, match_data::offset_vector, real_pcre::options, pcre_study_data::options, match_data::partial, pchars(), PCRE_ANCHORED, PCRE_CASELESS, PCRE_DOLLAR_ENDONLY, PCRE_DOTALL, PCRE_ERROR_BADCOUNT, PCRE_ERROR_BADMAGIC, PCRE_ERROR_BADNEWLINE, PCRE_ERROR_BADOPTION, PCRE_ERROR_BADPARTIAL, PCRE_ERROR_BADUTF8, PCRE_ERROR_BADUTF8_OFFSET, PCRE_ERROR_NOMATCH, PCRE_ERROR_NOMEMORY, PCRE_ERROR_NULL, PCRE_ERROR_PARTIAL, PCRE_EXTRA_CALLOUT_DATA, PCRE_EXTRA_MATCH_LIMIT, PCRE_EXTRA_MATCH_LIMIT_RECURSION, PCRE_EXTRA_STUDY_DATA, PCRE_EXTRA_TABLES, PCRE_FIRSTLINE, PCRE_FIRSTSET, pcre_free, pcre_malloc, PCRE_MULTILINE, PCRE_NEWLINE_ANY, PCRE_NEWLINE_BITS, PCRE_NEWLINE_CR, PCRE_NEWLINE_LF, PCRE_NO_UTF8_CHECK, PCRE_NOPARTIAL, PCRE_NOTBOL, PCRE_NOTEMPTY, PCRE_NOTEOL, PCRE_PARTIAL, PCRE_REQCHSET, PCRE_STARTLINE, PCRE_STUDY_MAPPED, PCRE_UTF8, PUBLIC_EXEC_OPTIONS, 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, pcre_extra::tables, real_pcre::tables, real_pcre::top_backref, real_pcre::top_bracket, TRUE, USPTR, utf8, match_data::utf8, and WAS_NEWLINE.

Referenced by body_search(), build_url_list(), check_match_limit(), eat_re(), grep_or_recurse(), highlight_regexes(), main(), match_regex(), pcregrep(), post_process_sh(), process_text_body_part(), regexec(), search_article(), and test_regex().

◆ pcre_free_substring()

void pcre_free_substring ( const char *  pointer)

Free store obtained by get_substring *

Definition at line 456 of file pcre_get.c.

References pcre_free.

Referenced by main().

◆ pcre_free_substring_list()

void pcre_free_substring_list ( const char **  pointer)

Free store obtained by get_substring_list *

Definition at line 353 of file pcre_get.c.

References pcre_free.

Referenced by main().

◆ pcre_fullinfo()

◆ pcre_get_named_substring()

int pcre_get_named_substring ( const pcre code,
const char *  subject,
int *  ovector,
int  stringcount,
const char *  stringname,
const char **  stringptr 
)

Copy named captured string to new store *

Definition at line 433 of file pcre_get.c.

References code, get_first_set(), and pcre_get_substring().

Referenced by main().

◆ pcre_get_stringnumber()

int pcre_get_stringnumber ( const pcre code,
const char *  stringname 
)

Perl-Compatible Regular Expressions * Find number for named string *

Definition at line 65 of file pcre_get.c.

References code, PCRE_ERROR_NOSUBSTRING, pcre_fullinfo(), PCRE_INFO_NAMECOUNT, PCRE_INFO_NAMEENTRYSIZE, and PCRE_INFO_NAMETABLE.

Referenced by get_first_set(), and main().

◆ pcre_get_stringtable_entries()

int pcre_get_stringtable_entries ( const pcre code,
const char *  stringname,
char **  firstptr,
char **  lastptr 
)

Find (multiple) entries for named string *

Definition at line 114 of file pcre_get.c.

References code, PCRE_ERROR_NOSUBSTRING, pcre_fullinfo(), PCRE_INFO_NAMECOUNT, PCRE_INFO_NAMEENTRYSIZE, and PCRE_INFO_NAMETABLE.

Referenced by get_first_set().

◆ pcre_get_substring()

int pcre_get_substring ( const char *  subject,
int *  ovector,
int  stringcount,
int  stringnumber,
const char **  stringptr 
)

Copy captured string to new store *

Definition at line 386 of file pcre_get.c.

References PCRE_ERROR_NOMEMORY, PCRE_ERROR_NOSUBSTRING, and pcre_malloc.

Referenced by main(), and pcre_get_named_substring().

◆ pcre_get_substring_list()

int pcre_get_substring_list ( const char *  subject,
int *  ovector,
int  stringcount,
const char ***  listptr 
)

Copy all captured strings to new store *

Definition at line 308 of file pcre_get.c.

References PCRE_ERROR_NOMEMORY, and pcre_malloc.

Referenced by main().

◆ pcre_info()

int pcre_info ( const pcre argument_re,
int *  optptr,
int *  first_byte 
)

Perl-Compatible Regular Expressions * (Obsolete) Return info about compiled pattern *

Definition at line 72 of file pcre_info.c.

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

Referenced by main(), and regcomp().

◆ pcre_maketables()

const unsigned char* pcre_maketables ( void  )

Perl-Compatible Regular Expressions * Create PCRE character tables *

Definition at line 67 of file pcre_maketables.c.

References cbit_cntrl, cbit_digit, cbit_graph, cbit_length, cbit_lower, cbit_print, cbit_punct, cbit_space, cbit_upper, cbit_word, cbit_xdigit, ctype_digit, ctype_letter, ctype_meta, ctype_space, ctype_word, ctype_xdigit, pcre_malloc, and tables_length.

Referenced by main().

◆ pcre_refcount()

int pcre_refcount ( pcre argument_re,
int  adjust 
)

Perl-Compatible Regular Expressions * Maintain reference count *

Definition at line 67 of file pcre_refcount.c.

References PCRE_ERROR_NULL, and real_pcre::ref_count.

◆ pcre_study()

◆ pcre_version()

const char* pcre_version ( void  )

Definition at line 79 of file pcre_version.c.

References PCRE_DATE, PCRE_MAJOR, PCRE_PRERELEASE, and XSTRING.

Referenced by handle_option(), main(), and tin_version_info().

Variable Documentation

◆ pcre_callout

int(* pcre_callout) (pcre_callout_block *)

Definition at line 79 of file pcre_globals.c.

Referenced by internal_dfa_exec(), main(), and match().

◆ pcre_free

void(* pcre_free) (void *)

◆ pcre_malloc

void*(* pcre_malloc) (size_t)

Perl-Compatible Regular Expressions * This code used to be here for use when compiling as a C++ library. However, according to Dair Grant it is not needed: "

Including 'extern "C"' in the declaration generates an "initialized and declared `extern'" warning from gcc 4.0.1. Since we include pcre_internal.h, which includes pcre.h, which declares these prototypes within an extern "C" {} block, we shouldn't need the prefix here.

So, from Release 7.0 I have cut this out.

#ifdef __cplusplus extern "C" void *(*pcre_malloc)(size_t) = malloc; extern "C" void (*pcre_free)(void *) = free; extern "C" void *(*pcre_stack_malloc)(size_t) = malloc; extern "C" void (*pcre_stack_free)(void *) = free; extern "C" int (*pcre_callout)(pcre_callout_block *) = NULL; #else

Definition at line 75 of file pcre_globals.c.

Referenced by main(), match(), pcre_compile2(), pcre_exec(), pcre_get_substring(), pcre_get_substring_list(), pcre_maketables(), and pcre_study().

◆ pcre_stack_free

void(* pcre_stack_free) (void *)

Definition at line 78 of file pcre_globals.c.

Referenced by main().

◆ pcre_stack_malloc

void*(* pcre_stack_malloc) (size_t)

Definition at line 77 of file pcre_globals.c.

Referenced by main(), and match().