NCBI C++ ToolKit
Functions | Variables
pcre2_context.c File Reference
#include "pcre2_internal.h"
+ Include dependency graph for pcre2_context.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static void * default_malloc (size_t size, void *data)
 
static void default_free (void *block, void *data)
 
void * _pcre2_memctl_malloc (size_t size, pcre2_memctl *memctl)
 
PCRE2_EXPORT pcre2_general_context *PCRE2_CALL_CONVENTION pcre2_general_context_create (void *(*private_malloc)(size_t, void *), void(*private_free)(void *, void *), void *memory_data)
 
PCRE2_EXPORT pcre2_compile_context *PCRE2_CALL_CONVENTION pcre2_compile_context_create (pcre2_general_context *gcontext)
 
PCRE2_EXPORT pcre2_match_context *PCRE2_CALL_CONVENTION pcre2_match_context_create (pcre2_general_context *gcontext)
 
PCRE2_EXPORT pcre2_convert_context *PCRE2_CALL_CONVENTION pcre2_convert_context_create (pcre2_general_context *gcontext)
 
PCRE2_EXPORT pcre2_general_context *PCRE2_CALL_CONVENTION pcre2_general_context_copy (pcre2_general_context *gcontext)
 
PCRE2_EXPORT pcre2_compile_context *PCRE2_CALL_CONVENTION pcre2_compile_context_copy (pcre2_compile_context *ccontext)
 
PCRE2_EXPORT pcre2_match_context *PCRE2_CALL_CONVENTION pcre2_match_context_copy (pcre2_match_context *mcontext)
 
PCRE2_EXPORT pcre2_convert_context *PCRE2_CALL_CONVENTION pcre2_convert_context_copy (pcre2_convert_context *ccontext)
 
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_general_context_free (pcre2_general_context *gcontext)
 
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_compile_context_free (pcre2_compile_context *ccontext)
 
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_match_context_free (pcre2_match_context *mcontext)
 
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_convert_context_free (pcre2_convert_context *ccontext)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_character_tables (pcre2_compile_context *ccontext, const uint8_t *tables)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_bsr (pcre2_compile_context *ccontext, uint32_t value)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_max_pattern_length (pcre2_compile_context *ccontext, PCRE2_SIZE length)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_max_pattern_compiled_length (pcre2_compile_context *ccontext, PCRE2_SIZE length)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_newline (pcre2_compile_context *ccontext, uint32_t newline)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_max_varlookbehind (pcre2_compile_context *ccontext, uint32_t limit)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_parens_nest_limit (pcre2_compile_context *ccontext, uint32_t limit)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_compile_extra_options (pcre2_compile_context *ccontext, uint32_t options)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_compile_recursion_guard (pcre2_compile_context *ccontext, int(*guard)(uint32_t, void *), void *user_data)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_callout (pcre2_match_context *mcontext, int(*callout)(pcre2_callout_block *, void *), void *callout_data)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_substitute_callout (pcre2_match_context *mcontext, int(*substitute_callout)(pcre2_substitute_callout_block *, void *), void *substitute_callout_data)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_heap_limit (pcre2_match_context *mcontext, uint32_t limit)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_match_limit (pcre2_match_context *mcontext, uint32_t limit)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_depth_limit (pcre2_match_context *mcontext, uint32_t limit)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_offset_limit (pcre2_match_context *mcontext, PCRE2_SIZE limit)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_recursion_limit (pcre2_match_context *mcontext, uint32_t limit)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_recursion_memory_management (pcre2_match_context *mcontext, void *(*mymalloc)(size_t, void *), void(*myfree)(void *, void *), void *mydata)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_glob_separator (pcre2_convert_context *ccontext, uint32_t separator)
 
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_glob_escape (pcre2_convert_context *ccontext, uint32_t escape)
 

Variables

const pcre2_compile_context _pcre2_default_compile_context
 
const pcre2_match_context _pcre2_default_match_context
 
const pcre2_convert_context _pcre2_default_convert_context
 

Function Documentation

◆ _pcre2_memctl_malloc()

void* _pcre2_memctl_malloc ( size_t  size,
pcre2_memctl memctl 
)

◆ default_free()

static void default_free ( void *  block,
void *  data 
)
static

Definition at line 63 of file pcre2_context.c.

References data, and free().

Referenced by _pcre2_memctl_malloc(), and pcre2_general_context_create().

