Ruby
2.1.10p492(2016-04-01revision54464)
|
#include "ruby/ruby.h"
#include <strings.h>
#include <ctype.h>
#include "regenc.h"
#include "ruby/st.h"
Go to the source code of this file.
Data Structures | |
struct | _BBuf |
struct | NodeBase |
struct | CClassNode |
struct | _OnigStackType |
struct | OnigMatchArg |
Typedefs | |
typedef unsigned int | BitStatusType |
typedef unsigned char | Bits |
typedef Bits | BitSet[BITSET_SIZE] |
typedef Bits * | BitSetRef |
typedef struct _BBuf | BBuf |
typedef int | RelAddrType |
typedef int | AbsAddrType |
typedef int | LengthType |
typedef int | RepeatNumType |
typedef short int | MemNumType |
typedef short int | StateCheckNumType |
typedef void * | PointerType |
typedef intptr_t | OnigStackIndex |
typedef struct _OnigStackType | OnigStackType |
typedef void | hash_table_type |
typedef st_data_t | hash_data_type |
typedef int(* | ONIGENC_INIT_PROPERTY_LIST_FUNC_TYPE) (void) |
#define ALIGNMENT_RIGHT | ( | addr | ) |
Definition at line 307 of file regint.h.
Referenced by match_at().
#define ANCHOR_ANYCHAR_STAR (1<<14) /* ".*" optimize info */ |
Definition at line 514 of file regint.h.
Referenced by compile_anchor_node(), next_setup(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_ANYCHAR_STAR_ML (1<<15) /* ".*" optimize info (multi-line) */ |
Definition at line 515 of file regint.h.
Referenced by onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_BEGIN_BUF (1<<0) |
Definition at line 498 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_BEGIN_LINE (1<<1) |
Definition at line 499 of file regint.h.
Referenced by backward_search_range(), compile_anchor_node(), fetch_token(), forward_search_range(), optimize_node_left(), set_optimize_info_from_tree(), and set_sub_anchor().
#define ANCHOR_BEGIN_POSITION (1<<2) |
Definition at line 500 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_END_BUF (1<<3) |
Definition at line 501 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), is_left_anchor(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_END_LINE (1<<5) |
Definition at line 503 of file regint.h.
Referenced by backward_search_range(), compile_anchor_node(), fetch_token(), forward_search_range(), is_left_anchor(), optimize_node_left(), set_optimize_info_from_tree(), and set_sub_anchor().
#define ANCHOR_KEEP (1<<16) |
Definition at line 517 of file regint.h.
Referenced by compile_anchor_node(), and parse_exp().
#define ANCHOR_LOOK_BEHIND (1<<12) |
Definition at line 511 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), noname_disable_map(), onig_search_gpos(), optimize_node_left(), parse_enclose(), renumber_by_map(), set_optimize_info_from_tree(), setup_subexp_call(), setup_tree(), subexp_inf_recursive_check(), subexp_inf_recursive_check_trav(), subexp_recursive_check(), and subexp_recursive_check_trav().
#define ANCHOR_LOOK_BEHIND_NOT (1<<13) |
Definition at line 512 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), divide_look_behind_alternatives(), noname_disable_map(), optimize_node_left(), parse_enclose(), renumber_by_map(), setup_subexp_call(), setup_tree(), subexp_inf_recursive_check(), subexp_inf_recursive_check_trav(), subexp_recursive_check(), and subexp_recursive_check_trav().
#define ANCHOR_NOT_WORD_BOUND (1<<7) |
Definition at line 506 of file regint.h.
Referenced by compile_anchor_node(), and fetch_token().
#define ANCHOR_PREC_READ (1<<10) |
Definition at line 509 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), get_head_value_node(), is_left_anchor(), noname_disable_map(), optimize_node_left(), parse_enclose(), renumber_by_map(), setup_subexp_call(), setup_tree(), subexp_inf_recursive_check(), subexp_inf_recursive_check_trav(), subexp_recursive_check(), and subexp_recursive_check_trav().
#define ANCHOR_PREC_READ_NOT (1<<11) |
Definition at line 510 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), concat_opt_anc_info(), is_left_anchor(), noname_disable_map(), onig_search_gpos(), optimize_node_left(), parse_enclose(), renumber_by_map(), set_optimize_info_from_tree(), setup_subexp_call(), setup_tree(), subexp_inf_recursive_check(), subexp_inf_recursive_check_trav(), subexp_recursive_check(), and subexp_recursive_check_trav().
#define ANCHOR_SEMI_END_BUF (1<<4) |
Definition at line 502 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), is_left_anchor(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_WORD_BEGIN (1<<8) |
Definition at line 507 of file regint.h.
Referenced by compile_anchor_node(), and fetch_token().
#define ANCHOR_WORD_BOUND (1<<6) |
Definition at line 505 of file regint.h.
Referenced by compile_anchor_node(), and fetch_token().
#define ANCHOR_WORD_END (1<<9) |
Definition at line 508 of file regint.h.
Referenced by compile_anchor_node(), and fetch_token().
#define BBUF_ADD | ( | buf, | |
bytes, | |||
n | |||
) | BBUF_WRITE((buf),(buf)->used,(bytes),(n)) |
Definition at line 462 of file regint.h.
Referenced by add_abs_addr(), add_bitset(), add_bytes(), add_length(), add_mem_num(), add_option(), add_pointer(), and add_rel_addr().
#define BBUF_ADD1 | ( | buf, | |
byte | |||
) | BBUF_WRITE1((buf),(buf)->used,(byte)) |
Definition at line 463 of file regint.h.
Referenced by add_opcode().
#define BBUF_EXPAND | ( | buf, | |
low | |||
) |
Definition at line 464 of file regint.h.
Referenced by add_multi_byte_cclass().
Definition at line 465 of file regint.h.
Referenced by compile_call(), and compile_enclose_node().
Definition at line 424 of file regint.h.
Referenced by bbuf_clone(), new_code_range(), and onig_compile().
#define BBUF_INSERT | ( | buf, | |
pos, | |||
bytes, | |||
n | |||
) |
#define BBUF_MOVE_LEFT | ( | buf, | |
from, | |||
to, | |||
n | |||
) |
#define BBUF_MOVE_LEFT_REDUCE | ( | buf, | |
from, | |||
to | |||
) |
Definition at line 480 of file regint.h.
Referenced by add_code_range_to_buf0().
#define BBUF_MOVE_RIGHT | ( | buf, | |
from, | |||
to, | |||
n | |||
) |
Definition at line 468 of file regint.h.
Referenced by add_code_range_to_buf0().
#define BBUF_WRITE | ( | buf, | |
pos, | |||
bytes, | |||
n | |||
) |
Definition at line 448 of file regint.h.
Referenced by unset_addr_list_fix().
#define BBUF_WRITE1 | ( | buf, | |
pos, | |||
byte | |||
) |
#define BIT_STATUS_AT | ( | stats, | |
n | |||
) | ((n) < (int )BIT_STATUS_BITS_NUM ? ((stats) & (1 << n)) : ((stats) & 1)) |
Definition at line 335 of file regint.h.
Referenced by compile_enclose_node(), compile_length_enclose_node(), disable_noname_group_capture(), match_at(), onig_compile(), onig_number_of_capture_histories(), and optimize_node_left().
#define BIT_STATUS_BITS_NUM (sizeof(BitStatusType) * 8) |
Definition at line 332 of file regint.h.
Referenced by parse_enclose().
#define BIT_STATUS_CLEAR | ( | stats | ) | (stats) = 0 |
Definition at line 333 of file regint.h.
Referenced by disable_noname_group_capture(), and scan_env_clear().
#define BIT_STATUS_ON_ALL | ( | stats | ) | (stats) = ~((BitStatusType )0) |
Definition at line 334 of file regint.h.
Referenced by onig_compile().
#define BIT_STATUS_ON_AT | ( | stats, | |
n | |||
) |
Definition at line 338 of file regint.h.
Referenced by setup_subexp_call(), and setup_tree().
#define BIT_STATUS_ON_AT_SIMPLE | ( | stats, | |
n | |||
) |
Definition at line 345 of file regint.h.
Referenced by disable_noname_group_capture(), and parse_enclose().
#define BITS_IN_ROOM ((int )sizeof(Bits) * BITS_PER_BYTE) |
Definition at line 391 of file regint.h.
Referenced by is_onechar_cclass().
Definition at line 412 of file regint.h.
Referenced by is_not_included(), is_onechar_cclass(), match_at(), onig_is_code_in_cc_len(), and optimize_node_left().
#define BITSET_CLEAR | ( | bs | ) |
Definition at line 404 of file regint.h.
Referenced by initialize_cclass(), and node_new_cclass_by_codepoint_range().
Definition at line 414 of file regint.h.
Referenced by i_apply_case_fold().
Definition at line 413 of file regint.h.
Referenced by i_apply_case_fold(), and node_new_cclass_by_codepoint_range().
#define BITSET_SIZE (SINGLE_BYTE_SIZE / BITS_IN_ROOM) |
Definition at line 392 of file regint.h.
Referenced by bitset_and(), bitset_copy(), bitset_invert(), bitset_invert_to(), bitset_is_empty(), bitset_or(), and is_onechar_cclass().
#define BS_BIT | ( | pos | ) | (1 << ((int )(pos) % BITS_IN_ROOM)) |
#define BS_ROOM | ( | bs, | |
pos | |||
) | (bs)[(int )(pos) / BITS_IN_ROOM] |
#define CHECK_INTERRUPT_IN_MATCH_AT rb_thread_check_ints() |
Definition at line 130 of file regint.h.
Referenced by match_at().
Definition at line 278 of file regint.h.
Referenced by node_new_anychar(), node_new_backref(), node_new_call(), node_new_cclass(), node_new_cclass_by_codepoint_range(), node_new_ctype(), node_new_enclose(), node_new_enclose_memory(), node_new_list(), node_new_option(), node_new_quantifier(), node_new_str(), onig_node_new_alt(), onig_node_new_anchor(), strcat_capa(), strcat_capa_from_static(), and strdup_with_null().
#define CHECK_NULL_RETURN_MEMERR | ( | p | ) | if (IS_NULL(p)) return ONIGERR_MEMORY |
Definition at line 279 of file regint.h.
Referenced by bbuf_clone(), disable_noname_group_capture(), divide_look_behind_alternatives(), entry_repeat_range(), i_apply_case_fold(), match_at(), name_add(), new_code_range(), next_setup(), onig_node_str_cat(), parse_char_class(), parse_char_property(), parse_enclose(), parse_exp(), parse_regexp(), scan_env_add_mem_entry(), set_optimize_exact_info(), unset_addr_list_add(), unset_addr_list_init(), and update_string_node_case_fold().
#define DIGITVAL | ( | code | ) | ((code) - '0') |
Definition at line 353 of file regint.h.
Referenced by onig_scan_unsigned_number().
#define DISABLE_CASE_FOLD_MULTI_CHAR | ( | case_fold_flag | ) | ((case_fold_flag) & ~INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) |
Definition at line 382 of file regint.h.
Referenced by add_char_amb_opt_map_info().
#define GET_ABSADDR_INC | ( | addr, | |
p | |||
) | PLATFORM_GET_INC(addr, p, AbsAddrType) |
Definition at line 658 of file regint.h.
Referenced by match_at().
#define GET_ALIGNMENT_PAD_SIZE | ( | addr, | |
pad_size | |||
) |
Definition at line 301 of file regint.h.
Referenced by add_multi_byte_cclass().
#define GET_BYTE_INC | ( | byte, | |
p | |||
) |
#define GET_CODE_POINT | ( | code, | |
p | |||
) | code = *((OnigCodePoint* )(p)) |
Definition at line 667 of file regint.h.
Referenced by add_code_range_to_buf0(), and_code_range_buf(), is_onechar_cclass(), not_code_range_buf(), onig_is_in_code_range(), and or_code_range_buf().
#define GET_LENGTH_INC | ( | len, | |
p | |||
) | PLATFORM_GET_INC(len, p, LengthType) |
Definition at line 659 of file regint.h.
Referenced by match_at().
#define GET_MEMNUM_INC | ( | num, | |
p | |||
) | PLATFORM_GET_INC(num, p, MemNumType) |
Definition at line 660 of file regint.h.
Referenced by match_at(), and mem_is_in_memp().
#define GET_OPTION_INC | ( | option, | |
p | |||
) | PLATFORM_GET_INC(option, p, OnigOptionType) |
Definition at line 662 of file regint.h.
Referenced by match_at().
#define GET_POINTER_INC | ( | ptr, | |
p | |||
) | PLATFORM_GET_INC(ptr, p, PointerType) |
Definition at line 663 of file regint.h.
Referenced by match_at().
#define GET_RELADDR_INC | ( | addr, | |
p | |||
) | PLATFORM_GET_INC(addr, p, RelAddrType) |
Definition at line 657 of file regint.h.
Referenced by match_at().
#define GET_REPEATNUM_INC | ( | num, | |
p | |||
) | PLATFORM_GET_INC(num, p, RepeatNumType) |
#define GET_STATE_CHECK_NUM_INC | ( | num, | |
p | |||
) | PLATFORM_GET_INC(num, p, StateCheckNumType) |
Definition at line 664 of file regint.h.
Referenced by match_at().
#define INIT_MATCH_STACK_SIZE 160 |
Definition at line 79 of file regint.h.
Referenced by match_at().
#define INT_MAX_LIMIT ((1UL << (SIZEOF_INT * 8 - 1)) - 1) |
Definition at line 351 of file regint.h.
Referenced by onig_scan_unsigned_number(), scan_unsigned_hexadecimal_number(), and scan_unsigned_octal_number().
#define IS_ASCII_RANGE | ( | option | ) | ((option) & ONIG_OPTION_ASCII_RANGE) |
Definition at line 370 of file regint.h.
Referenced by add_ctype_to_cc(), fetch_token(), and parse_exp().
#define IS_CODE_SB_WORD | ( | enc, | |
code | |||
) | (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code)) |
Definition at line 842 of file regint.h.
Referenced by is_not_included().
#define IS_DYNAMIC_OPTION | ( | option | ) | 0 |
Definition at line 380 of file regint.h.
Referenced by compile_length_option_node(), and compile_option_node().
#define IS_EXTEND | ( | option | ) | ((option) & ONIG_OPTION_EXTEND) |
Definition at line 362 of file regint.h.
Referenced by fetch_token().
#define IS_FIND_CONDITION | ( | option | ) |
Definition at line 365 of file regint.h.
Referenced by match_at(), and onig_compile().
#define IS_FIND_LONGEST | ( | option | ) | ((option) & ONIG_OPTION_FIND_LONGEST) |
Definition at line 363 of file regint.h.
Referenced by match_at(), and onig_search_gpos().
#define IS_FIND_NOT_EMPTY | ( | option | ) | ((option) & ONIG_OPTION_FIND_NOT_EMPTY) |
Definition at line 364 of file regint.h.
Referenced by match_at(), and onig_search_gpos().
#define IS_IGNORECASE | ( | option | ) | ((option) & ONIG_OPTION_IGNORECASE) |
Definition at line 361 of file regint.h.
Referenced by compile_length_tree(), compile_tree(), get_head_value_node(), parse_exp(), and setup_tree().
#define IS_MC_ESC_CODE | ( | code, | |
syn | |||
) |
Definition at line 722 of file regint.h.
Referenced by fetch_token().
#define IS_MULTILINE | ( | option | ) | ((option) & ONIG_OPTION_MULTILINE) |
Definition at line 360 of file regint.h.
Referenced by compile_quantifier_node(), compile_tree(), next_setup(), and optimize_node_left().
#define IS_NCCLASS_FLAG_ON | ( | cc, | |
flag | |||
) | ((NCCLASS_FLAGS(cc) & (flag)) != 0) |
#define IS_NCCLASS_NOT | ( | nd | ) | IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT) |
Definition at line 765 of file regint.h.
Referenced by and_cclass(), compile_cclass_node(), i_apply_case_fold(), is_not_included(), is_onechar_cclass(), onig_is_code_in_cc_len(), optimize_node_left(), or_cclass(), and parse_char_class().
#define IS_NCCLASS_SHARE | ( | nd | ) | IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_SHARE) |
Definition at line 766 of file regint.h.
Referenced by compile_cclass_node(), compile_length_cclass_node(), and onig_node_free().
#define IS_NEWLINE_CRLF | ( | option | ) | ((option) & ONIG_OPTION_NEWLINE_CRLF) |
Definition at line 373 of file regint.h.
Referenced by is_mbc_newline_ex(), match_at(), and onig_search_gpos().
#define IS_NOT_NULL | ( | p | ) | (((void*)(p)) != (void*)0) |
Definition at line 277 of file regint.h.
Referenced by add_ctype_to_cc(), and_code_range_buf(), bbuf_free(), check_type_tree(), clear_optimize_info(), compile_length_quantifier_node(), compile_length_tree(), compile_quantifier_node(), compile_tree(), expand_case_fold_string(), find_str_position(), get_char_length_tree1(), get_head_value_node(), get_max_match_length(), get_min_match_length(), i_free_name_entry(), i_free_shared_class(), is_onechar_cclass(), name_find(), names_clear(), next_setup(), node_new(), node_new_cclass_by_codepoint_range(), node_new_str_raw(), noname_disable_map(), numbered_ref_check(), onig_chain_reduce(), onig_compile(), onig_foreach_name(), onig_free(), onig_free_body(), onig_free_node_list(), onig_free_shared_cclass_table(), onig_match(), onig_memsize(), onig_name_to_backref_number(), onig_names_free(), onig_node_free(), onig_node_list_add(), onig_node_str_clear(), onig_number_of_names(), onig_region_copy(), onig_renumber_name_table(), onig_search_gpos(), optimize_node_left(), parse_branch(), parse_char_class(), parse_enclose(), parse_exp(), parse_posix_bracket(), quantifiers_memory_node_info(), renumber_by_map(), set_quantifier(), setup_subexp_call(), setup_tree(), str_node_split_last_char(), subexp_inf_recursive_check(), subexp_inf_recursive_check_trav(), subexp_recursive_check(), subexp_recursive_check_trav(), and unset_addr_list_end().
#define IS_NOTBOL | ( | option | ) | ((option) & ONIG_OPTION_NOTBOL) |
Definition at line 367 of file regint.h.
Referenced by match_at().
#define IS_NOTEOL | ( | option | ) | ((option) & ONIG_OPTION_NOTEOL) |
Definition at line 368 of file regint.h.
Referenced by match_at().
#define IS_NULL | ( | p | ) | (((void*)(p)) == (void*)0) |
Definition at line 276 of file regint.h.
Referenced by add_code_range_to_buf0(), and_code_range_buf(), backward_search_range(), bm_search(), bm_search_ic(), bm_search_notrev(), bm_search_notrev_ic(), compile_cclass_node(), compile_length_cclass_node(), expand_case_fold_make_rem_string(), expand_case_fold_string(), expand_case_fold_string_alt(), fetch_named_backref_token(), fetch_token(), forward_search_range(), is_not_included(), match_at(), name_add(), next_setup(), node_extended_grapheme_cluster(), node_linebreak(), node_new_backref(), node_new_cclass_by_codepoint_range(), not_code_range_buf(), onig_bbuf_init(), onig_is_code_in_cc_len(), onig_memsize(), onig_name_to_group_numbers(), onig_new(), onig_new_with_source(), onig_node_free(), onig_node_list_add(), onig_reg_init(), onig_region_memsize(), onig_set_default_syntax(), or_code_range_buf(), parse_char_class(), parse_enclose(), parse_exp(), renumber_node_backref(), resize_property_list(), scan_env_add_mem_entry(), set_bm_backward_skip(), set_bm_skip(), setup_subexp_call(), setup_tree(), stack_double(), and update_string_node_case_fold().
#define IS_POSIX_BRACKET_ALL_RANGE | ( | option | ) | ((option) & ONIG_OPTION_POSIX_BRACKET_ALL_RANGE) |
Definition at line 371 of file regint.h.
Referenced by parse_posix_bracket().
#define IS_POSIX_REGION | ( | option | ) | ((option) & ONIG_OPTION_POSIX_REGION) |
Definition at line 369 of file regint.h.
Referenced by match_at(), onig_match(), and onig_search_gpos().
#define IS_REPEAT_INFINITE | ( | n | ) | ((n) == REPEAT_INFINITE) |
Definition at line 386 of file regint.h.
Referenced by compile_length_quantifier_node(), compile_quantifier_node(), entry_repeat_range(), fetch_range_quantifier(), get_max_match_length(), is_anychar_star_quantifier(), next_setup(), optimize_node_left(), popular_quantifier_num(), set_quantifier(), and setup_tree().
#define IS_SINGLELINE | ( | option | ) | ((option) & ONIG_OPTION_SINGLELINE) |
Definition at line 359 of file regint.h.
Referenced by fetch_token().
#define IS_WORD_BOUND_ALL_RANGE | ( | option | ) | ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE) |
Definition at line 372 of file regint.h.
Referenced by fetch_token().
#define MAX | ( | a, | |
b | |||
) | (((a)<(b))?(b):(a)) |
Definition at line 274 of file regint.h.
Referenced by and_code_range_buf().
#define MC_ANYCHAR | ( | syn | ) | (syn)->meta_char_table.anychar |
Definition at line 716 of file regint.h.
Referenced by fetch_token().
#define MC_ANYCHAR_ANYTIME | ( | syn | ) | (syn)->meta_char_table.anychar_anytime |
Definition at line 720 of file regint.h.
Referenced by fetch_token().
#define MC_ANYTIME | ( | syn | ) | (syn)->meta_char_table.anytime |
Definition at line 717 of file regint.h.
Referenced by fetch_token().
#define MC_ESC | ( | syn | ) | (syn)->meta_char_table.esc |
Definition at line 715 of file regint.h.
Referenced by code_exist_check(), fetch_escaped_value(), fetch_range_quantifier(), fetch_token(), fetch_token_in_cc(), parse_exp(), and str_exist_check_with_esc().
#define MC_ONE_OR_MORE_TIME | ( | syn | ) | (syn)->meta_char_table.one_or_more_time |
Definition at line 719 of file regint.h.
Referenced by fetch_token().
#define MC_ZERO_OR_ONE_TIME | ( | syn | ) | (syn)->meta_char_table.zero_or_one_time |
Definition at line 718 of file regint.h.
Referenced by fetch_token().
#define MIN | ( | a, | |
b | |||
) | (((a)>(b))?(b):(a)) |
Definition at line 273 of file regint.h.
Referenced by and_code_range_buf(), onig_search_gpos(), and to_ascii().
#define NCCLASS_CLEAR_NOT | ( | nd | ) | NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT) |
Definition at line 764 of file regint.h.
Referenced by parse_char_class().
#define NCCLASS_FLAG_CLEAR | ( | cc, | |
flag | |||
) | (NCCLASS_FLAGS(cc) &= ~(flag)) |
#define NCCLASS_FLAG_SET | ( | cc, | |
flag | |||
) | (NCCLASS_FLAGS(cc) |= (flag)) |
#define NCCLASS_SET_NOT | ( | nd | ) | NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT) |
Definition at line 762 of file regint.h.
Referenced by node_extended_grapheme_cluster(), node_new_cclass_by_codepoint_range(), parse_char_class(), parse_char_property(), and parse_exp().
#define NCCLASS_SET_SHARE | ( | nd | ) | NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_SHARE) |
Definition at line 763 of file regint.h.
Referenced by parse_exp().
#define NULL_UCHARP ((UChar* )0) |
Definition at line 280 of file regint.h.
Referenced by backref_match_at_nested_level(), fetch_named_backref_token(), and find_str_position().
#define ODIGITVAL | ( | code | ) | DIGITVAL(code) |
Definition at line 354 of file regint.h.
Referenced by scan_unsigned_octal_number().
#define ONIG_LAST_CODE_POINT (~((OnigCodePoint )0)) |
Definition at line 282 of file regint.h.
Referenced by add_code_range_to_buf0(), add_ctype_to_cc(), is_onechar_cclass(), and not_code_range_buf().
#define ONIG_OPTIMIZE_EXACT 1 /* Slow Search */ |
Definition at line 321 of file regint.h.
Referenced by backward_search_range(), forward_search_range(), and set_optimize_exact_info().
#define ONIG_OPTIMIZE_EXACT_BM 2 /* Boyer Moore Search */ |
Definition at line 322 of file regint.h.
Referenced by backward_search_range(), forward_search_range(), and set_optimize_exact_info().
#define ONIG_OPTIMIZE_EXACT_BM_IC 6 /* BM (ignore case) */ |
Definition at line 326 of file regint.h.
Referenced by backward_search_range(), forward_search_range(), and set_optimize_exact_info().
#define ONIG_OPTIMIZE_EXACT_BM_NOT_REV 3 /* BM (applied to a multibyte string) */ |
Definition at line 323 of file regint.h.
Referenced by backward_search_range(), forward_search_range(), and set_optimize_exact_info().
#define ONIG_OPTIMIZE_EXACT_BM_NOT_REV_IC 7 /* BM (applied to a multibyte string) (ignore case) */ |
Definition at line 327 of file regint.h.
Referenced by backward_search_range(), forward_search_range(), and set_optimize_exact_info().
#define ONIG_OPTIMIZE_EXACT_IC 4 /* Slow Search (ignore case) */ |
Definition at line 324 of file regint.h.
Referenced by backward_search_range(), forward_search_range(), and set_optimize_exact_info().
#define ONIG_OPTIMIZE_MAP 5 /* char map */ |
Definition at line 325 of file regint.h.
Referenced by backward_search_range(), forward_search_range(), and set_optimize_map_info().
#define ONIG_OPTIMIZE_NONE 0 |
Definition at line 320 of file regint.h.
Referenced by clear_optimize_info(), and onig_search_gpos().
#define onig_st_add_direct st_add_direct |
Definition at line 142 of file regint.h.
Referenced by parse_exp().
#define onig_st_cleanup_safe st_cleanup_safe |
#define onig_st_delete_safe st_delete_safe |
#define onig_st_foreach st_foreach |
Definition at line 141 of file regint.h.
Referenced by names_clear(), onig_foreach_name(), onig_free_shared_cclass_table(), and onig_renumber_name_table().
#define onig_st_free_table st_free_table |
Definition at line 143 of file regint.h.
Referenced by onig_free_shared_cclass_table(), and onig_names_free().
#define onig_st_init_numtable st_init_numtable |
#define onig_st_init_numtable_with_size st_init_numtable_with_size |
#define onig_st_init_strtable st_init_strtable |
#define onig_st_init_strtable_with_size st_init_strtable_with_size |
#define onig_st_init_table st_init_table |
#define onig_st_init_table_with_size st_init_table_with_size |
Definition at line 132 of file regint.h.
Referenced by onig_st_init_strend_table_with_size(), and parse_exp().
#define onig_st_insert st_insert |
Definition at line 139 of file regint.h.
Referenced by onig_st_insert_strend().
#define onig_st_is_member st_is_member |
#define onig_st_lookup st_lookup |
Definition at line 140 of file regint.h.
Referenced by onig_st_lookup_strend(), and parse_exp().
#define ONIG_STATE_DEC_THREAD | ( | reg | ) | /* Nothing */ |
Definition at line 212 of file regint.h.
Referenced by onig_match(), and onig_search_gpos().
#define ONIG_STATE_INC | ( | reg | ) | /* Nothing */ |
Definition at line 209 of file regint.h.
Referenced by onig_match(), and onig_search_gpos().
#define PROPERTY_LIST_ADD_PROP | ( | Name, | |
CR | |||
) |
#define PROPERTY_LIST_INIT_CHECK |
#define REPEAT_INFINITE -1 |
Definition at line 385 of file regint.h.
Referenced by fetch_range_quantifier(), fetch_token(), node_extended_grapheme_cluster(), onig_reduce_nested_quantifier(), and parse_exp().
#define SINGLE_BYTE_SIZE (1 << BITS_PER_BYTE) |
Definition at line 390 of file regint.h.
Referenced by add_ctype_to_cc(), bitset_set_range(), i_apply_case_fold(), is_not_included(), is_onechar_cclass(), onig_is_code_in_cc_len(), optimize_node_left(), and parse_char_class().
#define SIZE_ABSADDR (int )sizeof(AbsAddrType) |
Definition at line 647 of file regint.h.
Referenced by add_abs_addr(), compile_enclose_node(), and unset_addr_list_fix().
Definition at line 402 of file regint.h.
Referenced by add_bitset(), compile_length_cclass_node(), and match_at().
#define SIZE_CODE_POINT (int )sizeof(OnigCodePoint) |
Definition at line 653 of file regint.h.
Referenced by add_code_range_to_buf0().
#define SIZE_LENGTH (int )sizeof(LengthType) |
Definition at line 648 of file regint.h.
Referenced by add_compile_string_length(), add_length(), add_multi_byte_cclass(), compile_length_cclass_node(), and compile_length_tree().
#define SIZE_MEMNUM (int )sizeof(MemNumType) |
Definition at line 649 of file regint.h.
Referenced by add_mem_num(), compile_length_quantifier_node(), compile_length_tree(), and match_at().
#define SIZE_OP_ANYCHAR_STAR SIZE_OPCODE |
Definition at line 675 of file regint.h.
Referenced by compile_length_quantifier_node().
#define SIZE_OP_ANYCHAR_STAR_PEEK_NEXT (SIZE_OPCODE + 1) |
Definition at line 676 of file regint.h.
Referenced by compile_length_quantifier_node().
#define SIZE_OP_CALL (SIZE_OPCODE + SIZE_ABSADDR) |
Definition at line 704 of file regint.h.
Referenced by compile_length_enclose_node(), and compile_length_tree().
#define SIZE_OP_CONDITION (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR) |
Definition at line 706 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_FAIL SIZE_OPCODE |
Definition at line 690 of file regint.h.
Referenced by compile_length_option_node(), and match_at().
#define SIZE_OP_FAIL_LOOK_BEHIND_NOT SIZE_OPCODE |
Definition at line 703 of file regint.h.
Referenced by compile_anchor_node(), and compile_length_anchor_node().
#define SIZE_OP_FAIL_POS SIZE_OPCODE |
Definition at line 687 of file regint.h.
Referenced by compile_anchor_node(), and compile_length_anchor_node().
#define SIZE_OP_JUMP (SIZE_OPCODE + SIZE_RELADDR) |
Definition at line 677 of file regint.h.
Referenced by compile_enclose_node(), compile_length_enclose_node(), compile_length_quantifier_node(), compile_length_tree(), compile_quantifier_node(), and compile_tree().
#define SIZE_OP_LOOK_BEHIND (SIZE_OPCODE + SIZE_LENGTH) |
Definition at line 701 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_MEMORY_END (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 695 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_MEMORY_END_PUSH (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 693 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_MEMORY_END_PUSH_REC (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 694 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_MEMORY_END_REC (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 696 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_MEMORY_START (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 691 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_MEMORY_START_PUSH (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 692 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_NULL_CHECK_END (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 700 of file regint.h.
Referenced by compile_length_quantifier_node(), and compile_quantifier_node().
#define SIZE_OP_NULL_CHECK_START (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 699 of file regint.h.
Referenced by compile_length_quantifier_node(), and compile_quantifier_node().
#define SIZE_OP_POP SIZE_OPCODE |
Definition at line 679 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_POP_POS SIZE_OPCODE |
Definition at line 686 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_POP_STOP_BT SIZE_OPCODE |
Definition at line 698 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_PUSH (SIZE_OPCODE + SIZE_RELADDR) |
Definition at line 678 of file regint.h.
Referenced by compile_enclose_node(), compile_length_enclose_node(), compile_length_quantifier_node(), compile_length_tree(), compile_quantifier_node(), and compile_tree().
#define SIZE_OP_PUSH_IF_PEEK_NEXT (SIZE_OPCODE + SIZE_RELADDR + 1) |
Definition at line 681 of file regint.h.
Referenced by compile_length_quantifier_node(), and compile_quantifier_node().
#define SIZE_OP_PUSH_LOOK_BEHIND_NOT (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH) |
Definition at line 702 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_PUSH_OR_JUMP_EXACT1 (SIZE_OPCODE + SIZE_RELADDR + 1) |
Definition at line 680 of file regint.h.
Referenced by compile_length_quantifier_node(), and compile_quantifier_node().
#define SIZE_OP_PUSH_POS SIZE_OPCODE |
Definition at line 684 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_PUSH_POS_NOT (SIZE_OPCODE + SIZE_RELADDR) |
Definition at line 685 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_PUSH_STOP_BT SIZE_OPCODE |
Definition at line 697 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_REPEAT_INC (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 682 of file regint.h.
Referenced by compile_length_quantifier_node(), and compile_range_repeat_node().
#define SIZE_OP_REPEAT_INC_NG (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_RETURN SIZE_OPCODE |
Definition at line 705 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_SET_OPTION (SIZE_OPCODE + SIZE_OPTION) |
Definition at line 688 of file regint.h.
Referenced by compile_length_option_node(), and match_at().
#define SIZE_OP_SET_OPTION_PUSH (SIZE_OPCODE + SIZE_OPTION) |
Definition at line 689 of file regint.h.
Referenced by compile_length_option_node().
#define SIZE_OPCODE 1 |
Definition at line 645 of file regint.h.
Referenced by add_compile_string_length(), compile_length_anchor_node(), compile_length_cclass_node(), compile_length_quantifier_node(), and compile_length_tree().
#define SIZE_OPTION (int )sizeof(OnigOptionType) |
Definition at line 652 of file regint.h.
Referenced by add_option(), and compile_length_tree().
#define SIZE_POINTER (int )sizeof(PointerType) |
Definition at line 654 of file regint.h.
Referenced by add_pointer(), and compile_length_cclass_node().
#define SIZE_RELADDR (int )sizeof(RelAddrType) |
Definition at line 646 of file regint.h.
Referenced by add_rel_addr(), compile_length_quantifier_node(), and match_at().
#define SIZE_REPEATNUM (int )sizeof(RepeatNumType) |
#define SIZE_STATE_CHECK_NUM (int )sizeof(StateCheckNumType) |
#define STACK_POP_LEVEL_ALL 2 |
Definition at line 317 of file regint.h.
Referenced by onig_compile().
#define STACK_POP_LEVEL_FREE 0 |
Definition at line 315 of file regint.h.
Referenced by onig_compile().
#define STACK_POP_LEVEL_MEM_START 1 |
Definition at line 316 of file regint.h.
Referenced by onig_compile().
#define SYN_GNU_REGEX_BV |
#define SYN_GNU_REGEX_OP |
#define SYN_POSIX_COMMON_OP |
#define THREAD_ATOMIC_END /* depend on thread system */ |
Definition at line 119 of file regint.h.
Referenced by node_new(), onig_chain_link_add(), onig_end(), onig_free_shared_cclass_table(), onig_init(), onig_match(), onig_node_free(), onig_search_gpos(), onig_transfer(), onigenc_property_list_init(), and parse_exp().
#define THREAD_ATOMIC_START /* depend on thread system */ |
Definition at line 118 of file regint.h.
Referenced by node_new(), onig_chain_link_add(), onig_end(), onig_free_shared_cclass_table(), onig_init(), onig_match(), onig_node_free(), onig_search_gpos(), onig_transfer(), onigenc_property_list_init(), and parse_exp().
#define THREAD_PASS /* depend on thread system */ |
Definition at line 120 of file regint.h.
Referenced by onig_match(), and onig_search_gpos().
#define THREAD_PASS_LIMIT_COUNT 8 |
Definition at line 180 of file regint.h.
Referenced by onig_match(), and onig_search_gpos().
#define THREAD_SYSTEM_END /* depend on thread system */ |
Definition at line 117 of file regint.h.
Referenced by onig_end().
#define THREAD_SYSTEM_INIT /* depend on thread system */ |
Definition at line 116 of file regint.h.
Referenced by onig_init().
Definition at line 63 of file regint.h.
Referenced by parse_exp().
#define USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEAT /* /(?:()|())*\2/ */ |
#define USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE /* /\n$/ =~ "\n" */ |
#define USE_POSIX_API_REGION_OPTION /* needed for POSIX API support */ |
Definition at line 111 of file regint.h.
Referenced by onig_match(), and onig_search_gpos().
#define USE_SUBEXP_CALL |
Definition at line 60 of file regint.h.
Referenced by compile_range_repeat_node(), and onig_compile().
#define USE_WORD_BEGIN_END /* "<": word-begin, ">": word-end */ |
#define WORD_ALIGNMENT_SIZE SIZEOF_LONG |
Definition at line 299 of file regint.h.
Referenced by add_multi_byte_cclass(), and compile_length_cclass_node().
#define xalloca alloca |
Definition at line 189 of file regint.h.
Referenced by disable_noname_group_capture().
#define XDIGITVAL | ( | enc, | |
code | |||
) |
Definition at line 355 of file regint.h.
Referenced by scan_unsigned_hexadecimal_number().
#define xmemcpy memcpy |
Definition at line 182 of file regint.h.
Referenced by bbuf_clone(), clear_opt_map_info(), match_at(), onig_error_code_to_str(), onig_strcpy(), parse_exp(), scan_env_add_mem_entry(), set_optimize_exact_info(), stack_double(), strdup_with_null(), and to_ascii().
#define xvsnprintf vsnprintf |
Definition at line 190 of file regint.h.
Referenced by onig_vsnprintf_with_pattern().
typedef int AbsAddrType |
typedef Bits BitSet[BITSET_SIZE] |
typedef unsigned int BitStatusType |
typedef st_data_t hash_data_type |
typedef void hash_table_type |
typedef int LengthType |
typedef short int MemNumType |
typedef intptr_t OnigStackIndex |
typedef struct _OnigStackType OnigStackType |
typedef void* PointerType |
typedef int RelAddrType |
typedef int RepeatNumType |
typedef short int StateCheckNumType |
enum OpCode |
UChar* onig_error_code_to_format P_ | ( | (OnigPosition code) | ) |
int onig_bbuf_init P_ | ( | (BBuf *buf, OnigDistance size) | ) |
int onig_compile P_ | ( | (regex_t *reg, const UChar *pattern, const UChar *pattern_end, OnigErrorInfo *einfo, const char *sourcefile, int sourceline) | ) |
void onig_chain_reduce P_ | ( | (regex_t *reg) | ) |
void onig_chain_link_add P_ | ( | (regex_t *to, regex_t *add) | ) |
void onig_transfer P_ | ( | (regex_t *to, regex_t *from) | ) |
int onig_is_code_in_cc P_ | ( | (OnigEncoding enc, OnigCodePoint code, CClassNode *cc) | ) |
int onig_is_code_in_cc_len P_ | ( | (int enclen, OnigCodePoint code, CClassNode *cc) | ) |
int onig_st_lookup_strend P_ | ( | (hash_table_type *table, const UChar *str_key, const UChar *end_key, hash_data_type *value) | ) |
int onig_st_insert_strend P_ | ( | (hash_table_type *table, const UChar *str_key, const UChar *end_key, hash_data_type value) | ) |
int onigenc_property_list_add_property P_ | ( | (UChar *name, const OnigCodePoint *prop, hash_table_type **table, const OnigCodePoint ***plist, int *pnum, int *psize) | ) |
size_t onig_memsize P_ | ( | (const regex_t *reg) | ) |
size_t onig_region_memsize P_ | ( | (const struct re_registers *regs) | ) |
void onig_snprintf_with_pattern PV_ | ( | (UChar buf[], int bufsize, OnigEncoding enc, UChar *pat, UChar *pat_end, const UChar *fmt,...) | ) |