NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions
pcreposix.h File Reference
#include <stdlib.h>
+ Include dependency graph for pcreposix.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  regex_t
 
struct  regmatch_t
 

Macros

#define REG_ICASE   0x0001 /* Maps to PCRE_CASELESS */
 
#define REG_NEWLINE   0x0002 /* Maps to PCRE_MULTILINE */
 
#define REG_NOTBOL   0x0004 /* Maps to PCRE_NOTBOL */
 
#define REG_NOTEOL   0x0008 /* Maps to PCRE_NOTEOL */
 
#define REG_DOTALL   0x0010 /* NOT defined by POSIX; maps to PCRE_DOTALL */
 
#define REG_NOSUB   0x0020 /* Maps to PCRE_NO_AUTO_CAPTURE */
 
#define REG_UTF8   0x0040 /* NOT defined by POSIX; maps to PCRE_UTF8 */
 
#define REG_STARTEND   0x0080 /* BSD feature: pass subject string by so,eo */
 
#define REG_NOTEMPTY   0x0100 /* NOT defined by POSIX; maps to PCRE_NOTEMPTY */
 
#define REG_UNGREEDY   0x0200 /* NOT defined by POSIX; maps to PCRE_UNGREEDY */
 
#define REG_UCP   0x0400 /* NOT defined by POSIX; maps to PCRE_UCP */
 
#define REG_EXTENDED   0
 
#define PCREPOSIX_EXP_DECL   extern
 
#define PCREPOSIX_EXP_DEFN   extern
 
#define REG_ICASE   0x0001 /* Maps to PCRE_CASELESS */
 
#define REG_NEWLINE   0x0002 /* Maps to PCRE_MULTILINE */
 
#define REG_NOTBOL   0x0004 /* Maps to PCRE_NOTBOL */
 
#define REG_NOTEOL   0x0008 /* Maps to PCRE_NOTEOL */
 
#define REG_DOTALL   0x0010 /* NOT defined by POSIX; maps to PCRE_DOTALL */
 
#define REG_NOSUB   0x0020 /* Maps to PCRE_NO_AUTO_CAPTURE */
 
#define REG_UTF8   0x0040 /* NOT defined by POSIX; maps to PCRE_UTF8 */
 
#define REG_STARTEND   0x0080 /* BSD feature: pass subject string by so,eo */
 
#define REG_NOTEMPTY   0x0100 /* NOT defined by POSIX; maps to PCRE_NOTEMPTY */
 
#define REG_UNGREEDY   0x0200 /* NOT defined by POSIX; maps to PCRE_UNGREEDY */
 
#define REG_UCP   0x0400 /* NOT defined by POSIX; maps to PCRE_UCP */
 
#define REG_EXTENDED   0
 
#define PCREPOSIX_EXP_DECL   extern
 
#define PCREPOSIX_EXP_DEFN   extern
 

Typedefs

typedef int regoff_t
 

Enumerations

enum  {
  REG_ASSERT = 1 , REG_BADBR , REG_BADPAT , REG_BADRPT ,
  REG_EBRACE , REG_EBRACK , REG_ECOLLATE , REG_ECTYPE ,
  REG_EESCAPE , REG_EMPTY , REG_EPAREN , REG_ERANGE ,
  REG_ESIZE , REG_ESPACE , REG_ESUBREG , REG_INVARG ,
  REG_NOMATCH
}
 
enum  {
  REG_ASSERT = 1 , REG_BADBR , REG_BADPAT , REG_BADRPT ,
  REG_EBRACE , REG_EBRACK , REG_ECOLLATE , REG_ECTYPE ,
  REG_EESCAPE , REG_EMPTY , REG_EPAREN , REG_ERANGE ,
  REG_ESIZE , REG_ESPACE , REG_ESUBREG , REG_INVARG ,
  REG_NOMATCH
}
 

Functions

int regcomp (regex_t *, const char *, int)
 
int regexec (const regex_t *, const char *, size_t, regmatch_t *, int)
 
size_t regerror (int, const regex_t *, char *, size_t)
 
void regfree (regex_t *)
 

Macro Definition Documentation

◆ PCREPOSIX_EXP_DECL [1/2]

#define PCREPOSIX_EXP_DECL   extern

Definition at line 129 of file pcreposix.h.

◆ PCREPOSIX_EXP_DECL [2/2]

#define PCREPOSIX_EXP_DECL   extern

Definition at line 129 of file pcreposix.h.

◆ PCREPOSIX_EXP_DEFN [1/2]

#define PCREPOSIX_EXP_DEFN   extern

Definition at line 130 of file pcreposix.h.

◆ PCREPOSIX_EXP_DEFN [2/2]

#define PCREPOSIX_EXP_DEFN   extern

Definition at line 130 of file pcreposix.h.

◆ REG_DOTALL [1/2]

#define REG_DOTALL   0x0010 /* NOT defined by POSIX; maps to PCRE_DOTALL */

Definition at line 59 of file pcreposix.h.

◆ REG_DOTALL [2/2]

#define REG_DOTALL   0x0010 /* NOT defined by POSIX; maps to PCRE_DOTALL */

Definition at line 59 of file pcreposix.h.

◆ REG_EXTENDED [1/2]

#define REG_EXTENDED   0

Definition at line 70 of file pcreposix.h.

◆ REG_EXTENDED [2/2]

#define REG_EXTENDED   0

Definition at line 70 of file pcreposix.h.

◆ REG_ICASE [1/2]

#define REG_ICASE   0x0001 /* Maps to PCRE_CASELESS */