◆ default_malloc()

static void* default_malloc ( size_t  size,
void *  data 
)
static

◆ pcre2_compile_context_copy()

Definition at line 244 of file pcre2_context.c.

References NULL, and pcre2_compile_context.

◆ pcre2_compile_context_create()

PCRE2_EXPORT pcre2_compile_context* PCRE2_CALL_CONVENTION pcre2_compile_context_create ( pcre2_general_context gcontext)

Definition at line 151 of file pcre2_context.c.

References NULL, pcre2_compile_context, and PRIV.

Referenced by LLVMFuzzerTestOneInput(), and main().

◆ pcre2_compile_context_free()

PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_compile_context_free ( pcre2_compile_context ccontext)

Definition at line 292 of file pcre2_context.c.

References NULL.

Referenced by LLVMFuzzerTestOneInput(), and main().

◆ pcre2_convert_context_copy()

Definition at line 268 of file pcre2_context.c.

References NULL, and pcre2_convert_context.

◆ pcre2_convert_context_create()

PCRE2_EXPORT pcre2_convert_context* PCRE2_CALL_CONVENTION pcre2_convert_context_create ( pcre2_general_context gcontext)

Definition at line 215 of file pcre2_context.c.

References NULL, pcre2_convert_context, and PRIV.

◆ pcre2_convert_context_free()

PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_convert_context_free ( pcre2_convert_context ccontext)

Definition at line 308 of file pcre2_context.c.

References NULL.

◆ pcre2_general_context_copy()

Definition at line 232 of file pcre2_context.c.

References NULL, and pcre2_general_context.

◆ pcre2_general_context_create()

PCRE2_EXPORT pcre2_general_context* PCRE2_CALL_CONVENTION pcre2_general_context_create ( void *(*)(size_t, void *)  private_malloc,
void(*)(void *, void *)  private_free,
void *  memory_data 
)

Definition at line 115 of file pcre2_context.c.

References default_free(), default_malloc(), NULL, and pcre2_general_context.

◆ pcre2_general_context_free()

PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_general_context_free ( pcre2_general_context gcontext)

Definition at line 284 of file pcre2_context.c.

References NULL.

◆ pcre2_match_context_copy()

Definition at line 256 of file pcre2_context.c.

References NULL, and pcre2_match_context.

◆ pcre2_match_context_create()

PCRE2_EXPORT pcre2_match_context* PCRE2_CALL_CONVENTION pcre2_match_context_create ( pcre2_general_context gcontext)

Definition at line 185 of file pcre2_context.c.

References NULL, pcre2_match_context, and PRIV.

Referenced by LLVMFuzzerTestOneInput(), and main().

◆ pcre2_match_context_free()

PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_match_context_free ( pcre2_match_context mcontext)

Definition at line 300 of file pcre2_context.c.

References NULL.

Referenced by LLVMFuzzerTestOneInput(), and main().

◆ pcre2_set_bsr()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_bsr ( pcre2_compile_context ccontext,
uint32_t  value 
)

◆ pcre2_set_callout()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_callout ( pcre2_match_context mcontext,
int(*)(pcre2_callout_block *, void *)  callout,
void *  callout_data 
)

Definition at line 416 of file pcre2_context.c.

Referenced by LLVMFuzzerTestOneInput(), and main().

◆ pcre2_set_character_tables()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_character_tables ( pcre2_compile_context ccontext,
const uint8_t tables 
)

Definition at line 327 of file pcre2_context.c.

Referenced by main().

◆ pcre2_set_compile_extra_options()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_compile_extra_options ( pcre2_compile_context ccontext,
uint32_t  options 
)

Definition at line 397 of file pcre2_context.c.

Referenced by main().

◆ pcre2_set_compile_recursion_guard()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_compile_recursion_guard ( pcre2_compile_context ccontext,
int(*)(uint32_t, void *)  guard,
void *  user_data 
)

Definition at line 404 of file pcre2_context.c.

◆ pcre2_set_depth_limit()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_depth_limit ( pcre2_match_context mcontext,
uint32_t  limit 
)

Definition at line 449 of file pcre2_context.c.

Referenced by LLVMFuzzerTestOneInput(), main(), and pcre2_set_recursion_limit().

◆ pcre2_set_glob_escape()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_glob_escape ( pcre2_convert_context ccontext,
uint32_t  escape 
)

