Ruby
2.5.0dev(2017-10-22revision60238)
|
#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 onig_is_code_in_cc().
#define ANCHOR_ANYCHAR_STAR (1<<14) /* ".*" optimize info */ |
#define ANCHOR_ANYCHAR_STAR_ML (1<<15) /* ".*" optimize info (multi-line) */ |
#define ANCHOR_BEGIN_BUF (1<<0) |
Definition at line 527 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_BEGIN_LINE (1<<1) |
Definition at line 528 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_BEGIN_POSITION (1<<2) |
Definition at line 529 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_END_BUF (1<<3) |
Definition at line 530 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_END_LINE (1<<5) |
Definition at line 532 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_KEEP (1<<16) |
Definition at line 546 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_LOOK_BEHIND (1<<12) |
Definition at line 540 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_LOOK_BEHIND_NOT (1<<13) |
Definition at line 541 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_NOT_WORD_BOUND (1<<7) |
Definition at line 535 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_PREC_READ (1<<10) |
Definition at line 538 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_PREC_READ_NOT (1<<11) |
Definition at line 539 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_SEMI_END_BUF (1<<4) |
Definition at line 531 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_WORD_BEGIN (1<<8) |
Definition at line 536 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_WORD_BOUND (1<<6) |
Definition at line 534 of file regint.h.
Referenced by onig_is_code_in_cc().
#define ANCHOR_WORD_END (1<<9) |
Definition at line 537 of file regint.h.
Referenced by onig_is_code_in_cc().
#define BBUF_ADD | ( | buf, | |
bytes, | |||
n | |||
) | BBUF_WRITE((buf),(buf)->used,(bytes),(n)) |
#define BBUF_ADD1 | ( | buf, | |
byte | |||
) | BBUF_WRITE1((buf),(buf)->used,(byte)) |
Definition at line 447 of file regint.h.
Referenced by 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 | |||
) |
#define BBUF_MOVE_RIGHT | ( | buf, | |
from, | |||
to, | |||
n | |||
) |
#define BBUF_SIZE_INC | ( | buf, | |
inc | |||
) |
#define BBUF_WRITE | ( | buf, | |
pos, | |||
bytes, | |||
n | |||
) |
#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 onig_number_of_capture_histories().
#define BIT_STATUS_BITS_NUM (sizeof(BitStatusType) * 8) |
#define BIT_STATUS_ON_ALL | ( | stats | ) | (stats) = ~((BitStatusType )0) |
#define BIT_STATUS_ON_AT | ( | stats, | |
n | |||
) |
#define BIT_STATUS_ON_AT_SIMPLE | ( | stats, | |
n | |||
) |
#define BITS_IN_ROOM ((int )sizeof(Bits) * BITS_PER_BYTE) |
Definition at line 435 of file regint.h.
Referenced by onig_is_code_in_cc_len().
#define BITSET_CLEAR | ( | bs | ) |
#define BITSET_SIZE (SINGLE_BYTE_SIZE / BITS_IN_ROOM) |
#define BS_ROOM | ( | bs, | |
pos | |||
) | (bs)[(int )(pos) / BITS_IN_ROOM] |
#define CHECK_NULL_RETURN_MEMERR | ( | p | ) | if (IS_NULL(p)) return ONIGERR_MEMORY |
#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) |
#define GET_ABSADDR_INC | ( | addr, | |
p | |||
) | PLATFORM_GET_INC(addr, p, AbsAddrType) |
Definition at line 688 of file regint.h.
Referenced by onig_is_code_in_cc().
#define GET_ALIGNMENT_PAD_SIZE | ( | addr, | |
pad_size | |||
) |
#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 onig_is_code_in_cc(), and onig_is_in_code_range().
#define GET_LENGTH_INC | ( | len, | |
p | |||
) | PLATFORM_GET_INC(len, p, LengthType) |
Definition at line 689 of file regint.h.
Referenced by 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 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 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 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) |
#define INT_MAX_LIMIT ((1UL << (SIZEOF_INT * 8 - 1)) - 1) |
Definition at line 373 of file regint.h.
Referenced by onig_scan_unsigned_number().
#define IS_ASCII_RANGE | ( | option | ) | ((option) & ONIG_OPTION_ASCII_RANGE) |
#define IS_CODE_SB_WORD | ( | enc, | |
code | |||
) | (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code)) |
#define IS_EXTEND | ( | option | ) | ((option) & ONIG_OPTION_EXTEND) |
#define IS_FIND_CONDITION | ( | option | ) |
#define IS_FIND_LONGEST | ( | option | ) | ((option) & ONIG_OPTION_FIND_LONGEST) |
#define IS_FIND_NOT_EMPTY | ( | option | ) | ((option) & ONIG_OPTION_FIND_NOT_EMPTY) |
#define IS_IGNORECASE | ( | option | ) | ((option) & ONIG_OPTION_IGNORECASE) |
#define IS_MC_ESC_CODE | ( | code, | |
syn | |||
) |
#define IS_MULTILINE | ( | option | ) | ((option) & ONIG_OPTION_MULTILINE) |
#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 onig_is_code_in_cc(), and onig_is_code_in_cc_len().
#define IS_NEWLINE_CRLF | ( | option | ) | ((option) & ONIG_OPTION_NEWLINE_CRLF) |
#define IS_NOT_NULL | ( | p | ) | (((void*)(p)) != (void*)0) |
Definition at line 299 of file regint.h.
Referenced by onig_compile_ruby(), onig_foreach_name(), onig_free(), onig_free_body(), onig_is_code_in_cc(), onig_memsize(), onig_name_to_backref_number(), onig_node_free(), onig_node_list_add(), onig_node_str_clear(), onig_number_of_names(), onig_region_copy(), and onig_renumber_name_table().
#define IS_NOTBOL | ( | option | ) | ((option) & ONIG_OPTION_NOTBOL) |
#define IS_NOTBOS | ( | option | ) | ((option) & ONIG_OPTION_NOTBOS) |
#define IS_NOTEOL | ( | option | ) | ((option) & ONIG_OPTION_NOTEOL) |
#define IS_NOTEOS | ( | option | ) | ((option) & ONIG_OPTION_NOTEOS) |
#define IS_NULL | ( | p | ) | (((void*)(p)) == (void*)0) |
Definition at line 298 of file regint.h.
Referenced by onig_bbuf_init(), onig_is_code_in_cc(), onig_is_code_in_cc_len(), onig_memsize(), onig_new(), onig_node_free(), onig_node_list_add(), onig_reg_init(), onig_region_memsize(), onig_set_default_syntax(), and onigenc_with_ascii_strnicmp().
#define IS_POSIX_BRACKET_ALL_RANGE | ( | option | ) | ((option) & ONIG_OPTION_POSIX_BRACKET_ALL_RANGE) |
#define IS_REPEAT_INFINITE | ( | n | ) | ((n) == REPEAT_INFINITE) |
#define IS_SINGLELINE | ( | option | ) | ((option) & ONIG_OPTION_SINGLELINE) |
#define IS_WORD_BOUND_ALL_RANGE | ( | option | ) | ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE) |
#define MC_ANYCHAR_ANYTIME | ( | syn | ) | (syn)->meta_char_table.anychar_anytime |
#define MC_ONE_OR_MORE_TIME | ( | syn | ) | (syn)->meta_char_table.one_or_more_time |
#define MC_ZERO_OR_ONE_TIME | ( | syn | ) | (syn)->meta_char_table.zero_or_one_time |
#define NCCLASS_CLEAR_NOT | ( | nd | ) | NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT) |
#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) |
#define ONIG_LAST_CODE_POINT (~((OnigCodePoint )0)) |
#define ONIG_OPTIMIZE_EXACT_BM_NOT_REV 3 /* BM (applied to a multibyte string) */ |
#define ONIG_OPTIMIZE_EXACT_BM_NOT_REV_IC 7 /* BM (applied to a multibyte string) (ignore case) */ |
#define ONIG_OPTIMIZE_EXACT_IC 4 /* Slow Search (ignore case) */ |
#define onig_st_is_member st_is_member |
#define PLATFORM_GET_INC | ( | val, | |
p, | |||
type | |||
) |
#define PRIuPTR "lu" |
Definition at line 276 of file regint.h.
Referenced by onig_search_gpos().
#define PRIxPTR "lx" |
Definition at line 277 of file regint.h.
Referenced by onig_is_code_in_cc().
#define SINGLE_BYTE_SIZE (1 << BITS_PER_BYTE) |
Definition at line 413 of file regint.h.
Referenced by onig_is_code_in_cc_len().
#define SIZE_ABSADDR (int )sizeof(AbsAddrType) |
#define SIZE_BITSET (int )sizeof(BitSet) |
Definition at line 425 of file regint.h.
Referenced by onig_is_code_in_cc().
#define SIZE_CODE_POINT (int )sizeof(OnigCodePoint) |
#define SIZE_LENGTH (int )sizeof(LengthType) |
#define SIZE_MEMNUM (int )sizeof(MemNumType) |
Definition at line 679 of file regint.h.
Referenced by onig_is_code_in_cc().
#define SIZE_OP_ABSENT (SIZE_OPCODE + SIZE_RELADDR) |
#define SIZE_OP_ABSENT_END SIZE_OPCODE |
#define SIZE_OP_ANYCHAR_STAR SIZE_OPCODE |
#define SIZE_OP_ANYCHAR_STAR_PEEK_NEXT (SIZE_OPCODE + 1) |
#define SIZE_OP_CALL (SIZE_OPCODE + SIZE_ABSADDR) |
#define SIZE_OP_CONDITION (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR) |
#define SIZE_OP_FAIL SIZE_OPCODE |
#define SIZE_OP_FAIL_LOOK_BEHIND_NOT SIZE_OPCODE |
#define SIZE_OP_FAIL_POS SIZE_OPCODE |
#define SIZE_OP_JUMP (SIZE_OPCODE + SIZE_RELADDR) |
#define SIZE_OP_LOOK_BEHIND (SIZE_OPCODE + SIZE_LENGTH) |
#define SIZE_OP_MEMORY_END (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_MEMORY_END_PUSH (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_MEMORY_END_PUSH_REC (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_MEMORY_END_REC (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_MEMORY_START (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_MEMORY_START_PUSH (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_NULL_CHECK_END (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_NULL_CHECK_START (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_POP SIZE_OPCODE |
#define SIZE_OP_POP_POS SIZE_OPCODE |
#define SIZE_OP_POP_STOP_BT SIZE_OPCODE |
#define SIZE_OP_PUSH (SIZE_OPCODE + SIZE_RELADDR) |
#define SIZE_OP_PUSH_ABSENT_POS SIZE_OPCODE |
#define SIZE_OP_PUSH_IF_PEEK_NEXT (SIZE_OPCODE + SIZE_RELADDR + 1) |
#define SIZE_OP_PUSH_LOOK_BEHIND_NOT (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH) |
#define SIZE_OP_PUSH_OR_JUMP_EXACT1 (SIZE_OPCODE + SIZE_RELADDR + 1) |
#define SIZE_OP_PUSH_POS SIZE_OPCODE |
#define SIZE_OP_PUSH_POS_NOT (SIZE_OPCODE + SIZE_RELADDR) |
#define SIZE_OP_PUSH_STOP_BT SIZE_OPCODE |
#define SIZE_OP_REPEAT_INC (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_REPEAT_INC_NG (SIZE_OPCODE + SIZE_MEMNUM) |
#define SIZE_OP_RETURN SIZE_OPCODE |
#define SIZE_OP_SET_OPTION (SIZE_OPCODE + SIZE_OPTION) |
#define SIZE_OP_SET_OPTION_PUSH (SIZE_OPCODE + SIZE_OPTION) |
#define SIZE_OPTION (int )sizeof(OnigOptionType) |
Definition at line 682 of file regint.h.
Referenced by onig_is_code_in_cc().
#define SIZE_POINTER (int )sizeof(PointerType) |
#define SIZE_RELADDR (int )sizeof(RelAddrType) |
Definition at line 676 of file regint.h.
Referenced by 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 onig_is_code_in_cc().
#define st_copy onig_st_copy |
Definition at line 190 of file regint.h.
Referenced by rb_st_copy().
#define st_delete onig_st_delete |
Definition at line 182 of file regint.h.
Referenced by rb_free_generic_ivar(), rb_hash_delete_entry(), rb_mod_remove_cvar(), rb_obj_remove_instance_variable(), rb_str_free(), and rb_undefine_finalizer().
#define st_foreach onig_st_foreach |
Definition at line 186 of file regint.h.
Referenced by Init_String(), rb_econv_asciicompat_encoding(), rb_enc_foreach_name(), rb_execarg_extract_options(), rb_reset_coverages(), and rb_st_copy().
#define st_free_table onig_st_free_table |
Definition at line 188 of file regint.h.
Referenced by rb_free_generic_ivar(), and rb_iseq_build_from_ary().
#define st_init_numtable onig_st_init_numtable |
Definition at line 178 of file regint.h.
Referenced by Init_var_tables(), rb_iseq_build_from_ary(), rb_mod_const_at(), rb_obj_singleton_methods(), rb_singleton_class_attached(), and ruby_register_rollback_func_for_ensure().
#define st_init_numtable_with_size onig_st_init_numtable_with_size |
#define st_init_strtable onig_st_init_strtable |
Definition at line 180 of file regint.h.
Referenced by Init_vm_objects(), and rb_gc_unprotect_logging().
#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 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_vm_objects(), rb_hash_new_with_size(), and rb_init_identtable_with_size().
#define st_insert onig_st_insert |
Definition at line 184 of file regint.h.
Referenced by rb_gc_copy_finalizer(), rb_marshal_define_compat(), and ruby_register_rollback_func_for_ensure().
#define st_lookup onig_st_lookup |
Definition at line 185 of file regint.h.
Referenced by rb_autoload_str(), rb_class_path_cached(), rb_econv_asciicompat_encoding(), rb_gc_copy_finalizer(), rb_hash_aref(), rb_hash_has_key(), rb_hash_lookup2(), rb_ivar_defined(), rb_ivar_lookup(), rb_obj_remove_instance_variable(), 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(), and rsock_intern_udp_optname().
#define SYN_GNU_REGEX_BV |
#define SYN_GNU_REGEX_OP |
#define SYN_POSIX_COMMON_OP |
#define USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEAT /* /(?:()|())*\2/ */ |
#define USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE /* /\n$/ =~ "\n" */ |
#define USE_WORD_BEGIN_END /* "<": word-begin, ">": word-end */ |
#define XDIGITVAL | ( | enc, | |
code | |||
) |
#define xmemcpy memcpy |
Definition at line 202 of file regint.h.
Referenced by onig_strcpy().
#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 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.
int onig_is_code_in_cc | ( | OnigEncoding | enc, |
OnigCodePoint | code, | ||
CClassNode * | cc | ||
) |
Definition at line 6114 of file regcomp.c.
References 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.
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, | ||
... | |||
) |
hash_table_type* onig_st_init_strend_table_with_size | ( | st_index_t | size | ) |
Definition at line 406 of file regparse.c.
Referenced by 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 key.
Referenced by 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.
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, enclen, len, ONIG_ENCODING_ASCII, ONIGENC_IS_MBC_HEAD, ONIGENC_MBC_MINLEN, onigenc_str_bytelen_null(), UChar, and xvsnprintf.