NCBI C++ ToolKit
Macros | Functions | Variables
pcre2posix.c File Reference
#include <ctype.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pcre2.h"
#include "pcre2posix.h"
+ Include dependency graph for pcre2posix.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define COMPILE_ERROR_BASE   100
 

Functions

static int message_len (const char *message, int offset)
 
PCRE2POSIX_EXP_DEFN size_t PCRE2_CALL_CONVENTION pcre2_regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
 
PCRE2POSIX_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_regfree (regex_t *preg)
 
PCRE2POSIX_EXP_DEFN int PCRE2_CALL_CONVENTION pcre2_regcomp (regex_t *preg, const char *pattern, int cflags)
 
PCRE2POSIX_EXP_DEFN int PCRE2_CALL_CONVENTION pcre2_regexec (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 

Variables

static const int eint1 []
 
static const int eint2 []
 
static const char *const pstring []
 

Macro Definition Documentation

◆ COMPILE_ERROR_BASE

#define COMPILE_ERROR_BASE   100

Definition at line 81 of file pcre2posix.c.

Function Documentation

◆ message_len()

static int message_len ( const char *  message,
int  offset 
)
static

◆ pcre2_regcomp()

PCRE2POSIX_EXP_DEFN int PCRE2_CALL_CONVENTION pcre2_regcomp ( regex_t preg,
const char *  pattern,
int  cflags 
)

◆ pcre2_regerror()

PCRE2POSIX_EXP_DEFN size_t PCRE2_CALL_CONVENTION pcre2_regerror ( int  errcode,
const regex_t preg,
char *  errbuf,
size_t  errbuf_size 
)

Definition at line 179 of file pcre2posix.c.

References int, len, message_len(), NULL, pstring, and regex_t::re_erroffset.

◆ pcre2_regexec()

PCRE2POSIX_EXP_DEFN int PCRE2_CALL_CONVENTION pcre2_regexec ( const regex_t preg,
const char *  string,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ pcre2_regfree()

PCRE2POSIX_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_regfree ( regex_t preg)

Variable Documentation

◆ eint1

const int eint1[]
static
Initial value:
= {
0,
}
@ REG_INVARG
Definition: pcre2posix.h:95
@ REG_ERANGE
Definition: pcre2posix.h:91
@ REG_ESIZE
Definition: pcre2posix.h:92
@ REG_ASSERT
Definition: pcre2posix.h:80
@ REG_BADPAT
Definition: pcre2posix.h:82
@ REG_EBRACK
Definition: pcre2posix.h:85
@ REG_ECTYPE
Definition: pcre2posix.h:87
@ REG_ESPACE
Definition: pcre2posix.h:93
@ REG_EESCAPE
Definition: pcre2posix.h:88
@ REG_EPAREN
Definition: pcre2posix.h:90
@ REG_ESUBREG
Definition: pcre2posix.h:94
@ REG_BADBR
Definition: pcre2posix.h:81
@ REG_BADRPT
Definition: pcre2posix.h:83

Definition at line 103 of file pcre2posix.c.

Referenced by pcre2_regcomp().

◆ eint2

const int eint2[]
static
Initial value:

Definition at line 134 of file pcre2posix.c.

Referenced by pcre2_regcomp().

◆ pstring

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 145 of file pcre2posix.c.

Referenced by pcre2_regerror().

Modified on Fri Sep 20 14:58:31 2024 by modify_doxy.py rev. 669887