Classes | Namespaces | Macros | Functions | Variables
bloaty/third_party/re2/util/pcre.cc File Reference
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <limits>
#include <string>
#include <utility>
#include "util/util.h"
#include "util/flags.h"
#include "util/logging.h"
#include "util/pcre.h"
#include "util/strutil.h"
Include dependency graph for bloaty/third_party/re2/util/pcre.cc:

Go to the source code of this file.

Classes

struct  pcre_extra
 

Namespaces

 re2
 

Macros

#define DEFINE_INTEGER_PARSER(name)
 
#define PCRE_ANCHORED   0
 
#define PCRE_ERROR_MATCHLIMIT   2
 
#define PCRE_ERROR_NOMATCH   1
 
#define PCRE_ERROR_RECURSIONLIMIT   3
 
#define PCRE_EXTRA_MATCH_LIMIT   0
 
#define PCRE_EXTRA_MATCH_LIMIT_RECURSION   0
 
#define PCRE_INFO_CAPTURECOUNT   0
 
#define PCRE_NOTEMPTY   0
 
#define PCREPORT(level)   LOG(level)
 

Functions

 DEFINE_int32 (regexp_match_limit, 1000000, "default PCRE match limit (function calls)")
 
 DEFINE_int32 (regexp_stack_limit, 256<< 10, "default PCRE stack limit (bytes)")
 
 re2::DEFINE_INTEGER_PARSER (int)
 
 re2::DEFINE_INTEGER_PARSER (long)
 
 re2::DEFINE_INTEGER_PARSER (longlong)
 
 re2::DEFINE_INTEGER_PARSER (short)
 
 re2::DEFINE_INTEGER_PARSER (uint)
 
 re2::DEFINE_INTEGER_PARSER (ulong)
 
 re2::DEFINE_INTEGER_PARSER (ulonglong)
 
 re2::DEFINE_INTEGER_PARSER (ushort)
 
static bool re2::parse_double_float (const char *str, size_t n, bool isfloat, void *dest)
 
pcre * pcre_compile (const char *, int, const char **, int *, const unsigned char *)
 
int pcre_exec (const pcre *, const pcre_extra *, const char *, int, int, int, int *, int)
 
void pcre_free (void *)
 
int pcre_fullinfo (const pcre *, const pcre_extra *, int, void *)
 
static const char * re2::TerminateNumber (char *buf, const char *str, size_t n)
 

Variables

static const std::string re2::empty_string
 
static const int re2::kMaxArgs = 16
 
static const int re2::kMaxNumberLength = 32
 
static const int re2::kPCREFrameSize = 700
 
static const int re2::kVecSize = (1 + kMaxArgs) * 3
 

Macro Definition Documentation

◆ DEFINE_INTEGER_PARSER

#define DEFINE_INTEGER_PARSER (   name)
Value:
bool PCRE::Arg::parse_##name(const char* str, size_t n, void* dest) { \
return parse_##name##_radix(str, n, dest, 10); \
} \
bool PCRE::Arg::parse_##name##_hex(const char* str, size_t n, void* dest) { \
return parse_##name##_radix(str, n, dest, 16); \
} \
bool PCRE::Arg::parse_##name##_octal(const char* str, size_t n, \
void* dest) { \
return parse_##name##_radix(str, n, dest, 8); \
} \
bool PCRE::Arg::parse_##name##_cradix(const char* str, size_t n, \
void* dest) { \
return parse_##name##_radix(str, n, dest, 0); \
}

Definition at line 1024 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_ANCHORED

#define PCRE_ANCHORED   0

Definition at line 54 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_ERROR_MATCHLIMIT

#define PCRE_ERROR_MATCHLIMIT   2

Definition at line 57 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_ERROR_NOMATCH

#define PCRE_ERROR_NOMATCH   1

Definition at line 56 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_ERROR_RECURSIONLIMIT

#define PCRE_ERROR_RECURSIONLIMIT   3

Definition at line 58 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_EXTRA_MATCH_LIMIT

#define PCRE_EXTRA_MATCH_LIMIT   0

Definition at line 52 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_EXTRA_MATCH_LIMIT_RECURSION

#define PCRE_EXTRA_MATCH_LIMIT_RECURSION   0

Definition at line 53 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_INFO_CAPTURECOUNT

#define PCRE_INFO_CAPTURECOUNT   0

Definition at line 59 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCRE_NOTEMPTY

#define PCRE_NOTEMPTY   0

Definition at line 55 of file bloaty/third_party/re2/util/pcre.cc.

◆ PCREPORT

#define PCREPORT (   level)    LOG(level)

Definition at line 31 of file bloaty/third_party/re2/util/pcre.cc.

Function Documentation

◆ DEFINE_int32() [1/2]

DEFINE_int32 ( regexp_match_limit  ,
1000000  ,
"default PCRE match limit (function calls)"   
)

◆ DEFINE_int32() [2/2]

DEFINE_int32 ( regexp_stack_limit  ,
256<<  10,
"default PCRE stack limit (bytes)"   
)

◆ pcre_compile()

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

Definition at line 64 of file bloaty/third_party/re2/util/pcre.cc.

◆ pcre_exec()

int pcre_exec ( const pcre *  ,
const pcre_extra ,
const char *  ,
int  ,
int  ,
int  ,
int ,
int   
)

Definition at line 68 of file bloaty/third_party/re2/util/pcre.cc.

◆ pcre_free()

void pcre_free ( void *  )

Definition at line 61 of file bloaty/third_party/re2/util/pcre.cc.

◆ pcre_fullinfo()

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

Definition at line 72 of file bloaty/third_party/re2/util/pcre.cc.

xds_interop_client.str
str
Definition: xds_interop_client.py:487
setup.name
name
Definition: setup.py:542
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
tests.qps.qps_worker.dest
dest
Definition: qps_worker.py:45


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:25