NCBI C++ ToolKit
|
#include <ctype.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pcre2.h"
#include "pcre2posix.h"
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 [] |
#define COMPILE_ERROR_BASE 100 |
Definition at line 81 of file pcre2posix.c.
Definition at line 166 of file pcre2posix.c.
Referenced by LOG_ComposeMessage(), pcre2_regerror(), ProduceCassandraFutureErrorMessage(), s_LOG_Handler(), and tds5_rsa_encrypt().
PCRE2POSIX_EXP_DEFN int PCRE2_CALL_CONVENTION pcre2_regcomp | ( | regex_t * | preg, |
const char * | pattern, | ||
int | cflags | ||
) |
Definition at line 272 of file pcre2posix.c.
References cflags, COMPILE_ERROR_BASE, eint1, eint2, i, NULL, PCRE2_CASELESS, pcre2_code, pcre2_code_free(), pcre2_compile(), PCRE2_DOTALL, PCRE2_INFO_CAPTURECOUNT, PCRE2_LITERAL, pcre2_match_data_create(), PCRE2_MULTILINE, pcre2_pattern_info(), PCRE2_SIZE, PCRE2_SPTR, PCRE2_UCP, PCRE2_UNGREEDY, PCRE2_UTF, PCRE2_ZERO_TERMINATED, regex_t::re_cflags, regex_t::re_endp, regex_t::re_erroffset, regex_t::re_match_data, regex_t::re_nsub, regex_t::re_pcre2_code, REG_BADPAT, REG_DOTALL, REG_ESPACE, REG_ICASE, REG_NEWLINE, REG_NOSPEC, REG_PEND, REG_UCP, REG_UNGREEDY, and REG_UTF.
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.
PCRE2POSIX_EXP_DEFN int PCRE2_CALL_CONVENTION pcre2_regexec | ( | const regex_t * | preg, |
const char * | string, | ||
size_t | nmatch, | ||
regmatch_t | pmatch[], | ||
int | eflags | ||
) |
Definition at line 342 of file pcre2posix.c.
References i, if(), int, NULL, pcre2_code, PCRE2_ERROR_BADMAGIC, PCRE2_ERROR_BADMODE, PCRE2_ERROR_BADOPTION, PCRE2_ERROR_BADUTFOFFSET, PCRE2_ERROR_HEAPLIMIT, PCRE2_ERROR_MATCHLIMIT, PCRE2_ERROR_NOMATCH, PCRE2_ERROR_NOMEMORY, PCRE2_ERROR_NULL, PCRE2_ERROR_UTF8_ERR21, pcre2_get_ovector_pointer(), pcre2_match(), pcre2_match_data, PCRE2_NOTBOL, PCRE2_NOTEMPTY, PCRE2_NOTEOL, PCRE2_SIZE, PCRE2_SPTR, PCRE2_UNSET, regex_t::re_cflags, regex_t::re_match_data, regex_t::re_pcre2_code, REG_ASSERT, REG_ESPACE, REG_INVARG, REG_NOMATCH, REG_NOSUB, REG_NOTBOL, REG_NOTEMPTY, REG_NOTEOL, REG_STARTEND, regmatch_t::rm_eo, and regmatch_t::rm_so.
PCRE2POSIX_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_regfree | ( | regex_t * | preg | ) |
Definition at line 249 of file pcre2posix.c.
References pcre2_code_free(), pcre2_match_data_free(), regex_t::re_match_data, and regex_t::re_pcre2_code.
Definition at line 134 of file pcre2posix.c.
Referenced by pcre2_regcomp().
Definition at line 145 of file pcre2posix.c.
Referenced by pcre2_regerror().