90 memctl->malloc(
size, memctl->memory_data);
99 else *newmemctl = *memctl;
116 void (*private_free)(
void *,
void *),
void *memory_data)
123 gcontext->memctl.malloc = private_malloc;
124 gcontext->memctl.free = private_free;
125 gcontext->memctl.memory_data = memory_data;
137 PRIV(default_tables),
156 *ccontext =
PRIV(default_compile_context);
157 if (gcontext !=
NULL)
190 *mcontext =
PRIV(default_match_context);
191 if (gcontext !=
NULL)
220 *ccontext =
PRIV(default_convert_context);
221 if (gcontext !=
NULL)
236 gcontext->memctl.memory_data);
237 if (newcontext ==
NULL)
return NULL;
248 ccontext->memctl.memory_data);
249 if (newcontext ==
NULL)
return NULL;
260 mcontext->memctl.memory_data);
261 if (newcontext ==
NULL)
return NULL;
272 ccontext->memctl.memory_data);
273 if (newcontext ==
NULL)
return NULL;
286 if (gcontext !=
NULL)
287 gcontext->memctl.free(gcontext, gcontext->memctl.memory_data);
294 if (ccontext !=
NULL)
295 ccontext->memctl.free(ccontext, ccontext->memctl.memory_data);
302 if (mcontext !=
NULL)
303 mcontext->memctl.free(mcontext, mcontext->memctl.memory_data);
310 if (ccontext !=
NULL)
311 ccontext->memctl.free(ccontext, ccontext->memctl.memory_data);
330 ccontext->tables = tables;
341 ccontext->bsr_convention =
value;
352 ccontext->max_pattern_length = length;
359 ccontext->max_pattern_compiled_length = length;
374 ccontext->newline_convention = newline;
385 ccontext->max_varlookbehind = limit;
392 ccontext->parens_nest_limit = limit;
399 ccontext->extra_options = options;
405 int (*guard)(
uint32_t,
void *),
void *user_data)
407 ccontext->stack_guard = guard;
408 ccontext->stack_guard_data = user_data;
419 mcontext->callout = callout;
420 mcontext->callout_data = callout_data;
427 void *substitute_callout_data)
429 mcontext->substitute_callout = substitute_callout;
430 mcontext->substitute_callout_data = substitute_callout_data;
437 mcontext->heap_limit = limit;
444 mcontext->match_limit = limit;
451 mcontext->depth_limit = limit;
458 mcontext->offset_limit = limit;
476 void *(*mymalloc)(
size_t,
void *),
void (*myfree)(
void *,
void *),
496 ccontext->glob_separator = separator;
503 if (escape > 255 || (escape != 0 && !
ispunct(escape)))
505 ccontext->glob_escape = escape;
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
#define pcre2_convert_context
#define PCRE2_BSR_ANYCRLF
#define pcre2_general_context
#define PCRE2_NEWLINE_ANYCRLF
#define pcre2_substitute_callout_block
#define pcre2_match_context
#define PCRE2_CALL_CONVENTION
#define PCRE2_ERROR_BADDATA
#define PCRE2_NEWLINE_CRLF
#define PCRE2_NEWLINE_NUL
#define PCRE2_BSR_UNICODE
#define pcre2_callout_block
#define PCRE2_NEWLINE_ANY
#define pcre2_compile_context
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_max_pattern_compiled_length(pcre2_compile_context *ccontext, PCRE2_SIZE length)
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 pcre2_match_context *PCRE2_CALL_CONVENTION pcre2_match_context_copy(pcre2_match_context *mcontext)
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_max_pattern_length(pcre2_compile_context *ccontext, PCRE2_SIZE length)
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_depth_limit(pcre2_match_context *mcontext, uint32_t limit)
static void * default_malloc(size_t size, void *data)
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_match_context_free(pcre2_match_context *mcontext)
PCRE2_EXPORT pcre2_match_context *PCRE2_CALL_CONVENTION pcre2_match_context_create(pcre2_general_context *gcontext)
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_newline(pcre2_compile_context *ccontext, uint32_t newline)
PCRE2_EXPORT pcre2_compile_context *PCRE2_CALL_CONVENTION pcre2_compile_context_copy(pcre2_compile_context *ccontext)
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_general_context_free(pcre2_general_context *gcontext)
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 pcre2_compile_context *PCRE2_CALL_CONVENTION pcre2_compile_context_create(pcre2_general_context *gcontext)
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_glob_escape(pcre2_convert_context *ccontext, uint32_t escape)
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_glob_separator(pcre2_convert_context *ccontext, uint32_t separator)
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_convert_context_free(pcre2_convert_context *ccontext)
PCRE2_EXPORT pcre2_convert_context *PCRE2_CALL_CONVENTION pcre2_convert_context_copy(pcre2_convert_context *ccontext)
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_create(void *(*private_malloc)(size_t, void *), void(*private_free)(void *, void *), void *memory_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)
static void default_free(void *block, void *data)
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_max_varlookbehind(pcre2_compile_context *ccontext, uint32_t limit)
PCRE2_EXPORT void PCRE2_CALL_CONVENTION pcre2_compile_context_free(pcre2_compile_context *ccontext)
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_bsr(pcre2_compile_context *ccontext, uint32_t value)
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_compile_extra_options(pcre2_compile_context *ccontext, uint32_t options)
PCRE2_EXPORT pcre2_general_context *PCRE2_CALL_CONVENTION pcre2_general_context_copy(pcre2_general_context *gcontext)
PCRE2_EXPORT int PCRE2_CALL_CONVENTION pcre2_set_character_tables(pcre2_compile_context *ccontext, const uint8_t *tables)
#define CHAR_GRAVE_ACCENT
struct pcre2_real_convert_context pcre2_real_convert_context
struct pcre2_real_compile_context pcre2_real_compile_context
struct pcre2_real_match_context pcre2_real_match_context
#define MATCH_LIMIT_DEPTH
#define MAX_VARLOOKBEHIND
#define PARENS_NEST_LIMIT
void *(* malloc)(size_t, void *)
void(* free)(void *, void *)