Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ruby/ruby.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stddef.h>
#include "regenc.h"
#include "ruby/st.h"
#include "config.h"
#include "st.h"
Go to the source code of this file.
Data Structures | |
struct | _BBuf |
struct | NodeBase |
struct | CClassNode |
struct | _OnigStackType |
struct | OnigMatchArg |
struct | OnigEndCallListItem |
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 struct OnigEndCallListItem | OnigEndCallListItemType |
typedef void | hash_table_type |
typedef st_data_t | hash_data_type |
#define ALIGNMENT_RIGHT | ( | addr | ) |
Definition at line 329 of file regint.h.
Referenced by match_at(), and onig_is_code_in_cc().
#define ANCHOR_ANYCHAR_STAR (1<<14) /* ".*" optimize info */ |
Definition at line 543 of file regint.h.
Referenced by clear_optimize_info(), 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 544 of file regint.h.
Referenced by clear_optimize_info(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_BEGIN_BUF (1<<0) |
Definition at line 527 of file regint.h.
Referenced by clear_optimize_info(), compile_anchor_node(), fetch_token(), onig_is_code_in_cc(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_BEGIN_LINE (1<<1) |
Definition at line 528 of file regint.h.
Referenced by backward_search_range(), clear_optimize_info(), compile_anchor_node(), fetch_token(), forward_search_range(), onig_is_code_in_cc(), optimize_node_left(), set_optimize_info_from_tree(), and set_sub_anchor().
#define ANCHOR_BEGIN_POSITION (1<<2) |
Definition at line 529 of file regint.h.
Referenced by clear_optimize_info(), compile_anchor_node(), fetch_token(), onig_is_code_in_cc(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_END_BUF (1<<3) |
Definition at line 530 of file regint.h.
Referenced by clear_optimize_info(), compile_anchor_node(), fetch_token(), is_left_anchor(), onig_is_code_in_cc(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_END_LINE (1<<5) |
Definition at line 532 of file regint.h.
Referenced by backward_search_range(), clear_optimize_info(), compile_anchor_node(), fetch_token(), forward_search_range(), is_left_anchor(), onig_is_code_in_cc(), optimize_node_left(), set_optimize_info_from_tree(), and set_sub_anchor().
#define ANCHOR_KEEP (1<<16) |
Definition at line 546 of file regint.h.
Referenced by compile_anchor_node(), onig_is_code_in_cc(), and parse_exp().
#define ANCHOR_LOOK_BEHIND (1<<12) |
Definition at line 540 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), onig_is_code_in_cc(), onig_search_gpos(), optimize_node_left(), parse_enclose(), 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 541 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), divide_look_behind_alternatives(), onig_is_code_in_cc(), optimize_node_left(), parse_enclose(), 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 535 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), and onig_is_code_in_cc().
#define ANCHOR_PREC_READ (1<<10) |
Definition at line 538 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), get_head_value_node(), is_left_anchor(), onig_is_code_in_cc(), optimize_node_left(), parse_enclose(), 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 539 of file regint.h.
Referenced by compile_anchor_node(), compile_length_anchor_node(), concat_opt_anc_info(), is_left_anchor(), onig_is_code_in_cc(), onig_search_gpos(), optimize_node_left(), parse_enclose(), 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 531 of file regint.h.
Referenced by clear_optimize_info(), compile_anchor_node(), fetch_token(), is_left_anchor(), onig_is_code_in_cc(), onig_search_gpos(), optimize_node_left(), and set_optimize_info_from_tree().
#define ANCHOR_WORD_BEGIN (1<<8) |
Definition at line 536 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), and onig_is_code_in_cc().
#define ANCHOR_WORD_BOUND (1<<6) |
Definition at line 534 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), and onig_is_code_in_cc().
#define ANCHOR_WORD_END (1<<9) |
Definition at line 537 of file regint.h.
Referenced by compile_anchor_node(), fetch_token(), and onig_is_code_in_cc().
#define BBUF_ADD | ( | buf, | |
bytes, | |||
n | |||
) | BBUF_WRITE((buf),(buf)->used,(bytes),(n)) |
Definition at line 491 of file regint.h.
Referenced by add_abs_addr(), add_bitset(), add_bytes(), add_length(), add_mem_num(), add_opcode(), add_option(), and add_rel_addr().
#define BBUF_ADD1 | ( | buf, | |
byte | |||
) | BBUF_WRITE1((buf),(buf)->used,(byte)) |
Definition at line 492 of file regint.h.
Referenced by add_opcode().
Definition at line 493 of file regint.h.
Referenced by add_multi_byte_cclass().
Definition at line 494 of file regint.h.
Referenced by compile_call(), and compile_enclose_node().
Definition at line 447 of file regint.h.
Referenced by bbuf_clone(), new_code_range(), and onig_compile_ruby().
#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 509 of file regint.h.
Referenced by add_code_range_to_buf0().
#define BBUF_MOVE_RIGHT | ( | buf, | |
from, | |||
to, | |||
n | |||
) |
Definition at line 497 of file regint.h.
Referenced by add_code_range_to_buf0().
#define BBUF_SIZE_INC | ( | buf, | |
inc | |||
) |
#define BBUF_WRITE | ( | buf, | |
pos, | |||
bytes, | |||
n | |||
) |
Definition at line 477 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) & ((BitStatusType )1 << n)) : ((stats) & 1)) |
Definition at line 357 of file regint.h.
Referenced by compile_enclose_node(), compile_length_enclose_node(), disable_noname_group_capture(), match_at(), onig_compile_ruby(), onig_number_of_capture_histories(), and optimize_node_left().
#define BIT_STATUS_BITS_NUM (sizeof(BitStatusType) * 8) |
Definition at line 354 of file regint.h.
Referenced by parse_enclose().
#define BIT_STATUS_CLEAR | ( | stats | ) | (stats) = 0 |
Definition at line 355 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 356 of file regint.h.
Referenced by onig_compile_ruby().
#define BIT_STATUS_ON_AT | ( | stats, | |
n | |||
) |
Definition at line 360 of file regint.h.
Referenced by setup_subexp_call(), and setup_tree().
#define BIT_STATUS_ON_AT_SIMPLE | ( | stats, | |
n | |||
) |
Definition at line 367 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 414 of file regint.h.
Referenced by is_onechar_cclass().
Definition at line 435 of file regint.h.
Referenced by bitset_is_empty(), 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 427 of file regint.h.
Referenced by initialize_cclass().
Definition at line 437 of file regint.h.
Referenced by i_apply_case_fold(), and node_extended_grapheme_cluster().
Definition at line 436 of file regint.h.
Referenced by i_apply_case_fold(), next_state_class(), and next_state_val().
#define BITSET_SIZE (SINGLE_BYTE_SIZE / BITS_IN_ROOM) |
Definition at line 415 of file regint.h.
Referenced by bitset_and(), bitset_copy(), bitset_invert(), bitset_invert_to(), bitset_is_empty(), bitset_or(), bitset_set_range(), and is_onechar_cclass().
#define BS_ROOM | ( | bs, | |
pos | |||
) | (bs)[(int )(pos) / BITS_IN_ROOM] |
#define CHECK_INTERRUPT_IN_MATCH_AT |
Definition at line 174 of file regint.h.
Referenced by match_at().
Definition at line 300 of file regint.h.
Referenced by is_mbc_newline_ex(), node_new_anychar(), node_new_backref(), node_new_call(), node_new_cclass(), 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 301 of file regint.h.
Referenced by bbuf_clone(), disable_noname_group_capture(), divide_look_behind_alternatives(), entry_repeat_range(), i_apply_case_fold(), is_mbc_newline_ex(), 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 DEFAULT_PARSE_DEPTH_LIMIT 4096 |
Definition at line 88 of file regint.h.
Referenced by onig_set_parse_depth_limit().
#define DIGITVAL | ( | code | ) | ((code) - '0') |
Definition at line 375 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 405 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 688 of file regint.h.
Referenced by match_at(), and onig_is_code_in_cc().
#define GET_ALIGNMENT_PAD_SIZE | ( | addr, | |
pad_size | |||
) |
Definition at line 323 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 697 of file regint.h.
Referenced by add_code_range_to_buf0(), and_code_range_buf(), is_onechar_cclass(), not_code_range_buf(), onig_is_code_in_cc(), 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 689 of file regint.h.
Referenced by match_at(), and onig_is_code_in_cc().
#define GET_MEMNUM_INC | ( | num, | |
p | |||
) | PLATFORM_GET_INC(num, p, MemNumType) |
Definition at line 690 of file regint.h.
Referenced by match_at(), mem_is_in_memp(), and onig_is_code_in_cc().
#define GET_OPTION_INC | ( | option, | |
p | |||
) | PLATFORM_GET_INC(option, p, OnigOptionType) |
Definition at line 692 of file regint.h.
Referenced by match_at(), and onig_is_code_in_cc().
#define GET_POINTER_INC | ( | ptr, | |
p | |||
) | PLATFORM_GET_INC(ptr, p, PointerType) |
#define GET_RELADDR_INC | ( | addr, | |
p | |||
) | PLATFORM_GET_INC(addr, p, RelAddrType) |
Definition at line 687 of file regint.h.
Referenced by match_at(), and onig_is_code_in_cc().
#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 694 of file regint.h.
Referenced by match_at().
#define INIT_MATCH_STACK_SIZE 160 |
Definition at line 86 of file regint.h.
Referenced by match_at().
#define INT_MAX_LIMIT ((1UL << (SIZEOF_INT * 8 - 1)) - 1) |
Definition at line 373 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 393 of file regint.h.
Referenced by fetch_token(), parse_char_class(), parse_exp(), and parse_posix_bracket().
#define IS_CODE_SB_WORD | ( | enc, | |
code | |||
) | (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code)) |
Definition at line 876 of file regint.h.
Referenced by is_not_included().
#define IS_DYNAMIC_OPTION | ( | option | ) | 0 |
Definition at line 403 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 384 of file regint.h.
Referenced by fetch_token().
#define IS_FIND_CONDITION | ( | option | ) |
Definition at line 387 of file regint.h.
Referenced by match_at(), and onig_compile_ruby().
#define IS_FIND_LONGEST | ( | option | ) | ((option) & ONIG_OPTION_FIND_LONGEST) |
Definition at line 385 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 386 of file regint.h.
Referenced by match_at(), and onig_search_gpos().
#define IS_IGNORECASE | ( | option | ) | ((option) & ONIG_OPTION_IGNORECASE) |
Definition at line 383 of file regint.h.
Referenced by compile_length_tree(), compile_tree(), get_head_value_node(), parse_char_class(), parse_char_property(), parse_exp(), and setup_tree().
#define IS_MC_ESC_CODE | ( | code, | |
syn | |||
) |
Definition at line 755 of file regint.h.
Referenced by fetch_token().
#define IS_MULTILINE | ( | option | ) | ((option) & ONIG_OPTION_MULTILINE) |
Definition at line 382 of file regint.h.
Referenced by compile_quantifier_node(), compile_tree(), 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 796 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(), onig_is_code_in_cc_len(), optimize_node_left(), or_cclass(), parse_char_class(), and set_quantifier().
#define IS_NEWLINE_CRLF | ( | option | ) | ((option) & ONIG_OPTION_NEWLINE_CRLF) |
Definition at line 396 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 299 of file regint.h.
Referenced by add_ctype_to_cc(), and_code_range_buf(), bbuf_free(), cclass_case_fold(), 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(), is_mbc_newline_ex(), is_not_included(), is_onechar_cclass(), name_find(), names_clear(), next_setup(), next_state_class(), next_state_val(), node_new_str_raw(), noname_disable_map(), numbered_ref_check(), onig_compile_ruby(), onig_foreach_name(), onig_free(), onig_free_body(), onig_is_code_in_cc(), 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_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 389 of file regint.h.
Referenced by match_at().
#define IS_NOTBOS | ( | option | ) | ((option) & ONIG_OPTION_NOTBOS) |
Definition at line 391 of file regint.h.
Referenced by match_at().
#define IS_NOTEOL | ( | option | ) | ((option) & ONIG_OPTION_NOTEOL) |
Definition at line 390 of file regint.h.
Referenced by match_at().
#define IS_NOTEOS | ( | option | ) | ((option) & ONIG_OPTION_NOTEOS) |
Definition at line 392 of file regint.h.
Referenced by match_at().
#define IS_NULL | ( | p | ) | (((void*)(p)) == (void*)0) |
Definition at line 298 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(), cclass_case_fold(), 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(), i_apply_case_fold(), is_mbc_newline_ex(), is_not_included(), match_at(), name_add(), node_extended_grapheme_cluster(), node_linebreak(), node_new_backref(), not_code_range_buf(), onig_bbuf_init(), onig_is_code_in_cc(), 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(), onigenc_with_ascii_strnicmp(), or_code_range_buf(), parse_char_class(), parse_enclose(), parse_exp(), renumber_node_backref(), scan_env_add_mem_entry(), set_bm_skip(), setup_subexp_call(), setup_tree(), slow_search_backward_ic(), 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 394 of file regint.h.
Referenced by parse_posix_bracket().
#define IS_REPEAT_INFINITE | ( | n | ) | ((n) == REPEAT_INFINITE) |
Definition at line 409 of file regint.h.
Referenced by compile_length_quantifier_node(), compile_quantifier_node(), entry_repeat_range(), expand_case_fold_string(), 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 381 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 395 of file regint.h.
Referenced by fetch_token().
#define MAX | ( | a, | |
b | |||
) | (((a)<(b))?(b):(a)) |
Definition at line 296 of file regint.h.
Referenced by and_code_range_buf(), and vm_init_redefined_flag().
#define MC_ANYCHAR | ( | syn | ) | (syn)->meta_char_table.anychar |
Definition at line 749 of file regint.h.
Referenced by fetch_token().
#define MC_ANYCHAR_ANYTIME | ( | syn | ) | (syn)->meta_char_table.anychar_anytime |
Definition at line 753 of file regint.h.
Referenced by fetch_token().
#define MC_ANYTIME | ( | syn | ) | (syn)->meta_char_table.anytime |
Definition at line 750 of file regint.h.
Referenced by fetch_token().
#define MC_ESC | ( | syn | ) | (syn)->meta_char_table.esc |
Definition at line 748 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 752 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 751 of file regint.h.
Referenced by fetch_token().
#define NCCLASS_CLEAR_NOT | ( | nd | ) | NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT) |
Definition at line 795 of file regint.h.
Referenced by parse_char_class(), and set_quantifier().
#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 794 of file regint.h.
Referenced by parse_char_class(), parse_char_property(), and parse_exp().
#define NULL_UCHARP ((UChar* )0) |
Definition at line 302 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 376 of file regint.h.
Referenced by scan_unsigned_octal_number().
#define ONIG_LAST_CODE_POINT (~((OnigCodePoint )0)) |
Definition at line 304 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 343 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 344 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 348 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 345 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 349 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 346 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 347 of file regint.h.
Referenced by backward_search_range(), clear_optimize_info(), forward_search_range(), and set_optimize_map_info().
#define ONIG_OPTIMIZE_NONE 0 |
Definition at line 342 of file regint.h.
Referenced by clear_optimize_info(), and onig_search_gpos().
#define onig_st_is_member st_is_member |
#define OPT_EXACT_MAXLEN 24 |
Definition at line 90 of file regint.h.
Referenced by concat_opt_exact_info(), concat_opt_exact_info_str(), and is_full_opt_exact_info().
#define PLATFORM_GET_INC | ( | val, | |
p, | |||
type | |||
) |
#define PRIdPTR "ld" |
Definition at line 275 of file regint.h.
Referenced by clear_optimize_info(), forward_search_range(), and slow_search_backward_ic().
#define PRIxPTR "lx" |
Definition at line 277 of file regint.h.
Referenced by onig_is_code_in_cc().
#define REPEAT_INFINITE -1 |
Definition at line 408 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 413 of file regint.h.
Referenced by add_ctype_to_cc(), bitset_is_empty(), 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 677 of file regint.h.
Referenced by add_abs_addr(), compile_enclose_node(), and unset_addr_list_fix().
#define SIZE_BITSET (int )sizeof(BitSet) |
Definition at line 425 of file regint.h.
Referenced by add_bitset(), compile_length_cclass_node(), match_at(), and onig_is_code_in_cc().
#define SIZE_CODE_POINT (int )sizeof(OnigCodePoint) |
Definition at line 683 of file regint.h.
Referenced by add_code_range_to_buf0().
#define SIZE_LENGTH (int )sizeof(LengthType) |
Definition at line 678 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 679 of file regint.h.
Referenced by add_mem_num(), compile_length_quantifier_node(), compile_length_tree(), match_at(), and onig_is_code_in_cc().
#define SIZE_OP_ABSENT (SIZE_OPCODE + SIZE_RELADDR) |
Definition at line 738 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_ABSENT_END SIZE_OPCODE |
Definition at line 739 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_ANYCHAR_STAR SIZE_OPCODE |
Definition at line 705 of file regint.h.
Referenced by compile_length_quantifier_node().
#define SIZE_OP_ANYCHAR_STAR_PEEK_NEXT (SIZE_OPCODE + 1) |
Definition at line 706 of file regint.h.
Referenced by compile_length_quantifier_node().
#define SIZE_OP_CALL (SIZE_OPCODE + SIZE_ABSADDR) |
Definition at line 734 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 736 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_FAIL SIZE_OPCODE |
Definition at line 720 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 733 of file regint.h.
Referenced by compile_anchor_node(), and compile_length_anchor_node().
#define SIZE_OP_FAIL_POS SIZE_OPCODE |
Definition at line 717 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 707 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 731 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_MEMORY_END (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 725 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 723 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 724 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 726 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 721 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_MEMORY_START_PUSH (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 722 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 730 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 729 of file regint.h.
Referenced by compile_length_quantifier_node(), and compile_quantifier_node().
#define SIZE_OP_POP SIZE_OPCODE |
Definition at line 709 of file regint.h.
Referenced by compile_enclose_node(), and compile_length_enclose_node().
#define SIZE_OP_POP_POS SIZE_OPCODE |
Definition at line 716 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_POP_STOP_BT SIZE_OPCODE |
Definition at line 728 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_PUSH (SIZE_OPCODE + SIZE_RELADDR) |
Definition at line 708 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_ABSENT_POS SIZE_OPCODE |
Definition at line 737 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_PUSH_IF_PEEK_NEXT (SIZE_OPCODE + SIZE_RELADDR + 1) |
Definition at line 711 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 732 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 710 of file regint.h.
Referenced by compile_length_quantifier_node(), and compile_quantifier_node().
#define SIZE_OP_PUSH_POS SIZE_OPCODE |
Definition at line 714 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_PUSH_POS_NOT (SIZE_OPCODE + SIZE_RELADDR) |
Definition at line 715 of file regint.h.
Referenced by compile_length_anchor_node().
#define SIZE_OP_PUSH_STOP_BT SIZE_OPCODE |
Definition at line 727 of file regint.h.
Referenced by compile_length_enclose_node().
#define SIZE_OP_REPEAT_INC (SIZE_OPCODE + SIZE_MEMNUM) |
Definition at line 712 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 735 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 718 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 719 of file regint.h.
Referenced by compile_length_option_node().
#define SIZE_OPCODE 1 |
Definition at line 675 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 682 of file regint.h.
Referenced by add_option(), compile_length_tree(), and onig_is_code_in_cc().
#define SIZE_POINTER (int )sizeof(PointerType) |
Definition at line 684 of file regint.h.
Referenced by add_mem_num().
#define SIZE_RELADDR (int )sizeof(RelAddrType) |
Definition at line 676 of file regint.h.
Referenced by add_rel_addr(), compile_length_quantifier_node(), match_at(), and onig_is_code_in_cc().
#define SIZE_REPEATNUM (int )sizeof(RepeatNumType) |
#define SIZE_STATE_CHECK_NUM (int )sizeof(StateCheckNumType) |
Definition at line 680 of file regint.h.
Referenced by add_opcode(), and onig_is_code_in_cc().
#define st_add_direct onig_st_add_direct |
Definition at line 187 of file regint.h.
Referenced by define_final0(), gen_ivar_compat_tbl_i(), iv_index_tbl_extend(), make_transcoder_entry(), make_unique_str(), method_entry_i(), rb_autoload_str(), rb_generic_ivar_table(), register_sym(), set_syserr(), transcode_search_path(), transcode_search_path_i(), w_object(), and w_symbol().
#define st_cleanup_safe onig_st_cleanup_safe |
Definition at line 189 of file regint.h.
Referenced by hash_foreach_ensure().
#define st_copy onig_st_copy |
Definition at line 190 of file regint.h.
Referenced by hash_dup(), rb_hash_initialize_copy(), rb_hash_s_create(), and rb_st_copy().
#define st_delete onig_st_delete |
Definition at line 182 of file regint.h.
Referenced by autoload_delete(), constat_delete(), delete_unique_str(), find_class_path(), flatten(), freeobj_i(), id2key(), r_fixup_compat(), rb_ary_and(), rb_cvar_get(), rb_cvar_set(), rb_execarg_parent_start1(), rb_free_generic_ivar(), rb_hash_delete_entry(), rb_ivar_delete(), rb_mod_init_copy(), rb_mod_remove_cvar(), rb_obj_remove_instance_variable(), rb_objspace_call_finalizer(), rb_str_free(), rb_undefine_finalizer(), run_final(), socklist_delete(), st_delete_wrap(), unknown_keyword_error(), unregister_sym(), and wmap_finalize().
#define st_delete_safe onig_st_delete_safe |
Definition at line 183 of file regint.h.
Referenced by rb_hash_delete_entry().
#define st_foreach onig_st_foreach |
Definition at line 186 of file regint.h.
Referenced by class_instance_method_list(), collect_values_of_values(), count_nodes(), count_objects(), count_objects_size(), count_symbols(), enc_names(), exit_handler(), gc_mark_roots(), get_loaded_features_index(), ibf_dump_id_list(), ibf_dump_object_hash(), id2key(), Init_String(), mark_hash(), mark_marshal_compat_t(), mark_set(), mark_tbl(), object_allocations_reporter(), rb_ary_uniq_bang(), rb_check_exec_env(), rb_check_exec_options(), rb_coverage_peek_result(), rb_econv_asciicompat_encoding(), rb_enc_aliases(), rb_enc_foreach_name(), rb_enc_name_list(), rb_execarg_extract_options(), rb_execarg_parent_start1(), rb_extract_keywords(), rb_feature_p(), rb_obj_singleton_methods(), rb_objspace_call_finalizer(), rb_reset_coverages(), rb_st_copy(), rb_sym_all_symbols(), rb_thread_keys(), rb_thread_start_timer_thread(), reachable_objects_from(), remove_duplicate_keys(), rgengc_unprotect_logging_exit_func(), ruby_vm_destruct(), setup_hash(), trace_object_allocations_clear(), transcode_search_path(), validate_labels(), wmap_each(), wmap_each_key(), wmap_each_value(), wmap_free(), wmap_inspect(), wmap_keys(), wmap_mark(), wmap_memsize(), and wmap_values().
#define st_free_table onig_st_free_table |
Definition at line 188 of file regint.h.
Referenced by ary_recycle_hash(), autoload_free(), class_instance_method_list(), clear_dump_arg(), clear_load_arg(), com_hash_free(), cvar_list(), exit_handler(), fiber_free(), flatten(), gc_mark_roots(), ibf_dump_free(), id2key(), iseq_data_to_ary(), obj_free(), rb_const_list(), rb_free_generic_ivar(), rb_hash_initialize_copy(), rb_hash_rehash(), rb_iseq_build_from_ary(), rb_mod_init_copy(), rb_obj_singleton_methods(), rb_objspace_call_finalizer(), remove_duplicate_keys(), ruby_vm_destruct(), thread_free(), transcode_search_path(), validate_labels(), and wmap_free().
#define st_init_numtable onig_st_init_numtable |
Definition at line 178 of file regint.h.
Referenced by class_instance_method_list(), compat_allocator_table(), constat_handle(), fiber_init(), find_class_path(), flatten(), gc_mark_roots(), get_traceobj_arg(), ibf_dump_setup(), init_constants(), Init_Exception(), Init_heap(), Init_var_tables(), Init_win32ole(), insn_make_insn_table(), iseq_compile_each(), iseq_data_to_ary(), iv_index_tbl_make(), local_var_list_init(), mod_cvar_at(), rb_autoload_str(), rb_cvar_set(), rb_generic_ivar_table(), rb_include_class_new(), rb_iseq_build_from_ary(), rb_ivar_set(), rb_marshal_dump_limited(), rb_marshal_load_with_proc(), rb_mod_const_at(), rb_obj_singleton_methods(), rb_singleton_class_attached(), reachable_objects_from(), ruby_register_rollback_func_for_ensure(), socklist_insert(), threadptr_local_aset(), vm_init_redefined_flag(), and wmap_allocate().
#define st_init_numtable_with_size onig_st_init_numtable_with_size |
Definition at line 179 of file regint.h.
Referenced by id2key(), and remove_duplicate_keys().
#define st_init_strtable onig_st_init_strtable |
Definition at line 180 of file regint.h.
Referenced by get_traceobj_arg(), Init_load(), Init_vm_objects(), rb_gc_unprotect_logging(), and zone_str().
#define st_init_strtable_with_size onig_st_init_strtable_with_size |
#define st_init_table onig_st_init_table |
Definition at line 176 of file regint.h.
Referenced by hash_tbl(), rb_ident_hash_new(), and rb_init_identtable().
#define st_init_table_with_size onig_st_init_table_with_size |
Definition at line 177 of file regint.h.
Referenced by Init_sym(), Init_vm_objects(), rb_hash_rehash(), rb_hash_s_create(), and rb_init_identtable_with_size().
#define st_insert onig_st_insert |
Definition at line 184 of file regint.h.
Referenced by add_opt_method(), constat_handle(), delete_unique_str(), enc_register_at(), enc_set_default_encoding(), encoding_name(), features_index_add_single(), flatten(), gc_mark_roots(), ibf_table_index(), id2key(), init_constants(), insn_make_insn_table(), iseq_compile_each(), load_lock(), make_unique_str(), newobj_i(), obj_alloc_by_klass(), ole_vstr2wc(), r_entry0(), r_prepare(), r_symreal(), rb_autoload_str(), rb_class_ivar_set(), rb_copy_generic_ivar(), rb_execarg_parent_start1(), rb_gc_copy_finalizer(), rb_gc_unprotect_logging(), rb_hash_rehash_i(), rb_marshal_define_compat(), rb_struct_s_def(), reachable_object_from_i(), register_label(), remove_duplicate_keys(), ruby_register_rollback_func_for_ensure(), socklist_insert(), struct_make_members_list(), threadptr_local_aset(), val2dispatch(), w_object(), and wmap_aset().
#define st_lookup onig_st_lookup |
Definition at line 185 of file regint.h.
Referenced by autoload_data(), autoload_delete(), classname(), constat_handle(), constat_reset(), cvar_lookup_at(), define_final0(), delete_unique_str(), encoding_name(), eql_i(), fc_path(), features_index_add_single(), flatten(), freeobj_i(), gc_mark_roots(), gen_ivtbl_get(), generic_ivar_defined(), generic_ivar_delete(), generic_ivar_get(), generic_ivar_remove(), get_syserr(), get_transcoder_entry(), ibf_table_lookup(), id2key(), iseq_build_from_ary_body(), iseq_compile_each(), iseq_data_to_ary(), iv_index_tbl_extend(), load_lock(), lookup_allocation_info(), lookup_rollback_func(), lookup_str_id(), lookup_str_sym(), make_transcoder_entry(), make_unique_str(), method_entry_i(), newobj_i(), obj_alloc_by_klass(), ole_vstr2wc(), r_entry0(), r_fixup_compat(), r_object0(), r_symlink(), rb_ary_diff(), rb_autoload_str(), rb_class_path_cached(), rb_const_set(), rb_econv_asciicompat_encoding(), rb_enc_registered(), rb_feature_p(), rb_gc_copy_finalizer(), rb_gc_unprotect_logging(), rb_generic_ivar_table(), rb_hash_aref(), rb_hash_fetch_m(), rb_hash_has_key(), rb_hash_lookup2(), rb_ivar_defined(), rb_ivar_delete(), rb_ivar_lookup(), rb_obj_remove_instance_variable(), rb_thread_key_p(), rb_thread_variable_p(), rb_tmp_class_path(), rb_vm_check_redefinition_opt_method(), register_label(), remove_duplicate_keys(), rsock_intern_family(), rsock_intern_family_noprefix(), rsock_intern_ip_optname(), rsock_intern_iplevel(), rsock_intern_ipproto(), rsock_intern_ipv6_optname(), rsock_intern_local_optname(), rsock_intern_protocol_family(), rsock_intern_scm_optname(), rsock_intern_so_optname(), rsock_intern_socktype(), rsock_intern_tcp_optname(), rsock_intern_udp_optname(), set_syserr(), socklist_lookup(), syserr_initialize(), threadptr_local_aref(), transcode_search_path(), transcode_search_path_i(), val2dispatch(), vm_getivar(), vm_setivar(), w_class(), w_object(), w_symbol(), and wmap_aref().
#define STACK_POP_LEVEL_ALL 2 |
Definition at line 339 of file regint.h.
Referenced by onig_compile_ruby().
#define STACK_POP_LEVEL_FREE 0 |
Definition at line 337 of file regint.h.
Referenced by onig_compile_ruby().
#define STACK_POP_LEVEL_MEM_START 1 |
Definition at line 338 of file regint.h.
Referenced by onig_compile_ruby().
#define SYN_GNU_REGEX_BV |
#define SYN_GNU_REGEX_OP |
#define SYN_POSIX_COMMON_OP |
Definition at line 73 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_SUBEXP_CALL |
Definition at line 70 of file regint.h.
Referenced by compile_range_repeat_node(), and onig_compile_ruby().
#define USE_WORD_BEGIN_END /* "<": word-begin, ">": word-end */ |
#define WORD_ALIGNMENT_SIZE SIZEOF_LONG |
Definition at line 321 of file regint.h.
Referenced by add_multi_byte_cclass(), and compile_length_cclass_node().
#define xalloca alloca |
Definition at line 213 of file regint.h.
Referenced by disable_noname_group_capture().
#define XDIGITVAL | ( | enc, | |
code | |||
) |
Definition at line 377 of file regint.h.
Referenced by scan_unsigned_hexadecimal_number().
#define xmemcpy memcpy |
Definition at line 202 of file regint.h.
Referenced by bbuf_clone(), clear_opt_map_info(), onig_error_code_to_str(), onig_strcpy(), scan_env_add_mem_entry(), set_optimize_exact_info(), stack_double(), strdup_with_null(), and to_ascii().
#define xsnprintf snprintf |
Definition at line 215 of file regint.h.
Referenced by sprint_byte(), and sprint_byte_with_x().
#define xstrcat | ( | dest, | |
src, | |||
size | |||
) | strcat(dest,src) |
Definition at line 216 of file regint.h.
Referenced by onig_vsnprintf_with_pattern().
#define xvsnprintf vsnprintf |
Definition at line 214 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 struct OnigEndCallListItem OnigEndCallListItemType |
typedef intptr_t OnigStackIndex |
typedef struct _OnigStackType OnigStackType |
typedef void* PointerType |
typedef int RelAddrType |
typedef int RepeatNumType |
typedef short int StateCheckNumType |
enum OpCode |
void onig_add_end_call | ( | void(*)(void) | func | ) |
Definition at line 6022 of file regcomp.c.
References EndCallTop, func, OnigEndCallListItem::func, OnigEndCallListItem::next, return, and xmalloc.
int onig_bbuf_init | ( | BBuf * | buf, |
OnigDistance | size | ||
) |
Definition at line 142 of file regcomp.c.
References _BBuf::alloc, IS_NULL, NULL, ONIGERR_MEMORY, _BBuf::p, UChar, _BBuf::used, and xmalloc.
int onig_compile | ( | regex_t * | reg, |
const UChar * | pattern, | ||
const UChar * | pattern_end, | ||
OnigErrorInfo * | einfo | ||
) |
Definition at line 5698 of file regcomp.c.
References NULL, and onig_compile_ruby().
Referenced by onig_new(), and onig_new_without_alloc().
UChar* onig_error_code_to_format | ( | OnigPosition | code | ) |
Definition at line 37 of file regerror.c.
References ONIG_MISMATCH, ONIG_NO_SUPPORT_CONFIG, ONIGERR_CHAR_CLASS_VALUE_AT_END_OF_RANGE, ONIGERR_CHAR_CLASS_VALUE_AT_START_OF_RANGE, ONIGERR_CONTROL_CODE_SYNTAX, ONIGERR_DEFAULT_ENCODING_IS_NOT_SET, ONIGERR_EMPTY_CHAR_CLASS, ONIGERR_EMPTY_GROUP_NAME, ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS, ONIGERR_END_PATTERN_AT_CONTROL, ONIGERR_END_PATTERN_AT_ESCAPE, ONIGERR_END_PATTERN_AT_LEFT_BRACE, ONIGERR_END_PATTERN_AT_LEFT_BRACKET, ONIGERR_END_PATTERN_AT_META, ONIGERR_END_PATTERN_IN_GROUP, ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS, ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY, ONIGERR_INVALID_ARGUMENT, ONIGERR_INVALID_BACKREF, ONIGERR_INVALID_CHAR_IN_GROUP_NAME, ONIGERR_INVALID_CHAR_PROPERTY_NAME, ONIGERR_INVALID_CODE_POINT_VALUE, ONIGERR_INVALID_COMBINATION_OF_OPTIONS, ONIGERR_INVALID_CONDITION_PATTERN, ONIGERR_INVALID_GROUP_NAME, ONIGERR_INVALID_LOOK_BEHIND_PATTERN, ONIGERR_INVALID_POSIX_BRACKET_TYPE, ONIGERR_INVALID_REPEAT_RANGE_PATTERN, ONIGERR_MATCH_STACK_LIMIT_OVER, ONIGERR_MEMORY, ONIGERR_META_CODE_SYNTAX, ONIGERR_MISMATCH_CODE_LENGTH_IN_CLASS_RANGE, ONIGERR_MULTIPLEX_DEFINED_NAME, ONIGERR_MULTIPLEX_DEFINITION_NAME_CALL, ONIGERR_NESTED_REPEAT_OPERATOR, ONIGERR_NEVER_ENDING_RECURSION, ONIGERR_NOT_SUPPORTED_ENCODING_COMBINATION, ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED, ONIGERR_PARSE_DEPTH_LIMIT_OVER, ONIGERR_PARSER_BUG, ONIGERR_PREMATURE_END_OF_CHAR_CLASS, ONIGERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR, ONIGERR_STACK_BUG, ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALID, ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED, ONIGERR_TOO_BIG_BACKREF_NUMBER, ONIGERR_TOO_BIG_NUMBER, ONIGERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGE, ONIGERR_TOO_BIG_WIDE_CHAR_VALUE, ONIGERR_TOO_LONG_WIDE_CHAR_VALUE, ONIGERR_TOO_MANY_CAPTURE_GROUPS, ONIGERR_TOO_MANY_MULTI_BYTE_RANGES, ONIGERR_TOO_SHORT_DIGITS, ONIGERR_TOO_SHORT_MULTI_BYTE_STRING, ONIGERR_TYPE_BUG, ONIGERR_UNDEFINED_BYTECODE, ONIGERR_UNDEFINED_GROUP_OPTION, ONIGERR_UNDEFINED_GROUP_REFERENCE, ONIGERR_UNDEFINED_NAME_REFERENCE, ONIGERR_UNEXPECTED_BYTECODE, ONIGERR_UNMATCHED_CLOSE_PARENTHESIS, ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS, ONIGERR_UPPER_SMALLER_THAN_LOWER_IN_REPEAT_RANGE, and UChar.
Referenced by onig_error_code_to_str().
int onig_is_code_in_cc | ( | OnigEncoding | enc, |
OnigCodePoint | code, | ||
CClassNode * | cc | ||
) |
Definition at line 6114 of file regcomp.c.
References add, ALIGNMENT_RIGHT, ANCHOR_BEGIN_BUF, ANCHOR_BEGIN_LINE, ANCHOR_BEGIN_POSITION, ANCHOR_END_BUF, ANCHOR_END_LINE, ANCHOR_KEEP, ANCHOR_LOOK_BEHIND, ANCHOR_LOOK_BEHIND_NOT, ANCHOR_NOT_WORD_BOUND, ANCHOR_PREC_READ, ANCHOR_PREC_READ_NOT, ANCHOR_SEMI_END_BUF, ANCHOR_WORD_BEGIN, ANCHOR_WORD_BOUND, ANCHOR_WORD_END, BRefNode::back_num, BACKREFS_P, bp, re_pattern_buffer::enc, enclen, ENCLOSE_ABSENT, ENCLOSE_CONDITION, ENCLOSE_MEMORY, ENCLOSE_OPTION, ENCLOSE_STOP_BACKTRACK, re_registers::end, GET_ABSADDR_INC, GET_CODE_POINT, GET_LENGTH_INC, GET_MEMNUM_INC, GET_OPTION_INC, GET_RELADDR_INC, IS_NCCLASS_NOT, IS_NOT_NULL, IS_NULL, len, level, CallNode::name, CallNode::name_end, NANCHOR, NBREF, NCALL, NCAR, NCCLASS, NCDR, NCTYPE, NENCLOSE, NQTFR, NSTR, NSTRING_IS_RAW, NT_ALT, NT_ANCHOR, NT_BREF, NT_CALL, NT_CANY, NT_CCLASS, NT_CTYPE, NT_ENCLOSE, NT_LIST, NT_QTFR, NT_STR, NTYPE, onig_is_code_in_cc_len(), ONIGENC_CODE_TO_MBCLEN, ONIGENC_CTYPE_WORD, ONIGENC_MBC_MINLEN, OP_ABSENT, OP_ABSENT_END, OP_ANYCHAR, OP_ANYCHAR_ML, OP_ANYCHAR_ML_STAR, OP_ANYCHAR_ML_STAR_PEEK_NEXT, OP_ANYCHAR_STAR, OP_ANYCHAR_STAR_PEEK_NEXT, OP_ASCII_WORD, OP_ASCII_WORD_BEGIN, OP_ASCII_WORD_BOUND, OP_ASCII_WORD_END, OP_BACKREF1, OP_BACKREF2, OP_BACKREF_MULTI, OP_BACKREF_MULTI_IC, OP_BACKREF_WITH_LEVEL, OP_BACKREFN, OP_BACKREFN_IC, OP_BEGIN_BUF, OP_BEGIN_LINE, OP_BEGIN_POSITION, OP_CALL, OP_CCLASS, OP_CCLASS_MB, OP_CCLASS_MB_NOT, OP_CCLASS_MIX, OP_CCLASS_MIX_NOT, OP_CCLASS_NOT, OP_CONDITION, OP_END, OP_END_BUF, OP_END_LINE, OP_EXACT1, OP_EXACT1_IC, OP_EXACT2, OP_EXACT3, OP_EXACT4, OP_EXACT5, OP_EXACTMB2N, OP_EXACTMB2N1, OP_EXACTMB2N2, OP_EXACTMB2N3, OP_EXACTMB3N, OP_EXACTMBN, OP_EXACTN, OP_EXACTN_IC, OP_FAIL, OP_FAIL_LOOK_BEHIND_NOT, OP_FAIL_POS, OP_FINISH, OP_JUMP, OP_KEEP, OP_LOOK_BEHIND, OP_MEMORY_END, OP_MEMORY_END_PUSH, OP_MEMORY_END_PUSH_REC, OP_MEMORY_END_REC, OP_MEMORY_START, OP_MEMORY_START_PUSH, OP_NOT_ASCII_WORD, OP_NOT_ASCII_WORD_BOUND, OP_NOT_WORD, OP_NOT_WORD_BOUND, OP_NULL_CHECK_END, OP_NULL_CHECK_END_MEMST, OP_NULL_CHECK_END_MEMST_PUSH, OP_NULL_CHECK_START, OP_POP, OP_POP_POS, OP_POP_STOP_BT, OP_PUSH, OP_PUSH_ABSENT_POS, OP_PUSH_IF_PEEK_NEXT, OP_PUSH_LOOK_BEHIND_NOT, OP_PUSH_OR_JUMP_EXACT1, OP_PUSH_POS, OP_PUSH_POS_NOT, OP_PUSH_STOP_BT, OP_REPEAT, OP_REPEAT_INC, OP_REPEAT_INC_NG, OP_REPEAT_INC_NG_SG, OP_REPEAT_INC_SG, OP_REPEAT_NG, OP_RETURN, OP_SEMI_END_BUF, OP_SET_OPTION, OP_SET_OPTION_PUSH, OP_STATE_CHECK, OP_STATE_CHECK_ANYCHAR_ML_STAR, OP_STATE_CHECK_ANYCHAR_STAR, OP_STATE_CHECK_PUSH, OP_STATE_CHECK_PUSH_OR_JUMP, OP_WORD, OP_WORD_BEGIN, OP_WORD_BOUND, OP_WORD_END, _BBuf::p, re_pattern_buffer::p, PRIxPTR, SIZE_BITSET, SIZE_MEMNUM, SIZE_OPTION, SIZE_RELADDR, SIZE_STATE_CHECK_NUM, TRUE, UChar, _BBuf::used, and re_pattern_buffer::used.
Referenced by i_apply_case_fold(), and is_not_included().
int onig_is_code_in_cc_len | ( | int | enclen, |
OnigCodePoint | code, | ||
CClassNode * | cc | ||
) |
Definition at line 6091 of file regcomp.c.
References BITSET_AT, CClassNode::bs, IS_NCCLASS_NOT, IS_NULL, CClassNode::mbuf, onig_is_in_code_range(), _BBuf::p, and SINGLE_BYTE_SIZE.
Referenced by onig_is_code_in_cc().
void onig_snprintf_with_pattern | ( | UChar | buf[], |
int | bufsize, | ||
OnigEncoding | enc, | ||
UChar * | pat, | ||
UChar * | pat_end, | ||
const UChar * | fmt, | ||
... | |||
) |
Referenced by onig_vsnprintf_with_pattern().
hash_table_type* onig_st_init_strend_table_with_size | ( | st_index_t | size | ) |
Definition at line 406 of file regparse.c.
References str_end_cmp(), and str_end_hash().
Referenced by name_add(), and onigenc_with_ascii_strnicmp().
int onig_st_insert_strend | ( | hash_table_type * | table, |
const UChar * | str_key, | ||
const UChar * | end_key, | ||
hash_data_type | value | ||
) |
Definition at line 430 of file regparse.c.
References st_str_end_key::end, key, result, st_str_end_key::s, st_data_t, UChar, xfree(), and xmalloc.
Referenced by name_add(), and onigenc_with_ascii_strnicmp().
int onig_st_lookup_strend | ( | hash_table_type * | table, |
const UChar * | str_key, | ||
const UChar * | end_key, | ||
hash_data_type * | value | ||
) |
Definition at line 418 of file regparse.c.
References st_str_end_key::end, key, st_str_end_key::s, st_data_t, and UChar.
Referenced by name_find().
void onig_vsnprintf_with_pattern | ( | UChar | buf[], |
int | bufsize, | ||
OnigEncoding | enc, | ||
UChar * | pat, | ||
UChar * | pat_end, | ||
const UChar * | fmt, | ||
va_list | args | ||
) |
Definition at line 314 of file regerror.c.
References bp, buf, enclen, len, ONIG_ENCODING_ASCII, onig_snprintf_with_pattern(), onig_vsnprintf_with_pattern(), ONIGENC_IS_CODE_PRINT, ONIGENC_IS_CODE_SPACE, ONIGENC_IS_MBC_HEAD, ONIGENC_MBC_MINLEN, onigenc_str_bytelen_null(), sprint_byte_with_x(), UChar, xstrcat, and xvsnprintf.
Referenced by onig_syntax_warn(), and onig_vsnprintf_with_pattern().