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

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define APTROWS   (LAST_AUTOTAB_LEFT_OP - FIRST_AUTOTAB_OP + 1)
 
#define APTCOLS   (LAST_AUTOTAB_RIGHT_OP - FIRST_AUTOTAB_OP + 1)
 

Functions

static PCRE2_UCHAR get_repeat_base (PCRE2_UCHAR c)
 
static PCRE2_SPTR get_chr_property_list (PCRE2_SPTR code, BOOL utf, BOOL ucp, const uint8_t *fcc, uint32_t *list)
 
static BOOL compare_opcodes (PCRE2_SPTR code, BOOL utf, BOOL ucp, const compile_block *cb, const uint32_t *base_list, PCRE2_SPTR base_end, int *rec_limit)
 
int _pcre2_auto_possessify (PCRE2_UCHAR *code, const compile_block *cb)
 

Variables

static const uint8_t autoposstab [(OP_EXTUNI - OP_NOT_DIGIT+1)][(OP_DOLLM - OP_NOT_DIGIT+1)]
 

Macro Definition Documentation

◆ APTCOLS

#define APTCOLS   (LAST_AUTOTAB_RIGHT_OP - FIRST_AUTOTAB_OP + 1)

Definition at line 71 of file pcre2_auto_possess.c.

◆ APTROWS

#define APTROWS   (LAST_AUTOTAB_LEFT_OP - FIRST_AUTOTAB_OP + 1)

Definition at line 70 of file pcre2_auto_possess.c.

Function Documentation

◆ _pcre2_auto_possessify()

int _pcre2_auto_possessify ( PCRE2_UCHAR code,
const compile_block cb 
)

◆ compare_opcodes()

static BOOL compare_opcodes ( PCRE2_SPTR  code,
BOOL  utf,
BOOL  ucp,
const compile_block cb,
const uint32_t base_list,
PCRE2_SPTR  base_end,
int rec_limit 
)
static

◆ get_chr_property_list()

static PCRE2_SPTR get_chr_property_list ( PCRE2_SPTR  code,
BOOL  utf,
BOOL  ucp,
const uint8_t fcc,
uint32_t list 
)
static

◆ get_repeat_base()

static PCRE2_UCHAR get_repeat_base ( PCRE2_UCHAR  c)
static

Variable Documentation

◆ autoposst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