Definition at line 501 of file pcre2_context.c.

References ispunct(), and PCRE2_ERROR_BADDATA.

◆ pcre2_set_glob_separator()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_glob_separator ( pcre2_convert_context ccontext,
uint32_t  separator 
)

Definition at line 492 of file pcre2_context.c.

References CHAR_BACKSLASH, CHAR_DOT, CHAR_SLASH, and PCRE2_ERROR_BADDATA.

◆ pcre2_set_heap_limit()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_heap_limit ( pcre2_match_context mcontext,
uint32_t  limit 
)

Definition at line 435 of file pcre2_context.c.

Referenced by main().

◆ pcre2_set_match_limit()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_match_limit ( pcre2_match_context mcontext,
uint32_t  limit 
)

Definition at line 442 of file pcre2_context.c.

Referenced by LLVMFuzzerTestOneInput(), and main().

◆ pcre2_set_max_pattern_compiled_length()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_max_pattern_compiled_length ( pcre2_compile_context ccontext,
PCRE2_SIZE  length 
)

Definition at line 357 of file pcre2_context.c.

Referenced by LLVMFuzzerTestOneInput().

◆ pcre2_set_max_pattern_length()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_max_pattern_length ( pcre2_compile_context ccontext,
PCRE2_SIZE  length 
)

Definition at line 350 of file pcre2_context.c.

◆ pcre2_set_max_varlookbehind()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_max_varlookbehind ( pcre2_compile_context ccontext,
uint32_t  limit 
)

Definition at line 383 of file pcre2_context.c.

◆ pcre2_set_newline()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_newline ( pcre2_compile_context ccontext,
uint32_t  newline 
)

◆ pcre2_set_offset_limit()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_offset_limit ( pcre2_match_context mcontext,
PCRE2_SIZE  limit 
)

Definition at line 456 of file pcre2_context.c.

◆ pcre2_set_parens_nest_limit()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_parens_nest_limit ( pcre2_compile_context ccontext,
uint32_t  limit 
)

Definition at line 390 of file pcre2_context.c.

◆ pcre2_set_recursion_limit()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_recursion_limit ( pcre2_match_context mcontext,
uint32_t  limit 
)

Definition at line 469 of file pcre2_context.c.

References pcre2_set_depth_limit().

◆ pcre2_set_recursion_memory_management()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_recursion_memory_management ( pcre2_match_context mcontext,
void *(*)(size_t, void *)  mymalloc,
void(*)(void *, void *)  myfree,
void *  mydata 
)

Definition at line 475 of file pcre2_context.c.

◆ pcre2_set_substitute_callout()

PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_substitute_callout ( pcre2_match_context mcontext,
int(*)(pcre2_substitute_callout_block *, void *)  substitute_callout,
void *  substitute_callout_data 
)

Definition at line 425 of file pcre2_context.c.

Variable Documentation

◆ _pcre2_default_compile_context

const pcre2_compile_context _pcre2_default_compile_context
Initial value:
= {
NULL,
NULL,
0,
}
#define NULL
Definition: ncbistd.hpp:225
#define PCRE2_UNSET
Definition: pcre2.h:488
#define PCRE2_BSR_UNICODE
Definition: pcre2.h:223
const uint8_t _pcre2_default_tables[]
static void * default_malloc(size_t size, void *data)
Definition: pcre2_context.c:56
static void default_free(void *block, void *data)
Definition: pcre2_context.c:63
#define NEWLINE_DEFAULT
Definition: config.h:159
#define MAX_VARLOOKBEHIND
Definition: config.h:148
#define PARENS_NEST_LIMIT
Definition: config.h:187

Definition at line 133 of file pcre2_context.c.

◆ _pcre2_default_convert_context

const pcre2_convert_context _pcre2_default_convert_context
Initial value:
= {
'/' ,
'\\'
}

Definition at line 200 of file pcre2_context.c.

◆ _pcre2_default_match_context

const pcre2_match_context _pcre2_default_match_context
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
#define MATCH_LIMIT_DEPTH
Definition: config.h:128
#define HEAP_LIMIT
Definition: config.h:88
#define MATCH_LIMIT
Definition: config.h:114

Definition at line 166 of file pcre2_context.c.

Modified on Fri Sep 20 14:57:29 2024 by modify_doxy.py rev. 669887