Definition at line 55 of file pcreposix.h.

◆ REG_ICASE [2/2]

#define REG_ICASE   0x0001 /* Maps to PCRE_CASELESS */

Definition at line 55 of file pcreposix.h.

◆ REG_NEWLINE [1/2]

#define REG_NEWLINE   0x0002 /* Maps to PCRE_MULTILINE */

Definition at line 56 of file pcreposix.h.

◆ REG_NEWLINE [2/2]

#define REG_NEWLINE   0x0002 /* Maps to PCRE_MULTILINE */

Definition at line 56 of file pcreposix.h.

◆ REG_NOSUB [1/2]

#define REG_NOSUB   0x0020 /* Maps to PCRE_NO_AUTO_CAPTURE */

Definition at line 60 of file pcreposix.h.

◆ REG_NOSUB [2/2]

#define REG_NOSUB   0x0020 /* Maps to PCRE_NO_AUTO_CAPTURE */

Definition at line 60 of file pcreposix.h.

◆ REG_NOTBOL [1/2]

#define REG_NOTBOL   0x0004 /* Maps to PCRE_NOTBOL */

Definition at line 57 of file pcreposix.h.

◆ REG_NOTBOL [2/2]

#define REG_NOTBOL   0x0004 /* Maps to PCRE_NOTBOL */

Definition at line 57 of file pcreposix.h.

◆ REG_NOTEMPTY [1/2]

#define REG_NOTEMPTY   0x0100 /* NOT defined by POSIX; maps to PCRE_NOTEMPTY */

Definition at line 63 of file pcreposix.h.

◆ REG_NOTEMPTY [2/2]

#define REG_NOTEMPTY   0x0100 /* NOT defined by POSIX; maps to PCRE_NOTEMPTY */

Definition at line 63 of file pcreposix.h.

◆ REG_NOTEOL [1/2]

#define REG_NOTEOL   0x0008 /* Maps to PCRE_NOTEOL */

Definition at line 58 of file pcreposix.h.

◆ REG_NOTEOL [2/2]

#define REG_NOTEOL   0x0008 /* Maps to PCRE_NOTEOL */

Definition at line 58 of file pcreposix.h.

◆ REG_STARTEND [1/2]

#define REG_STARTEND   0x0080 /* BSD feature: pass subject string by so,eo */

Definition at line 62 of file pcreposix.h.

◆ REG_STARTEND [2/2]

#define REG_STARTEND   0x0080 /* BSD feature: pass subject string by so,eo */

Definition at line 62 of file pcreposix.h.

◆ REG_UCP [1/2]

#define REG_UCP   0x0400 /* NOT defined by POSIX; maps to PCRE_UCP */

Definition at line 65 of file pcreposix.h.

◆ REG_UCP [2/2]

#define REG_UCP   0x0400 /* NOT defined by POSIX; maps to PCRE_UCP */

Definition at line 65 of file pcreposix.h.

◆ REG_UNGREEDY [1/2]

#define REG_UNGREEDY   0x0200 /* NOT defined by POSIX; maps to PCRE_UNGREEDY */

Definition at line 64 of file pcreposix.h.

◆ REG_UNGREEDY [2/2]

#define REG_UNGREEDY   0x0200 /* NOT defined by POSIX; maps to PCRE_UNGREEDY */

Definition at line 64 of file pcreposix.h.

◆ REG_UTF8 [1/2]

#define REG_UTF8   0x0040 /* NOT defined by POSIX; maps to PCRE_UTF8 */

Definition at line 61 of file pcreposix.h.

◆ REG_UTF8 [2/2]

#define REG_UTF8   0x0040 /* NOT defined by POSIX; maps to PCRE_UTF8 */

Definition at line 61 of file pcreposix.h.

Typedef Documentation

◆ regoff_t

typedef int regoff_t

Definition at line 105 of file pcreposix.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
REG_ASSERT 
REG_BADBR 
REG_BADPAT 
REG_BADRPT 
REG_EBRACE 
REG_EBRACK 
REG_ECOLLATE 
REG_ECTYPE 
REG_EESCAPE 
REG_EMPTY 
REG_EPAREN 
REG_ERANGE 
REG_ESIZE 
REG_ESPACE 
REG_ESUBREG 
REG_INVARG 
REG_NOMATCH 

Definition at line 74 of file pcreposix.h.

◆ anonymous enum

anonymous enum
Enumerator
REG_ASSERT 
REG_BADBR 
REG_BADPAT 
REG_BADRPT 
REG_EBRACE 
REG_EBRACK 
REG_ECOLLATE 
REG_ECTYPE 
REG_EESCAPE 
REG_EMPTY 
REG_EPAREN 
REG_ERANGE 
REG_ESIZE 
REG_ESPACE 
REG_ESUBREG 
REG_INVARG 
REG_NOMATCH 

Definition at line 74 of file pcreposix.h.

Function Documentation

◆ regcomp()

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

◆ regerror()

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

Definition at line 211 of file pcreposix.c.

References int, NULL, pstring, and regex_t::re_erroffset.

Referenced by main().

◆ regexec()

int regexec ( const regex_t ,
const char *  ,
size_t  ,
regmatch_t ,
int   
)

Referenced by main().

◆ regfree()

void regfree ( regex_t preg)

Definition at line 246 of file pcreposix.c.

References free(), PUBL, and regex_t::re_pcre.

Referenced by main().

Modified on Tue May 21 10:57:30 2024 by modify_doxy.py rev. 669887