Ruby
2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
|
#include "regparse.h"
Go to the source code of this file.
Data Structures | |
struct | MinMaxLen |
struct | OptEnv |
struct | OptAncInfo |
struct | OptExactInfo |
struct | OptMapInfo |
struct | NodeOptInfo |
Macros | |
#define | IS_NEED_STR_LEN_OP_EXACT(op) |
#define | REPEAT_RANGE_ALLOC 4 |
#define | QUANTIFIER_EXPAND_LIMIT_SIZE 50 |
#define | CKN_ON (ckn > 0) |
#define | GET_CHAR_LEN_VARLEN -1 |
#define | GET_CHAR_LEN_TOP_ALT_VARLEN -2 |
#define | RECURSION_EXIST 1 |
#define | RECURSION_INFINITE 2 |
#define | FOUND_CALLED_NODE 1 |
#define | THRESHOLD_CASE_FOLD_ALT_FOR_EXPANSION 8 |
#define | IN_ALT (1<<0) |
#define | IN_NOT (1<<1) |
#define | IN_REPEAT (1<<2) |
#define | IN_VAR_REPEAT (1<<3) |
#define | IN_CALL (1<<4) |
#define | IN_RECCALL (1<<5) |
#define | EXPAND_STRING_MAX_LENGTH 100 |
#define | ALLOWED_TYPE_IN_LB |
#define | ALLOWED_ENCLOSE_IN_LB ( ENCLOSE_MEMORY | ENCLOSE_OPTION ) |
#define | ALLOWED_ENCLOSE_IN_LB_NOT ENCLOSE_OPTION |
#define | ALLOWED_ANCHOR_IN_LB |
#define | ALLOWED_ANCHOR_IN_LB_NOT |
#define | COMP_EM_BASE 20 |
#define | MAX_NODE_OPT_INFO_REF_COUNT 5 |
#define | REGEX_TRANSFER(to, from) |
#define | COMPILE_INIT_SIZE 20 |
Variables | |
OnigCaseFoldType | OnigDefaultCaseFoldFlag = ONIGENC_CASE_FOLD_MIN |
#define ALLOWED_ANCHOR_IN_LB |
#define ALLOWED_ANCHOR_IN_LB_NOT |
#define ALLOWED_ENCLOSE_IN_LB ( ENCLOSE_MEMORY | ENCLOSE_OPTION ) |
#define ALLOWED_ENCLOSE_IN_LB_NOT ENCLOSE_OPTION |
#define ALLOWED_TYPE_IN_LB |
#define COMP_EM_BASE 20 |
#define COMPILE_INIT_SIZE 20 |
#define EXPAND_STRING_MAX_LENGTH 100 |
#define FOUND_CALLED_NODE 1 |
#define IS_NEED_STR_LEN_OP_EXACT | ( | op | ) |
#define REGEX_TRANSFER | ( | to, | |
from | |||
) |
#define REPEAT_RANGE_ALLOC 4 |
#define THRESHOLD_CASE_FOLD_ALT_FOR_EXPANSION 8 |
Definition at line 6025 of file regcomp.c.
References OnigEndCallListItem::next, and xmalloc.
int onig_bbuf_init | ( | BBuf * | buf, |
OnigDistance | size | ||
) |
int onig_compile | ( | regex_t * | reg, |
const UChar * | pattern, | ||
const UChar * | pattern_end, | ||
OnigErrorInfo * | einfo | ||
) |
Definition at line 5701 of file regcomp.c.
References NULL, and onig_compile_ruby().
Referenced by onig_new(), and onig_new_without_alloc().
int onig_compile_ruby | ( | regex_t * | reg, |
const UChar * | pattern, | ||
const UChar * | pattern_end, | ||
OnigErrorInfo * | einfo, | ||
const char * | sourcefile, | ||
int | sourceline | ||
) |
Definition at line 5710 of file regcomp.c.
References re_pattern_buffer::alloc, BBUF_INIT, COMPILE_INIT_SIZE, re_pattern_buffer::enc, err, fprintf(), IS_NOT_NULL, IS_SYNTAX_BV, NULL, re_pattern_buffer::num_comb_exp_check, ScanEnv::num_mem, re_pattern_buffer::num_mem, ScanEnv::num_named, re_pattern_buffer::num_null_check, re_pattern_buffer::num_repeat, ONIG_IS_OPTION_ON, ONIG_OPTION_CAPTURE_GROUP, onig_parse_make_tree(), ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP, re_pattern_buffer::options, OnigErrorInfo::par, re_pattern_buffer::repeat_range, re_pattern_buffer::repeat_range_alloc, ScanEnv::sourcefile, ScanEnv::sourceline, stderr, ScanEnv::syntax, UChar, and re_pattern_buffer::used.
Referenced by onig_compile().
Definition at line 5644 of file regcomp.c.
References IS_NOT_NULL, onig_free_body(), and xfree.
Referenced by onig_free_body(), and onig_new().
Definition at line 5627 of file regcomp.c.
References re_pattern_buffer::chain, re_pattern_buffer::exact, re_pattern_buffer::int_map, re_pattern_buffer::int_map_backward, IS_NOT_NULL, onig_free(), onig_names_free(), re_pattern_buffer::p, re_pattern_buffer::repeat_range, and xfree.
Referenced by onig_free().
OnigCaseFoldType onig_get_default_case_fold_flag | ( | void | ) |
Definition at line 36 of file regcomp.c.
References OnigDefaultCaseFoldFlag.
Definition at line 6001 of file regcomp.c.
Referenced by onig_initialize().
int onig_initialize | ( | OnigEncoding encodings[] | ARG_UNUSED, |
int n | ARG_UNUSED | ||
) |
Definition at line 5995 of file regcomp.c.
References onig_init().
int onig_is_code_in_cc | ( | OnigEncoding | enc, |
OnigCodePoint | code, | ||
CClassNode * | cc | ||
) |
Definition at line 6117 of file regcomp.c.
References cc, len, onig_is_code_in_cc_len(), ONIGENC_CODE_TO_MBCLEN, and ONIGENC_MBC_MINLEN.
int onig_is_code_in_cc_len | ( | int | elen, |
OnigCodePoint | code, | ||
CClassNode * | cc | ||
) |
Definition at line 6094 of file regcomp.c.
References BITSET_AT, cc, IS_NCCLASS_NOT, IS_NULL, onig_is_in_code_range(), and SINGLE_BYTE_SIZE.
Referenced by onig_is_code_in_cc().
int onig_is_in_code_range | ( | const UChar * | p, |
OnigCodePoint | code | ||
) |
Definition at line 6073 of file regcomp.c.
References GET_CODE_POINT, and n.
Referenced by onig_is_code_in_cc_len().
Definition at line 5654 of file regcomp.c.
References re_pattern_buffer::alloc, re_pattern_buffer::chain, re_pattern_buffer::exact, re_pattern_buffer::exact_end, if(), re_pattern_buffer::int_map, re_pattern_buffer::int_map_backward, IS_NOT_NULL, IS_NULL, ONIG_CHAR_TABLE_SIZE, re_pattern_buffer::p, re_pattern_buffer::repeat_range, re_pattern_buffer::repeat_range_alloc, and size.
int onig_new | ( | regex_t ** | reg, |
const UChar * | pattern, | ||
const UChar * | pattern_end, | ||
OnigOptionType | option, | ||
OnigEncoding | enc, | ||
const OnigSyntaxType * | syntax, | ||
OnigErrorInfo * | einfo | ||
) |
Definition at line 5973 of file regcomp.c.
References err, IS_NULL, NULL, onig_compile(), onig_free(), onig_reg_init(), ONIGENC_CASE_FOLD_DEFAULT, ONIGERR_MEMORY, and xmalloc.
int onig_new_without_alloc | ( | regex_t * | reg, |
const UChar * | pattern, | ||
const UChar * | pattern_end, | ||
OnigOptionType | option, | ||
OnigEncoding | enc, | ||
const OnigSyntaxType * | syntax, | ||
OnigErrorInfo * | einfo | ||
) |
Definition at line 5959 of file regcomp.c.
References onig_compile(), onig_reg_init(), and ONIGENC_CASE_FOLD_DEFAULT.
int onig_reg_init | ( | regex_t * | reg, |
OnigOptionType | option, | ||
OnigCaseFoldType | case_fold_flag, | ||
OnigEncoding | enc, | ||
const OnigSyntaxType * | syntax | ||
) |
Definition at line 5915 of file regcomp.c.
Referenced by onig_new(), and onig_new_without_alloc().
size_t onig_region_memsize | ( | const OnigRegion * | regs | ) |
Definition at line 5669 of file regcomp.c.
References re_registers::allocated, re_registers::beg, re_registers::end, IS_NULL, and size.
int onig_set_default_case_fold_flag | ( | OnigCaseFoldType | case_fold_flag | ) |
Definition at line 42 of file regcomp.c.
References OnigDefaultCaseFoldFlag.
OnigCaseFoldType OnigDefaultCaseFoldFlag = ONIGENC_CASE_FOLD_MIN |
Definition at line 33 of file regcomp.c.
Referenced by onig_get_default_case_fold_flag(), and onig_set_default_case_fold_flag().