|
#define | UNALIGNED_WORD_ACCESS 0 |
|
#define | USE_NAMED_GROUP |
|
#define | USE_SUBEXP_CALL |
|
#define | USE_PERL_SUBEXP_CALL |
|
#define | USE_CAPITAL_P_NAMED_GROUP |
|
#define | USE_BACKREF_WITH_LEVEL /* \k<name+n>, \k<name-n> */ |
|
#define | USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEAT /* /(?:()|())*\2/ */ |
|
#define | USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE /* /\n$/ =~ "\n" */ |
|
#define | USE_WARNING_REDUNDANT_NESTED_REPEAT_OPERATOR |
|
#define | USE_NO_INVALID_QUANTIFIER |
|
#define | USE_QTFR_PEEK_NEXT |
|
#define | USE_ST_LIBRARY |
|
#define | USE_SUNDAY_QUICK_SEARCH |
|
#define | INIT_MATCH_STACK_SIZE 160 |
|
#define | DEFAULT_MATCH_STACK_LIMIT_SIZE 0 /* unlimited */ |
|
#define | DEFAULT_PARSE_DEPTH_LIMIT 4096 |
|
#define | OPT_EXACT_MAXLEN 24 |
|
#define | ARG_UNUSED |
|
#define | USE_WORD_BEGIN_END /* "<": word-begin, ">": word-end */ |
|
#define | USE_CAPTURE_HISTORY |
|
#define | USE_VARIABLE_META_CHARS |
|
#define | USE_FIND_LONGEST_SEARCH_ALL_OF_RANGE |
|
#define | xmalloc malloc |
|
#define | xrealloc realloc |
|
#define | xcalloc calloc |
|
#define | xfree free |
|
#define | CHECK_INTERRUPT_IN_MATCH_AT |
|
#define | st_init_table onig_st_init_table |
|
#define | st_init_table_with_size onig_st_init_table_with_size |
|
#define | st_init_numtable onig_st_init_numtable |
|
#define | st_init_numtable_with_size onig_st_init_numtable_with_size |
|
#define | st_init_strtable onig_st_init_strtable |
|
#define | st_init_strtable_with_size onig_st_init_strtable_with_size |
|
#define | st_delete onig_st_delete |
|
#define | st_delete_safe onig_st_delete_safe |
|
#define | st_insert onig_st_insert |
|
#define | st_lookup onig_st_lookup |
|
#define | st_foreach onig_st_foreach |
|
#define | st_add_direct onig_st_add_direct |
|
#define | st_free_table onig_st_free_table |
|
#define | st_cleanup_safe onig_st_cleanup_safe |
|
#define | st_copy onig_st_copy |
|
#define | st_nothing_key_clone onig_st_nothing_key_clone |
|
#define | st_nothing_key_free onig_st_nothing_key_free |
|
#define | onig_st_is_member st_is_member |
|
#define | STATE_CHECK_STRING_THRESHOLD_LEN 7 |
|
#define | STATE_CHECK_BUFF_MAX_SIZE 0x4000 |
|
#define | xmemset memset |
|
#define | xmemcpy memcpy |
|
#define | xmemmove memmove |
|
#define | xalloca alloca |
|
#define | xvsnprintf vsnprintf |
|
#define | xsnprintf snprintf |
|
#define | xstrcat(dest, src, size) strcat(dest,src) |
|
#define | PRIdPTR "ld" |
|
#define | PRIuPTR "lu" |
|
#define | PRIxPTR "lx" |
|
#define | PRIdPTRDIFF PRIdPTR |
|
#define | MIN(a, b) (((a)>(b))?(b):(a)) |
|
#define | MAX(a, b) (((a)<(b))?(b):(a)) |
|
#define | IS_NULL(p) (((void*)(p)) == (void*)0) |
|
#define | IS_NOT_NULL(p) (((void*)(p)) != (void*)0) |
|
#define | CHECK_NULL_RETURN(p) if (IS_NULL(p)) return NULL |
|
#define | CHECK_NULL_RETURN_MEMERR(p) if (IS_NULL(p)) return ONIGERR_MEMORY |
|
#define | NULL_UCHARP ((UChar* )0) |
|
#define | ONIG_LAST_CODE_POINT (~((OnigCodePoint )0)) |
|
#define | PLATFORM_GET_INC(val, p, type) |
|
#define | WORD_ALIGNMENT_SIZE SIZEOF_LONG |
|
#define | GET_ALIGNMENT_PAD_SIZE(addr, pad_size) |
|
#define | ALIGNMENT_RIGHT(addr) |
|
#define | STACK_POP_LEVEL_FREE 0 |
|
#define | STACK_POP_LEVEL_MEM_START 1 |
|
#define | STACK_POP_LEVEL_ALL 2 |
|
#define | ONIG_OPTIMIZE_NONE 0 |
|
#define | ONIG_OPTIMIZE_EXACT 1 /* Slow Search */ |
|
#define | ONIG_OPTIMIZE_EXACT_BM 2 /* Boyer Moore Search */ |
|
#define | ONIG_OPTIMIZE_EXACT_BM_NOT_REV 3 /* BM (applied to a multibyte string) */ |
|
#define | ONIG_OPTIMIZE_EXACT_IC 4 /* Slow Search (ignore case) */ |
|
#define | ONIG_OPTIMIZE_MAP 5 /* char map */ |
|
#define | ONIG_OPTIMIZE_EXACT_BM_IC 6 /* BM (ignore case) */ |
|
#define | ONIG_OPTIMIZE_EXACT_BM_NOT_REV_IC 7 /* BM (applied to a multibyte string) (ignore case) */ |
|
#define | BIT_STATUS_BITS_NUM (sizeof(BitStatusType) * 8) |
|
#define | BIT_STATUS_CLEAR(stats) (stats) = 0 |
|
#define | BIT_STATUS_ON_ALL(stats) (stats) = ~((BitStatusType )0) |
|
#define | BIT_STATUS_AT(stats, n) ((n) < (int )BIT_STATUS_BITS_NUM ? ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1)) |
|
#define | BIT_STATUS_ON_AT(stats, n) |
|
#define | BIT_STATUS_ON_AT_SIMPLE(stats, n) |
|
#define | INT_MAX_LIMIT ((1UL << (SIZEOF_INT * 8 - 1)) - 1) |
|
#define | DIGITVAL(code) ((code) - '0') |
|
#define | ODIGITVAL(code) DIGITVAL(code) |
|
#define | XDIGITVAL(enc, code) |
|
#define | IS_SINGLELINE(option) ((option) & ONIG_OPTION_SINGLELINE) |
|
#define | IS_MULTILINE(option) ((option) & ONIG_OPTION_MULTILINE) |
|
#define | IS_IGNORECASE(option) ((option) & ONIG_OPTION_IGNORECASE) |
|
#define | IS_EXTEND(option) ((option) & ONIG_OPTION_EXTEND) |
|
#define | IS_FIND_LONGEST(option) ((option) & ONIG_OPTION_FIND_LONGEST) |
|
#define | IS_FIND_NOT_EMPTY(option) ((option) & ONIG_OPTION_FIND_NOT_EMPTY) |
|
#define | IS_FIND_CONDITION(option) |
|
#define | IS_NOTBOL(option) ((option) & ONIG_OPTION_NOTBOL) |
|
#define | IS_NOTEOL(option) ((option) & ONIG_OPTION_NOTEOL) |
|
#define | IS_NOTBOS(option) ((option) & ONIG_OPTION_NOTBOS) |
|
#define | IS_NOTEOS(option) ((option) & ONIG_OPTION_NOTEOS) |
|
#define | IS_ASCII_RANGE(option) ((option) & ONIG_OPTION_ASCII_RANGE) |
|
#define | IS_POSIX_BRACKET_ALL_RANGE(option) ((option) & ONIG_OPTION_POSIX_BRACKET_ALL_RANGE) |
|
#define | IS_WORD_BOUND_ALL_RANGE(option) ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE) |
|
#define | IS_NEWLINE_CRLF(option) ((option) & ONIG_OPTION_NEWLINE_CRLF) |
|
#define | IS_DYNAMIC_OPTION(option) 0 |
|
#define | DISABLE_CASE_FOLD_MULTI_CHAR(case_fold_flag) ((case_fold_flag) & ~INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) |
|
#define | REPEAT_INFINITE -1 |
|
#define | IS_REPEAT_INFINITE(n) ((n) == REPEAT_INFINITE) |
|
#define | BITS_PER_BYTE 8 |
|
#define | SINGLE_BYTE_SIZE (1 << BITS_PER_BYTE) |
|
#define | BITS_IN_ROOM ((int )sizeof(Bits) * BITS_PER_BYTE) |
|
#define | BITSET_SIZE (SINGLE_BYTE_SIZE / BITS_IN_ROOM) |
|
#define | SIZE_BITSET (int )sizeof(BitSet) |
|
#define | BITSET_CLEAR(bs) |
|
#define | BS_ROOM(bs, pos) (bs)[(int )(pos) / BITS_IN_ROOM] |
|
#define | BS_BIT(pos) (1U << ((int )(pos) % BITS_IN_ROOM)) |
|
#define | BITSET_AT(bs, pos) (BS_ROOM(bs,pos) & BS_BIT(pos)) |
|
#define | BITSET_SET_BIT(bs, pos) BS_ROOM(bs,pos) |= BS_BIT(pos) |
|
#define | BITSET_CLEAR_BIT(bs, pos) BS_ROOM(bs,pos) &= ~(BS_BIT(pos)) |
|
#define | BITSET_INVERT_BIT(bs, pos) BS_ROOM(bs,pos) ^= BS_BIT(pos) |
|
#define | BBUF_INIT(buf, size) onig_bbuf_init((BBuf* )(buf), (size)) |
|
#define | BBUF_SIZE_INC(buf, inc) |
|
#define | BBUF_EXPAND(buf, low) |
|
#define | BBUF_ENSURE_SIZE(buf, size) |
|
#define | BBUF_WRITE(buf, pos, bytes, n) |
|
#define | BBUF_WRITE1(buf, pos, byte) |
|
#define | BBUF_ADD(buf, bytes, n) BBUF_WRITE((buf),(buf)->used,(bytes),(n)) |
|
#define | BBUF_ADD1(buf, byte) BBUF_WRITE1((buf),(buf)->used,(byte)) |
|
#define | BBUF_GET_ADD_ADDRESS(buf) ((buf)->p + (buf)->used) |
|
#define | BBUF_GET_OFFSET_POS(buf) ((buf)->used) |
|
#define | BBUF_MOVE_RIGHT(buf, from, to, n) |
|
#define | BBUF_MOVE_LEFT(buf, from, to, n) |
|
#define | BBUF_MOVE_LEFT_REDUCE(buf, from, to) |
|
#define | BBUF_INSERT(buf, pos, bytes, n) |
|
#define | BBUF_GET_BYTE(buf, pos) (buf)->p[(pos)] |
|
#define | ANCHOR_BEGIN_BUF (1<<0) |
|
#define | ANCHOR_BEGIN_LINE (1<<1) |
|
#define | ANCHOR_BEGIN_POSITION (1<<2) |
|
#define | ANCHOR_END_BUF (1<<3) |
|
#define | ANCHOR_SEMI_END_BUF (1<<4) |
|
#define | ANCHOR_END_LINE (1<<5) |
|
#define | ANCHOR_WORD_BOUND (1<<6) |
|
#define | ANCHOR_NOT_WORD_BOUND (1<<7) |
|
#define | ANCHOR_WORD_BEGIN (1<<8) |
|
#define | ANCHOR_WORD_END (1<<9) |
|
#define | ANCHOR_PREC_READ (1<<10) |
|
#define | ANCHOR_PREC_READ_NOT (1<<11) |
|
#define | ANCHOR_LOOK_BEHIND (1<<12) |
|
#define | ANCHOR_LOOK_BEHIND_NOT (1<<13) |
|
#define | ANCHOR_ANYCHAR_STAR (1<<14) /* ".*" optimize info */ |
|
#define | ANCHOR_ANYCHAR_STAR_ML (1<<15) /* ".*" optimize info (multi-line) */ |
|
#define | ANCHOR_KEEP (1<<16) |
|
#define | SIZE_OPCODE 1 |
|
#define | SIZE_RELADDR (int )sizeof(RelAddrType) |
|
#define | SIZE_ABSADDR (int )sizeof(AbsAddrType) |
|
#define | SIZE_LENGTH (int )sizeof(LengthType) |
|
#define | SIZE_MEMNUM (int )sizeof(MemNumType) |
|
#define | SIZE_STATE_CHECK_NUM (int )sizeof(StateCheckNumType) |
|
#define | SIZE_REPEATNUM (int )sizeof(RepeatNumType) |
|
#define | SIZE_OPTION (int )sizeof(OnigOptionType) |
|
#define | SIZE_CODE_POINT (int )sizeof(OnigCodePoint) |
|
#define | SIZE_POINTER (int )sizeof(PointerType) |
|
#define | GET_RELADDR_INC(addr, p) PLATFORM_GET_INC(addr, p, RelAddrType) |
|
#define | GET_ABSADDR_INC(addr, p) PLATFORM_GET_INC(addr, p, AbsAddrType) |
|
#define | GET_LENGTH_INC(len, p) PLATFORM_GET_INC(len, p, LengthType) |
|
#define | GET_MEMNUM_INC(num, p) PLATFORM_GET_INC(num, p, MemNumType) |
|
#define | GET_REPEATNUM_INC(num, p) PLATFORM_GET_INC(num, p, RepeatNumType) |
|
#define | GET_OPTION_INC(option, p) PLATFORM_GET_INC(option, p, OnigOptionType) |
|
#define | GET_POINTER_INC(ptr, p) PLATFORM_GET_INC(ptr, p, PointerType) |
|
#define | GET_STATE_CHECK_NUM_INC(num, p) PLATFORM_GET_INC(num, p, StateCheckNumType) |
|
#define | GET_CODE_POINT(code, p) code = *((OnigCodePoint* )(p)) |
|
#define | GET_BYTE_INC(byte, p) |
|
#define | SIZE_OP_ANYCHAR_STAR SIZE_OPCODE |
|
#define | SIZE_OP_ANYCHAR_STAR_PEEK_NEXT (SIZE_OPCODE + 1) |
|
#define | SIZE_OP_JUMP (SIZE_OPCODE + SIZE_RELADDR) |
|
#define | SIZE_OP_PUSH (SIZE_OPCODE + SIZE_RELADDR) |
|
#define | SIZE_OP_POP SIZE_OPCODE |
|
#define | SIZE_OP_PUSH_OR_JUMP_EXACT1 (SIZE_OPCODE + SIZE_RELADDR + 1) |
|
#define | SIZE_OP_PUSH_IF_PEEK_NEXT (SIZE_OPCODE + SIZE_RELADDR + 1) |
|
#define | SIZE_OP_REPEAT_INC (SIZE_OPCODE + SIZE_MEMNUM) |
|
#define | SIZE_OP_REPEAT_INC_NG (SIZE_OPCODE + SIZE_MEMNUM) |
|
#define | SIZE_OP_PUSH_POS SIZE_OPCODE |
|
#define | SIZE_OP_PUSH_POS_NOT (SIZE_OPCODE + SIZE_RELADDR) |
|
#define | SIZE_OP_POP_POS SIZE_OPCODE |
|
#define | SIZE_OP_FAIL_POS SIZE_OPCODE |
|
#define | SIZE_OP_SET_OPTION (SIZE_OPCODE + SIZE_OPTION) |
|
#define | SIZE_OP_SET_OPTION_PUSH (SIZE_OPCODE + SIZE_OPTION) |
|
#define | SIZE_OP_FAIL SIZE_OPCODE |
|
#define | SIZE_OP_MEMORY_START (SIZE_OPCODE + SIZE_MEMNUM) |
|
#define | SIZE_OP_MEMORY_START_PUSH (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 (SIZE_OPCODE + SIZE_MEMNUM) |
|
#define | SIZE_OP_MEMORY_END_REC (SIZE_OPCODE + SIZE_MEMNUM) |
|
#define | SIZE_OP_PUSH_STOP_BT SIZE_OPCODE |
|
#define | SIZE_OP_POP_STOP_BT SIZE_OPCODE |
|
#define | SIZE_OP_NULL_CHECK_START (SIZE_OPCODE + SIZE_MEMNUM) |
|
#define | SIZE_OP_NULL_CHECK_END (SIZE_OPCODE + SIZE_MEMNUM) |
|
#define | SIZE_OP_LOOK_BEHIND (SIZE_OPCODE + SIZE_LENGTH) |
|
#define | SIZE_OP_PUSH_LOOK_BEHIND_NOT (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH) |
|
#define | SIZE_OP_FAIL_LOOK_BEHIND_NOT SIZE_OPCODE |
|
#define | SIZE_OP_CALL (SIZE_OPCODE + SIZE_ABSADDR) |
|
#define | SIZE_OP_RETURN SIZE_OPCODE |
|
#define | SIZE_OP_CONDITION (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR) |
|
#define | SIZE_OP_PUSH_ABSENT_POS SIZE_OPCODE |
|
#define | SIZE_OP_ABSENT (SIZE_OPCODE + SIZE_RELADDR) |
|
#define | SIZE_OP_ABSENT_END SIZE_OPCODE |
|
#define | MC_ESC(syn) (syn)->meta_char_table.esc |
|
#define | MC_ANYCHAR(syn) (syn)->meta_char_table.anychar |
|
#define | MC_ANYTIME(syn) (syn)->meta_char_table.anytime |
|
#define | MC_ZERO_OR_ONE_TIME(syn) (syn)->meta_char_table.zero_or_one_time |
|
#define | MC_ONE_OR_MORE_TIME(syn) (syn)->meta_char_table.one_or_more_time |
|
#define | MC_ANYCHAR_ANYTIME(syn) (syn)->meta_char_table.anychar_anytime |
|
#define | IS_MC_ESC_CODE(code, syn) |
|
#define | SYN_POSIX_COMMON_OP |
|
#define | SYN_GNU_REGEX_OP |
|
#define | SYN_GNU_REGEX_BV |
|
#define | NCCLASS_FLAGS(cc) ((cc)->flags) |
|
#define | NCCLASS_FLAG_SET(cc, flag) (NCCLASS_FLAGS(cc) |= (flag)) |
|
#define | NCCLASS_FLAG_CLEAR(cc, flag) (NCCLASS_FLAGS(cc) &= ~(flag)) |
|
#define | IS_NCCLASS_FLAG_ON(cc, flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0) |
|
#define | FLAG_NCCLASS_NOT (1<<0) |
|
#define | NCCLASS_SET_NOT(nd) NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT) |
|
#define | NCCLASS_CLEAR_NOT(nd) NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT) |
|
#define | IS_NCCLASS_NOT(nd) IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT) |
|
#define | IS_CODE_SB_WORD(enc, code) (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code)) |
|