Ruby
2.4.2p198(2017-09-14revision59899)
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | OnigCaseFoldCodeItem |
struct | OnigMetaCharTableType |
struct | OnigEncodingTypeST |
struct | OnigSyntaxType |
struct | OnigCaptureTreeNodeStruct |
struct | re_registers |
struct | OnigErrorInfo |
struct | OnigRepeatRange |
struct | re_pattern_buffer |
struct | OnigCompileInfo |
Typedefs | |
typedef unsigned char | OnigUChar |
typedef unsigned int | OnigCodePoint |
typedef unsigned int | OnigCtype |
typedef size_t | OnigDistance |
typedef ptrdiff_t | OnigPosition |
typedef unsigned int | OnigCaseFoldType |
typedef int(* | OnigApplyAllCaseFoldFunc) (OnigCodePoint from, OnigCodePoint *to, int to_len, void *arg) |
typedef struct OnigEncodingTypeST | OnigEncodingType |
typedef const OnigEncodingType * | OnigEncoding |
typedef unsigned int | OnigOptionType |
typedef struct OnigCaptureTreeNodeStruct | OnigCaptureTreeNode |
typedef struct re_registers | OnigRegion |
typedef void(* | OnigWarnFunc) (const char *s) |
typedef struct re_pattern_buffer | OnigRegexType |
typedef OnigRegexType * | OnigRegex |
typedef OnigRegexType | regex_t |
#define INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR (1<<30) /* better not change original value! */ |
#define ONIG_CHAR_TABLE_SIZE 256 |
Definition at line 749 of file onigmo.h.
Referenced by alt_merge_opt_map_info(), bm_search_ic(), clear_optimize_info(), onig_memsize(), set_bm_skip(), set_optimize_map_info(), and setup_tree().
#define onig_enc_len | ( | enc, | |
p, | |||
e | |||
) | ONIGENC_MBC_ENC_LEN(enc, p, e) |
#define ONIG_ENCODING_ASCII (&OnigEncodingASCII) |
Definition at line 225 of file onigmo.h.
Referenced by Init_Regexp(), onig_error_code_to_str(), onig_vsnprintf_with_pattern(), and propname2ctype().
#define ONIG_ENCODING_BIG5 (&OnigEncodingBIG5) |
#define ONIG_ENCODING_CP1250 ONIG_ENCODING_WINDOWS_1250 |
#define ONIG_ENCODING_CP1251 ONIG_ENCODING_WINDOWS_1251 |
#define ONIG_ENCODING_CP1252 ONIG_ENCODING_WINDOWS_1252 |
#define ONIG_ENCODING_CP1253 ONIG_ENCODING_WINDOWS_1253 |
#define ONIG_ENCODING_CP1254 ONIG_ENCODING_WINDOWS_1254 |
#define ONIG_ENCODING_CP1257 ONIG_ENCODING_WINDOWS_1257 |
#define ONIG_ENCODING_CP932 ONIG_ENCODING_WINDOWS_31J |
#define ONIG_ENCODING_EUC_CN (&OnigEncodingEUC_CN) |
#define ONIG_ENCODING_EUC_JP (&OnigEncodingEUC_JP) |
#define ONIG_ENCODING_EUC_KR (&OnigEncodingEUC_KR) |
#define ONIG_ENCODING_EUC_TW (&OnigEncodingEUC_TW) |
#define ONIG_ENCODING_GB18030 (&OnigEncodingGB18030) |
#define ONIG_ENCODING_ISO_8859_1 (&OnigEncodingISO_8859_1) |
#define ONIG_ENCODING_ISO_8859_10 (&OnigEncodingISO_8859_10) |
#define ONIG_ENCODING_ISO_8859_11 (&OnigEncodingISO_8859_11) |
#define ONIG_ENCODING_ISO_8859_13 (&OnigEncodingISO_8859_13) |
#define ONIG_ENCODING_ISO_8859_14 (&OnigEncodingISO_8859_14) |
#define ONIG_ENCODING_ISO_8859_15 (&OnigEncodingISO_8859_15) |
#define ONIG_ENCODING_ISO_8859_16 (&OnigEncodingISO_8859_16) |
#define ONIG_ENCODING_ISO_8859_2 (&OnigEncodingISO_8859_2) |
#define ONIG_ENCODING_ISO_8859_3 (&OnigEncodingISO_8859_3) |
#define ONIG_ENCODING_ISO_8859_4 (&OnigEncodingISO_8859_4) |
#define ONIG_ENCODING_ISO_8859_5 (&OnigEncodingISO_8859_5) |
#define ONIG_ENCODING_ISO_8859_6 (&OnigEncodingISO_8859_6) |
#define ONIG_ENCODING_ISO_8859_7 (&OnigEncodingISO_8859_7) |
#define ONIG_ENCODING_ISO_8859_8 (&OnigEncodingISO_8859_8) |
#define ONIG_ENCODING_ISO_8859_9 (&OnigEncodingISO_8859_9) |
#define ONIG_ENCODING_KOI8_R (&OnigEncodingKOI8_R) |
#define ONIG_ENCODING_KOI8_U (&OnigEncodingKOI8_U) |
#define ONIG_ENCODING_SHIFT_JIS (&OnigEncodingShift_JIS) |
#define ONIG_ENCODING_SJIS ONIG_ENCODING_SHIFT_JIS |
#define ONIG_ENCODING_UNDEF ((OnigEncoding )0) |
#define ONIG_ENCODING_UTF16_BE ONIG_ENCODING_UTF_16BE |
#define ONIG_ENCODING_UTF16_LE ONIG_ENCODING_UTF_16LE |
#define ONIG_ENCODING_UTF32_BE ONIG_ENCODING_UTF_32BE |
#define ONIG_ENCODING_UTF32_LE ONIG_ENCODING_UTF_32LE |
#define ONIG_ENCODING_UTF8 ONIG_ENCODING_UTF_8 |
#define ONIG_ENCODING_UTF_16BE (&OnigEncodingUTF_16BE) |
#define ONIG_ENCODING_UTF_16LE (&OnigEncodingUTF_16LE) |
#define ONIG_ENCODING_UTF_32BE (&OnigEncodingUTF_32BE) |
#define ONIG_ENCODING_UTF_32LE (&OnigEncodingUTF_32LE) |
#define ONIG_ENCODING_UTF_8 (&OnigEncodingUTF_8) |
#define ONIG_ENCODING_WINDOWS_1250 (&OnigEncodingWindows_1250) |
#define ONIG_ENCODING_WINDOWS_1251 (&OnigEncodingWindows_1251) |
#define ONIG_ENCODING_WINDOWS_1252 (&OnigEncodingWindows_1252) |
#define ONIG_ENCODING_WINDOWS_1253 (&OnigEncodingWindows_1253) |
#define ONIG_ENCODING_WINDOWS_1254 (&OnigEncodingWindows_1254) |
#define ONIG_ENCODING_WINDOWS_1257 (&OnigEncodingWindows_1257) |
#define ONIG_ENCODING_WINDOWS_31J (&OnigEncodingWindows_31J) |
#define ONIG_INEFFECTIVE_META_CHAR 0 |
Definition at line 619 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_INFINITE_DISTANCE ~((OnigDistance )0) |
Definition at line 85 of file onigmo.h.
Referenced by backward_search_range(), clear_optimize_info(), distance_add(), distance_multiply(), distance_value(), forward_search_range(), get_max_match_length(), onig_search_gpos(), optimize_node_left(), set_optimize_exact_info(), and set_optimize_map_info().
#define ONIG_IS_CAPTURE_HISTORY_GROUP | ( | r, | |
i | |||
) | ((i) <= ONIG_MAX_CAPTURE_HISTORY_GROUP && (r)->list && (r)->list[i]) |
Definition at line 476 of file onigmo.h.
Referenced by onig_compile_ruby(), onig_noname_group_capture_is_active(), parse_enclose(), setup_subexp_call(), and setup_tree().
#define ONIG_IS_PATTERN_ERROR | ( | ecode | ) | ((ecode) <= -100 && (ecode) > -1000) |
#define ONIG_MAX_BACKREF_NUM 1000 |
Definition at line 439 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_MAX_CAPTURE_GROUP_NUM 32767 |
Definition at line 438 of file onigmo.h.
Referenced by scan_env_add_mem_entry().
#define ONIG_MAX_CAPTURE_HISTORY_GROUP 31 |
Definition at line 700 of file onigmo.h.
Referenced by disable_noname_group_capture(), and onig_number_of_capture_histories().
#define ONIG_MAX_MULTI_BYTE_RANGES_NUM 10000 |
Definition at line 441 of file onigmo.h.
Referenced by add_code_range_to_buf0().
#define ONIG_MAX_REPEAT_NUM 100000 |
Definition at line 440 of file onigmo.h.
Referenced by fetch_range_quantifier().
#define ONIG_META_CHAR_ANYCHAR 1 |
Definition at line 613 of file onigmo.h.
Referenced by onig_set_meta_char().
#define ONIG_META_CHAR_ANYCHAR_ANYTIME 5 |
Definition at line 617 of file onigmo.h.
Referenced by onig_set_meta_char().
#define ONIG_META_CHAR_ANYTIME 2 |
Definition at line 614 of file onigmo.h.
Referenced by onig_set_meta_char().
#define ONIG_META_CHAR_ESCAPE 0 |
Definition at line 612 of file onigmo.h.
Referenced by onig_set_meta_char().
#define ONIG_META_CHAR_ONE_OR_MORE_TIME 4 |
Definition at line 616 of file onigmo.h.
Referenced by onig_set_meta_char().
#define ONIG_META_CHAR_ZERO_OR_ONE_TIME 3 |
Definition at line 615 of file onigmo.h.
Referenced by onig_set_meta_char().
#define ONIG_MISMATCH -1 |
Definition at line 625 of file onigmo.h.
Referenced by match_at(), onig_error_code_to_format(), onig_scan(), onig_search_gpos(), rb_reg_match_p(), and rb_reg_search0().
#define ONIG_NO_SUPPORT_CONFIG -2 |
Definition at line 626 of file onigmo.h.
Referenced by add_ctype_to_cc(), onig_error_code_to_format(), onig_name_to_backref_number(), and onigenc_not_support_get_ctype_code_range().
#define ONIG_NORMAL 0 |
Definition at line 624 of file onigmo.h.
Referenced by node_extended_grapheme_cluster(), and node_linebreak().
#define ONIG_NREGION 10 |
Definition at line 437 of file onigmo.h.
Referenced by onig_region_resize().
#define ONIG_NULL_WARN onig_null_warn |
#define ONIG_OPTION_ASCII_RANGE (ONIG_OPTION_NOTEOS << 1) |
Definition at line 467 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_OPTION_CAPTURE_GROUP (ONIG_OPTION_DONT_CAPTURE_GROUP << 1) |
Definition at line 460 of file onigmo.h.
Referenced by onig_compile_ruby(), onig_noname_group_capture_is_active(), onig_reg_init(), setup_subexp_call(), and setup_tree().
#define ONIG_OPTION_DEFAULT ONIG_OPTION_NONE |
Definition at line 447 of file onigmo.h.
Referenced by rb_reg_to_s().
#define ONIG_OPTION_DONT_CAPTURE_GROUP (ONIG_OPTION_NEGATE_SINGLELINE << 1) |
Definition at line 459 of file onigmo.h.
Referenced by onig_noname_group_capture_is_active(), onig_reg_init(), and parse_enclose().
#define ONIG_OPTION_DOTALL ONIG_OPTION_MULTILINE |
#define ONIG_OPTION_EXTEND (ONIG_OPTION_IGNORECASE << 1) |
Definition at line 452 of file onigmo.h.
Referenced by char_to_option(), Init_Regexp(), option_to_str(), parse_enclose(), and rb_reg_to_s().
#define ONIG_OPTION_FIND_LONGEST (ONIG_OPTION_SINGLELINE << 1) |
#define ONIG_OPTION_FIND_NOT_EMPTY (ONIG_OPTION_FIND_LONGEST << 1) |
#define ONIG_OPTION_IGNORECASE 1U |
Definition at line 451 of file onigmo.h.
Referenced by char_to_option(), compile_tree(), date__strptime_internal(), Init_Regexp(), node_extended_grapheme_cluster(), option_to_str(), parse_enclose(), rb_reg_casefold_p(), rb_reg_initialize_m(), and rb_reg_to_s().
#define ONIG_OPTION_MAXBIT ONIG_OPTION_NEWLINE_CRLF /* limit */ |
#define ONIG_OPTION_MULTILINE (ONIG_OPTION_EXTEND << 1) |
Definition at line 453 of file onigmo.h.
Referenced by char_to_option(), Init_Regexp(), node_extended_grapheme_cluster(), option_to_str(), parse_enclose(), and rb_reg_to_s().
#define ONIG_OPTION_NEGATE_SINGLELINE (ONIG_OPTION_FIND_NOT_EMPTY << 1) |
Definition at line 458 of file onigmo.h.
Referenced by onig_reg_init().
#define ONIG_OPTION_NEWLINE_CRLF (ONIG_OPTION_WORD_BOUND_ALL_RANGE << 1) |
#define ONIG_OPTION_NONE 0U |
Definition at line 450 of file onigmo.h.
Referenced by rb_reg_match_p(), rb_reg_search0(), and strscan_do_scan().
#define ONIG_OPTION_NOTBOL (ONIG_OPTION_CAPTURE_GROUP << 1) |
#define ONIG_OPTION_NOTBOS (ONIG_OPTION_NOTEOL << 1) |
#define ONIG_OPTION_NOTEOL (ONIG_OPTION_NOTBOL << 1) |
#define ONIG_OPTION_NOTEOS (ONIG_OPTION_NOTBOS << 1) |
#define ONIG_OPTION_POSIX_BRACKET_ALL_RANGE (ONIG_OPTION_ASCII_RANGE << 1) |
Definition at line 468 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_OPTION_SINGLELINE (ONIG_OPTION_MULTILINE << 1) |
Definition at line 455 of file onigmo.h.
Referenced by onig_reg_init(), and parse_enclose().
#define ONIG_OPTION_WORD_BOUND_ALL_RANGE (ONIG_OPTION_POSIX_BRACKET_ALL_RANGE << 1) |
Definition at line 469 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_REGION_NOTPOS -1 |
Definition at line 730 of file onigmo.h.
Referenced by is_mbc_newline_ex(), match_at(), onig_name_to_backref_number(), and onig_region_clear().
#define ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC (1U<<23) /* [0-9-a]=[0-9\-a] */ |
Definition at line 605 of file onigmo.h.
Referenced by parse_char_class().
#define ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC (1U<<22) |
Definition at line 604 of file onigmo.h.
Referenced by add_code_range0(), and next_state_val().
#define ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV (1U<<4) /* {,n} => {0,n} */ |
Definition at line 592 of file onigmo.h.
Referenced by fetch_range_quantifier().
#define ONIG_SYN_ALLOW_INVALID_INTERVAL (1U<<3) /* {??? */ |
Definition at line 591 of file onigmo.h.
Referenced by fetch_range_quantifier().
#define ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME (1U<<8) /* (?<x>)(?<x>) */ |
Definition at line 596 of file onigmo.h.
Referenced by name_add().
#define ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME_CALL (1U<<10) /* (?<x>)(?<x>)(?&x) */ |
Definition at line 598 of file onigmo.h.
Referenced by setup_subexp_call().
#define ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP (1U<<2) /* ...)... */ |
Definition at line 590 of file onigmo.h.
Referenced by parse_exp().
#define ONIG_SYN_BACKSLASH_ESCAPE_IN_CC (1U<<21) /* [..\w..] etc.. */ |
Definition at line 603 of file onigmo.h.
Referenced by CC_ESC_WARN(), and fetch_token_in_cc().
#define ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP (1U<<7) /* see doc/RE */ |
Definition at line 595 of file onigmo.h.
Referenced by onig_compile_ruby(), onig_noname_group_capture_is_active(), setup_subexp_call(), and setup_tree().
#define ONIG_SYN_CONTEXT_INDEP_ANCHORS (1U<<31) /* not implemented */ |
#define ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS (1U<<0) /* ?, *, +, {n,m} */ |
Definition at line 588 of file onigmo.h.
Referenced by parse_exp().
#define ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS (1U<<1) /* error or ignore */ |
Definition at line 589 of file onigmo.h.
Referenced by parse_exp().
#define ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND (1U<<6) /* (?<=a|bc) */ |
Definition at line 594 of file onigmo.h.
Referenced by setup_look_behind().
#define ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY (1U<<9) /* a{n}?=(?:a{n})? */ |
Definition at line 597 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC (1U<<20) /* [^...] */ |
Definition at line 602 of file onigmo.h.
Referenced by parse_char_class().
#define ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY (1U<<10) /* (?@..),(?@<x>..) */ |
Definition at line 562 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_SYN_OP2_CCLASS_SET_OP (1U<<6) /* [...&&..[..]..] */ |
Definition at line 558 of file onigmo.h.
Referenced by fetch_token_in_cc().
#define ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL (1U<<11) /* \C-x */ |
Definition at line 563 of file onigmo.h.
Referenced by fetch_escaped_value().
#define ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP (1U<<25) /* \K */ |
Definition at line 577 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META (1U<<12) /* \M-x */ |
Definition at line 564 of file onigmo.h.
Referenced by fetch_escaped_value().
#define ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE (1U<<0) /* \Q...\E */ |
Definition at line 552 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_CAPITAL_R_LINEBREAK (1U<<21) /* \R as (?>\x0D\x0A|[\x0A-\x0D\x{85}\x{2028}\x{2029}]) */ |
Definition at line 573 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTER (1U<<22) /* \X */ |
Definition at line 574 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_G_BRACE_BACKREF (1U<<26) /* \g{name}, \g{n} */ |
Definition at line 578 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_G_SUBEXP_CALL (1U<<9) /* \g<name>, \g<n> */ |
Definition at line 561 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR (1U<<15) /* \`, \' */ |
Definition at line 567 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_H_HORIZONTAL_WHITESPACE (1U<<24) /* \h, \H -- Perl */ /* NOTIMPL */ |
#define ONIG_SYN_OP2_ESC_H_XDIGIT (1U<<19) /* \h, \H */ |
Definition at line 571 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP2_ESC_K_NAMED_BACKREF (1U<<8) /* \k<name> */ |
Definition at line 560 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY (1U<<16) /* \p{...}, \P{...} */ |
Definition at line 568 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT (1U<<17) /* \p{^..}, \P{^..} */ |
Definition at line 569 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP2_ESC_U_HEX4 (1U<<14) /* \uHHHH */ |
Definition at line 566 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP2_ESC_V_VERTICAL_WHITESPACE (1U<<23) /* \v, \V -- Perl */ /* NOTIMPL */ |
#define ONIG_SYN_OP2_ESC_V_VTAB (1U<<13) /* \v as VTAB */ |
Definition at line 565 of file onigmo.h.
Referenced by conv_backslash_value().
#define ONIG_SYN_OP2_OPTION_PERL (1U<<2) /* (?imsxadlu), (?-imsx), (?^imsxalu) */ |
Definition at line 554 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_SYN_OP2_OPTION_RUBY (1U<<3) /* (?imxadu), (?-imx) */ |
Definition at line 555 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL (1U<<5) /* {n,m}+ */ |
Definition at line 557 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT (1U<<4) /* ?+,*+,++ */ |
Definition at line 556 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_QMARK_CAPITAL_P_NAMED_GROUP (1U<<30) /* (?P<name>...), (?P=name), (?P>name) -- Python/PCRE */ |
Definition at line 582 of file onigmo.h.
Referenced by fetch_token(), and parse_enclose().
#define ONIG_SYN_OP2_QMARK_GROUP_EFFECT (1U<<1) /* (?...) */ |
Definition at line 553 of file onigmo.h.
Referenced by fetch_token(), and parse_enclose().
#define ONIG_SYN_OP2_QMARK_LPAREN_CONDITION (1U<<29) /* (?(cond)yes...|no...) */ |
Definition at line 581 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP (1U<<7) /* (?<name>...) */ |
Definition at line 559 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_SYN_OP2_QMARK_SUBEXP_CALL (1U<<27) /* (?&name), (?n), (?R), (?0) */ |
Definition at line 579 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP2_QMARK_TILDE_ABSENT (1U<<31) /* (?~...) */ |
Definition at line 583 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_SYN_OP2_QMARK_VBAR_BRANCH_RESET (1U<<28) /* (?|...) */ /* NOTIMPL */ |
Definition at line 580 of file onigmo.h.
Referenced by parse_enclose().
#define ONIG_SYN_OP_ASTERISK_ZERO_INF (1U<<2) /* * */ |
Definition at line 521 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_BRACE_INTERVAL (1U<<8) /* {lower,upper} */ |
Definition at line 527 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_BRACKET_CC (1U<<17) /* [...] */ |
Definition at line 536 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_DECIMAL_BACKREF (1U<<16) /* \num */ |
Definition at line 535 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_DOT_ANYCHAR (1U<<1) /* . */ |
Definition at line 520 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_ASTERISK_ZERO_INF (1U<<3) |
Definition at line 522 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR (1U<<14) /* \A, \Z, \z */ |
Definition at line 533 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_B_WORD_BOUND (1U<<20) /* \b, \B */ |
Definition at line 539 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_BRACE_INTERVAL (1U<<9) /* \{lower,upper\} */ |
Definition at line 528 of file onigmo.h.
Referenced by fetch_range_quantifier(), and fetch_token().
#define ONIG_SYN_OP_ESC_C_CONTROL (1U<<27) /* \cx */ |
Definition at line 546 of file onigmo.h.
Referenced by fetch_escaped_value().
#define ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR (1U<<15) /* \G */ |
Definition at line 534 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_CONTROL_CHARS (1U<<26) /* \n,\r,\t,\a ... */ |
Definition at line 545 of file onigmo.h.
Referenced by conv_backslash_value().
#define ONIG_SYN_OP_ESC_D_DIGIT (1U<<22) /* \d, \D */ |
Definition at line 541 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_LPAREN_SUBEXP (1U<<13) /* \(...\) */ |
Definition at line 532 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END (1U<<19) /* <. > */ |
Definition at line 538 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_O_BRACE_OCTAL (1U<<31) /* \o{OOO} */ |
Definition at line 550 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP_ESC_OCTAL3 (1U<<28) /* \OOO */ |
Definition at line 547 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP_ESC_PLUS_ONE_INF (1U<<5) |
Definition at line 524 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_QMARK_ZERO_ONE (1U<<7) |
Definition at line 526 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_S_WHITE_SPACE (1U<<21) /* \s, \S */ |
Definition at line 540 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_VBAR_ALT (1U<<11) /* \| */ |
Definition at line 530 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_W_WORD (1U<<18) /* \w, \W */ |
Definition at line 537 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_ESC_X_BRACE_HEX8 (1U<<30) /* \x{7HHHHHHH} */ |
Definition at line 549 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP_ESC_X_HEX2 (1U<<29) /* \xHH */ |
Definition at line 548 of file onigmo.h.
Referenced by fetch_token(), and fetch_token_in_cc().
#define ONIG_SYN_OP_LINE_ANCHOR (1U<<23) /* ^, $ */ |
Definition at line 542 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_LPAREN_SUBEXP (1U<<12) /* (...) */ |
Definition at line 531 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_PLUS_ONE_INF (1U<<4) /* + */ |
Definition at line 523 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_POSIX_BRACKET (1U<<24) /* [:xxxx:] */ |
Definition at line 543 of file onigmo.h.
Referenced by fetch_token_in_cc().
#define ONIG_SYN_OP_QMARK_NON_GREEDY (1U<<25) /* ??,*?,+?,{n,m}? */ |
Definition at line 544 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_QMARK_ZERO_ONE (1U<<6) /* ? */ |
Definition at line 525 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_VARIABLE_META_CHARACTERS (1U<<0) |
Definition at line 519 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_OP_VBAR_ALT (1U<<10) /* | */ |
Definition at line 529 of file onigmo.h.
Referenced by fetch_token().
#define ONIG_SYN_STRICT_CHECK_BACKREF (1U<<5) /* /(\1)/,/\1()/ ..*/ |
Definition at line 593 of file onigmo.h.
Referenced by fetch_named_backref_token(), fetch_token(), and parse_enclose().
#define ONIG_SYN_USE_LEFT_MOST_NAMED_GROUP (1U<<11) /* (?<x>)(?<x>)\k<x> */ |
Definition at line 599 of file onigmo.h.
Referenced by fetch_named_backref_token(), and parse_enclose().
#define ONIG_SYN_WARN_CC_DUP (1U<<26) /* [aa] */ |
Definition at line 609 of file onigmo.h.
Referenced by CC_DUP_WARN().
#define ONIG_SYN_WARN_CC_OP_NOT_ESCAPED (1U<<24) /* [,-,] */ |
Definition at line 607 of file onigmo.h.
Referenced by CC_ESC_WARN(), and CLOSE_BRACKET_WITHOUT_ESC_WARN().
#define ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT (1U<<25) /* (?:a*)+ */ |
Definition at line 608 of file onigmo.h.
Referenced by set_quantifier().
#define ONIG_SYNTAX_ASIS (&OnigSyntaxASIS) |
#define ONIG_SYNTAX_DEFAULT OnigDefaultSyntax |
#define ONIG_SYNTAX_EMACS (&OnigSyntaxEmacs) |
#define ONIG_SYNTAX_GNU_REGEX (&OnigSyntaxGnuRegex) |
#define ONIG_SYNTAX_GREP (&OnigSyntaxGrep) |
#define ONIG_SYNTAX_JAVA (&OnigSyntaxJava) |
#define ONIG_SYNTAX_PERL (&OnigSyntaxPerl) |
#define ONIG_SYNTAX_PERL58 (&OnigSyntaxPerl58) |
#define ONIG_SYNTAX_PERL58_NG (&OnigSyntaxPerl58_NG) |
#define ONIG_SYNTAX_POSIX_BASIC (&OnigSyntaxPosixBasic) |
#define ONIG_SYNTAX_POSIX_EXTENDED (&OnigSyntaxPosixExtended) |
#define ONIG_SYNTAX_PYTHON (&OnigSyntaxPython) |
#define ONIG_SYNTAX_RUBY (&OnigSyntaxRuby) |
Definition at line 511 of file onigmo.h.
Referenced by onig_set_default_syntax().
#define ONIG_TRAVERSE_CALLBACK_AT_BOTH ( ONIG_TRAVERSE_CALLBACK_AT_FIRST | ONIG_TRAVERSE_CALLBACK_AT_LAST ) |
#define OnigCaseFoldFlags | ( | n | ) | ((n)&~OnigCodePointMask) |
#define OnigCodePointCount | ( | n | ) | ((n)&OnigCodePointMask) |
#define OnigCodePointMask ((1<<OnigCodePointMaskWidth)-1) |
#define ONIGENC_APPLY_ALL_CASE_FOLD | ( | enc, | |
case_fold_flag, | |||
f, | |||
arg | |||
) | (enc)->apply_all_case_fold(case_fold_flag,f,arg,enc) |
Definition at line 338 of file onigmo.h.
Referenced by cclass_case_fold().
Definition at line 125 of file onigmo.h.
Referenced by check_case_options(), rb_str_capitalize_bang(), rb_str_downcase_bang(), rb_str_swapcase_bang(), and rb_str_upcase_bang().
#define ONIGENC_CASE_DOWN_SPECIAL (1<<17) /* has special downcase mapping */ |
#define ONIGENC_CASE_DOWNCASE (1<<14) /* has/needs lowercase mapping */ |
Definition at line 114 of file onigmo.h.
Referenced by check_case_options(), onigenc_ascii_only_case_map(), onigenc_single_byte_ascii_only_case_map(), rb_str_downcase_bang(), and rb_str_swapcase_bang().
#define ONIGENC_CASE_FOLD (1<<19) /* has/needs case folding */ |
Definition at line 120 of file onigmo.h.
Referenced by check_case_options(), onigenc_ascii_only_case_map(), and onigenc_single_byte_ascii_only_case_map().
#define ONIGENC_CASE_FOLD_DEFAULT OnigDefaultCaseFoldFlag |
Definition at line 131 of file onigmo.h.
Referenced by onig_new(), onig_new_with_source(), and onig_new_without_alloc().
#define ONIGENC_CASE_FOLD_LITHUANIAN (1<<21) /* needs Lithuanian-specific mapping */ |
Definition at line 124 of file onigmo.h.
Referenced by check_case_options().
#define ONIGENC_CASE_FOLD_MIN INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR |
#define ONIGENC_CASE_FOLD_TURKISH_AZERI (1<<20) /* needs mapping specific to Turkic languages; better not change original value! */ |
Definition at line 122 of file onigmo.h.
Referenced by check_case_options(), rb_str_downcase_bang(), and rb_str_upcase_bang().
#define ONIGENC_CASE_IS_TITLECASE (1<<23) /* character itself is already titlecase */ |
#define ONIGENC_CASE_MODIFIED (1<<18) /* data has been modified */ |
Definition at line 119 of file onigmo.h.
Referenced by onigenc_ascii_only_case_map(), onigenc_single_byte_ascii_only_case_map(), rb_str_capitalize_bang(), rb_str_downcase_bang(), rb_str_swapcase_bang(), and rb_str_upcase_bang().
#define ONIGENC_CASE_SPECIAL_OFFSET 3 /* offset in bits from ONIGENC_CASE to ONIGENC_CASE_SPECIAL */ |
#define ONIGENC_CASE_TITLECASE (1<<15) /* has/needs (special) titlecase mapping */ |
Definition at line 115 of file onigmo.h.
Referenced by onigenc_ascii_only_case_map(), onigenc_single_byte_ascii_only_case_map(), and rb_str_capitalize_bang().
#define ONIGENC_CASE_UP_SPECIAL (1<<16) /* has special upcase mapping */ |
#define ONIGENC_CASE_UPCASE (1<<13) /* has/needs uppercase mapping */ |
Definition at line 113 of file onigmo.h.
Referenced by check_case_options(), onigenc_ascii_only_case_map(), onigenc_single_byte_ascii_only_case_map(), rb_str_capitalize_bang(), rb_str_swapcase_bang(), and rb_str_upcase_bang().
Definition at line 140 of file onigmo.h.
Referenced by add_ctype_to_cc_by_range().
Definition at line 139 of file onigmo.h.
Referenced by add_ctype_to_cc_by_range().
Definition at line 141 of file onigmo.h.
Referenced by add_ctype_to_cc_by_range().
Definition at line 368 of file onigmo.h.
Referenced by add_char_amb_opt_map_info(), expand_case_fold_string_alt(), i_apply_case_fold(), node_extended_grapheme_cluster(), node_linebreak(), node_str_cat_codepoint(), onigenc_ascii_only_case_map(), set_bm_skip(), and setup_tree().
#define ONIGENC_CODE_TO_MBC_MAXLEN 7 |
Definition at line 289 of file onigmo.h.
Referenced by add_char_amb_opt_map_info(), enc_succ_alnum_char(), expand_case_fold_string_alt(), i_apply_case_fold(), node_extended_grapheme_cluster(), node_linebreak(), node_str_cat_codepoint(), parse_char_class(), and str_succ().
#define ONIGENC_CODE_TO_MBCLEN | ( | enc, | |
code | |||
) | (enc)->code_to_mbclen(code,enc) |
Definition at line 367 of file onigmo.h.
Referenced by add_ctype_to_cc(), onig_is_code_in_cc(), onigenc_mb2_is_code_ctype(), onigenc_mb4_is_code_ctype(), parse_char_class(), rb_enc_code_to_mbclen(), rb_enc_codelen(), and trnext().
#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND | ( | n | ) | (n) |
Definition at line 345 of file onigmo.h.
Referenced by rb_io_each_codepoint().
#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE | ( | n | ) | (-1-(n)) |
Definition at line 352 of file onigmo.h.
Referenced by rb_enc_precise_mbclen().
#define ONIGENC_CTYPE_ALNUM 13 /* alpha || digit */ |
Definition at line 307 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_ALPHA 1 |
Definition at line 295 of file onigmo.h.
Referenced by add_ctype_to_cc(), enc_succ_alnum_char(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_ASCII 14 |
Definition at line 308 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), parse_char_class(), parse_char_property(), and parse_posix_bracket().
#define ONIGENC_CTYPE_BLANK 2 |
Definition at line 296 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_CNTRL 3 |
Definition at line 297 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_DIGIT 4 |
Definition at line 298 of file onigmo.h.
Referenced by add_ctype_to_cc(), enc_succ_alnum_char(), fetch_token(), fetch_token_in_cc(), onigenc_minimum_property_name_to_ctype(), parse_exp(), and parse_posix_bracket().
#define ONIGENC_CTYPE_GRAPH 5 |
Definition at line 299 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_LOWER 6 |
Definition at line 300 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_PRINT 7 |
Definition at line 301 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_PUNCT 8 |
Definition at line 302 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_SPACE 9 |
Definition at line 303 of file onigmo.h.
Referenced by add_ctype_to_cc(), fetch_token(), fetch_token_in_cc(), onigenc_minimum_property_name_to_ctype(), parse_exp(), and parse_posix_bracket().
#define ONIGENC_CTYPE_UPPER 10 |
Definition at line 304 of file onigmo.h.
Referenced by add_ctype_to_cc(), onigenc_minimum_property_name_to_ctype(), and parse_posix_bracket().
#define ONIGENC_CTYPE_WORD 12 |
Definition at line 306 of file onigmo.h.
Referenced by add_ctype_to_cc(), compile_tree(), fetch_token(), fetch_token_in_cc(), is_not_included(), onig_is_code_in_cc(), onigenc_minimum_property_name_to_ctype(), optimize_node_left(), parse_char_class(), parse_exp(), and parse_posix_bracket().
#define ONIGENC_CTYPE_XDIGIT 11 |
Definition at line 305 of file onigmo.h.
Referenced by add_ctype_to_cc(), fetch_token(), fetch_token_in_cc(), onigenc_minimum_property_name_to_ctype(), parse_exp(), and parse_posix_bracket().
#define ONIGENC_FLAG_UNICODE 1U |
Definition at line 313 of file onigmo.h.
Referenced by rb_encdb_set_unicode().
#define ONIGENC_GET_CASE_FOLD_CODES_BY_STR | ( | enc, | |
case_fold_flag, | |||
p, | |||
end, | |||
acs | |||
) | (enc)->get_case_fold_codes_by_str(case_fold_flag,p,end,acs,enc) |
Definition at line 340 of file onigmo.h.
Referenced by add_char_amb_opt_map_info(), expand_case_fold_string(), set_bm_skip(), and setup_tree().
#define ONIGENC_GET_CASE_FOLD_CODES_MAX_NUM 13 |
Definition at line 135 of file onigmo.h.
Referenced by add_char_amb_opt_map_info(), expand_case_fold_string(), set_bm_skip(), and setup_tree().
#define ONIGENC_GET_CTYPE_CODE_RANGE | ( | enc, | |
ctype, | |||
sbout, | |||
ranges | |||
) | (enc)->get_ctype_code_range(ctype,sbout,ranges,enc) |
Definition at line 403 of file onigmo.h.
Referenced by add_ctype_to_cc().
#define ONIGENC_IS_ALLOWED_REVERSE_MATCH | ( | enc, | |
s, | |||
end | |||
) | (enc)->is_allowed_reverse_match(s,end,enc) |
Definition at line 334 of file onigmo.h.
Referenced by rb_str_count(), and set_optimize_exact_info().
#define ONIGENC_IS_CODE_ALNUM | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_ALNUM) |
#define ONIGENC_IS_CODE_ALPHA | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_ALPHA) |
#define ONIGENC_IS_CODE_BLANK | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_BLANK) |
#define ONIGENC_IS_CODE_CNTRL | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_CNTRL) |
#define ONIGENC_IS_CODE_CTYPE | ( | enc, | |
code, | |||
ctype | |||
) | (enc)->is_code_ctype(code,ctype,enc) |
Definition at line 372 of file onigmo.h.
Referenced by add_ctype_to_cc().
#define ONIGENC_IS_CODE_DIGIT | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_DIGIT) |
Definition at line 396 of file onigmo.h.
Referenced by fetch_name(), fetch_name_with_level(), fetch_token(), fetch_token_in_cc(), onig_scan_unsigned_number(), parse_enclose(), and scan_unsigned_octal_number().
#define ONIGENC_IS_CODE_GRAPH | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_GRAPH) |
#define ONIGENC_IS_CODE_LOWER | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_LOWER) |
#define ONIGENC_IS_CODE_NEWLINE | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_NEWLINE) |
Definition at line 374 of file onigmo.h.
Referenced by fetch_token(), and parse_char_class().
#define ONIGENC_IS_CODE_PRINT | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_PRINT) |
Definition at line 378 of file onigmo.h.
Referenced by clear_optimize_info(), and onig_vsnprintf_with_pattern().
#define ONIGENC_IS_CODE_PUNCT | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_PUNCT) |
#define ONIGENC_IS_CODE_SPACE | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_SPACE) |
Definition at line 392 of file onigmo.h.
Referenced by onig_vsnprintf_with_pattern().
#define ONIGENC_IS_CODE_UPPER | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_UPPER) |
#define ONIGENC_IS_CODE_WORD | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD) |
Definition at line 400 of file onigmo.h.
Referenced by add_ctype_to_cc(), fetch_name(), is_not_included(), and optimize_node_left().
#define ONIGENC_IS_CODE_XDIGIT | ( | enc, | |
code | |||
) | ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_XDIGIT) |
Definition at line 398 of file onigmo.h.
Referenced by fetch_token(), fetch_token_in_cc(), and scan_unsigned_hexadecimal_number().
#define ONIGENC_IS_MBC_ASCII | ( | p | ) | (*(p) < 128) |
Definition at line 320 of file onigmo.h.
Referenced by onigenc_mbn_mbc_case_fold().
#define ONIGENC_IS_MBC_ASCII_WORD | ( | enc, | |
s, | |||
end | |||
) |
Definition at line 324 of file onigmo.h.
Referenced by is_not_included().
#define ONIGENC_IS_MBC_HEAD | ( | enc, | |
p, | |||
e | |||
) | (ONIGENC_MBC_ENC_LEN(enc,p,e) != 1) |
Definition at line 319 of file onigmo.h.
Referenced by match_at(), and onig_vsnprintf_with_pattern().
#define ONIGENC_IS_MBC_NEWLINE | ( | enc, | |
p, | |||
end | |||
) | (enc)->is_mbc_newline((p),(end),enc) |
Definition at line 365 of file onigmo.h.
Referenced by is_mbc_newline_ex(), match_at(), and onig_search_gpos().
#define ONIGENC_IS_MBC_WORD | ( | enc, | |
s, | |||
end | |||
) | ONIGENC_IS_CODE_WORD(enc,ONIGENC_MBC_TO_CODE(enc,s,end)) |
Definition at line 322 of file onigmo.h.
Referenced by is_not_included(), and match_at().
#define ONIGENC_IS_SINGLEBYTE | ( | enc | ) | (ONIGENC_MBC_MAXLEN(enc) == 1) |
Definition at line 318 of file onigmo.h.
Referenced by and_cclass(), forward_search_range(), or_cclass(), parse_char_class(), and set_quantifier().
#define ONIGENC_IS_UNDEF | ( | enc | ) | ((enc) == ONIG_ENCODING_UNDEF) |
Definition at line 317 of file onigmo.h.
Referenced by onig_reg_init().
#define ONIGENC_IS_UNICODE | ( | enc | ) | ((enc)->flags & ONIGENC_FLAG_UNICODE) |
Definition at line 327 of file onigmo.h.
Referenced by node_extended_grapheme_cluster(), node_linebreak(), and rb_enc_unicode_p().
#define ONIGENC_LEFT_ADJUST_CHAR_HEAD | ( | enc, | |
start, | |||
s, | |||
end | |||
) | (enc)->left_adjust_char_head(start, s, end, enc) |
Definition at line 336 of file onigmo.h.
Referenced by bm_search_ic(), onig_search_gpos(), onigenc_get_left_adjust_char_head(), onigenc_get_prev_char_head(), onigenc_get_right_adjust_char_head(), onigenc_get_right_adjust_char_head_with_prev(), onigenc_step_back(), rb_reg_adjust_startpos(), slow_search_backward(), and slow_search_backward_ic().
#define ONIGENC_MAX_STD_CTYPE ONIGENC_CTYPE_ASCII |
Definition at line 309 of file onigmo.h.
Referenced by onigenc_with_ascii_strnicmp().
#define ONIGENC_MBC_CASE_FOLD | ( | enc, | |
flag, | |||
pp, | |||
end, | |||
buf | |||
) | (enc)->mbc_case_fold(flag,(const OnigUChar** )pp,end,buf,enc) |
Definition at line 332 of file onigmo.h.
Referenced by match_at(), str_lower_case_match(), string_cmp_ic(), and update_string_node_case_fold().
#define ONIGENC_MBC_CASE_FOLD_MAXLEN 18 |
Definition at line 290 of file onigmo.h.
Referenced by match_at(), set_bm_skip(), setup_tree(), str_lower_case_match(), string_cmp_ic(), and update_string_node_case_fold().
#define ONIGENC_MBC_ENC_LEN | ( | enc, | |
p, | |||
e | |||
) | onigenc_mbclen_approximate(p,e,enc) |
Definition at line 361 of file onigmo.h.
Referenced by onigenc_step(), onigenc_str_bytelen_null(), onigenc_strlen(), onigenc_strlen_null(), and rb_enc_fast_mbclen().
#define ONIGENC_MBC_MAXLEN | ( | enc | ) | ((enc)->max_enc_len) |
Definition at line 362 of file onigmo.h.
Referenced by clear_optimize_info(), is_not_included(), onigenc_str_bytelen_null(), onigenc_strlen_null(), parse_char_class(), and rb_reg_adjust_startpos().
#define ONIGENC_MBC_MAXLEN_DIST | ( | enc | ) | ONIGENC_MBC_MAXLEN(enc) |
Definition at line 363 of file onigmo.h.
Referenced by get_max_match_length(), and optimize_node_left().
#define ONIGENC_MBC_MINLEN | ( | enc | ) | ((enc)->min_enc_len) |
Definition at line 364 of file onigmo.h.
Referenced by add_ctype_to_cc(), clear_optimize_info(), compile_cclass_node(), compile_length_cclass_node(), i_apply_case_fold(), map_position_value(), node_extended_grapheme_cluster(), node_linebreak(), onig_is_code_in_cc(), onig_vsnprintf_with_pattern(), onigenc_str_bytelen_null(), onigenc_strlen_null(), optimize_node_left(), parse_char_class(), parse_exp(), rb_enc_asciicompat(), strdup_with_null(), and to_ascii().
#define ONIGENC_MBC_TO_CODE | ( | enc, | |
p, | |||
end | |||
) | (enc)->mbc_to_code((p),(end),enc) |
Definition at line 366 of file onigmo.h.
Referenced by clear_optimize_info(), find_str_position(), is_mbc_newline_ex(), is_not_included(), match_at(), onigenc_ascii_only_case_map(), onigenc_with_ascii_strncmp(), onigenc_with_ascii_strnicmp(), parse_char_class(), str_exist_check_with_esc(), and to_ascii().
#define ONIGENC_MBCLEN_CHARFOUND_LEN | ( | r | ) | (r) |
Definition at line 347 of file onigmo.h.
Referenced by onigenc_mbclen_approximate(), and str_succ().
#define ONIGENC_MBCLEN_CHARFOUND_P | ( | r | ) | (0 < (r)) |
Definition at line 346 of file onigmo.h.
Referenced by onigenc_mbclen_approximate(), and str_succ().
#define ONIGENC_MBCLEN_NEEDMORE_LEN | ( | r | ) | (-1-(r)) |
Definition at line 354 of file onigmo.h.
Referenced by onigenc_mbclen_approximate().
#define ONIGENC_MBCLEN_NEEDMORE_P | ( | r | ) | ((r) < -1) |
Definition at line 353 of file onigmo.h.
Referenced by onigenc_mbclen_approximate().
#define ONIGENC_PRECISE_MBC_ENC_LEN | ( | enc, | |
p, | |||
e | |||
) | (enc)->precise_mbc_enc_len(p,e,enc) |
Definition at line 356 of file onigmo.h.
Referenced by onigenc_ascii_only_case_map(), onigenc_mbclen_approximate(), rb_enc_mbclen(), and rb_enc_precise_mbclen().
#define ONIGENC_PROPERTY_NAME_TO_CTYPE | ( | enc, | |
p, | |||
end | |||
) | (enc)->property_name_to_ctype(enc,p,end) |
Definition at line 369 of file onigmo.h.
Referenced by fetch_char_property_to_ctype().
#define ONIGENC_STEP_BACK | ( | enc, | |
start, | |||
s, | |||
end, | |||
n | |||
) | onigenc_step_back((enc),(start),(s),(end),(n)) |
Definition at line 342 of file onigmo.h.
Referenced by match_at(), and onig_search_gpos().
#define ONIGERR_CHAR_CLASS_VALUE_AT_END_OF_RANGE -110 |
Definition at line 651 of file onigmo.h.
Referenced by next_state_class(), and onig_error_code_to_format().
#define ONIGERR_CHAR_CLASS_VALUE_AT_START_OF_RANGE -111 |
Definition at line 652 of file onigmo.h.
Referenced by onig_error_code_to_format().
#define ONIGERR_CONTROL_CODE_SYNTAX -109 |
Definition at line 650 of file onigmo.h.
Referenced by fetch_escaped_value(), and onig_error_code_to_format().
#define ONIGERR_DEFAULT_ENCODING_IS_NOT_SET -21 |
Definition at line 637 of file onigmo.h.
Referenced by onig_error_code_to_format(), and onig_reg_init().
#define ONIGERR_EMPTY_CHAR_CLASS -102 |
Definition at line 644 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_char_class().
#define ONIGERR_EMPTY_GROUP_NAME -214 |
Definition at line 679 of file onigmo.h.
Referenced by fetch_name(), fetch_name_with_level(), name_add(), and onig_error_code_to_format().
#define ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS -203 |
Definition at line 669 of file onigmo.h.
Referenced by add_code_range0(), next_state_val(), and onig_error_code_to_format().
#define ONIGERR_END_PATTERN_AT_CONTROL -106 |
Definition at line 648 of file onigmo.h.
Referenced by fetch_escaped_value(), and onig_error_code_to_format().
#define ONIGERR_END_PATTERN_AT_ESCAPE -104 |
Definition at line 646 of file onigmo.h.
Referenced by fetch_escaped_value(), fetch_token(), fetch_token_in_cc(), and onig_error_code_to_format().
#define ONIGERR_END_PATTERN_AT_LEFT_BRACE -100 |
Definition at line 642 of file onigmo.h.
Referenced by fetch_range_quantifier(), and onig_error_code_to_format().
#define ONIGERR_END_PATTERN_AT_LEFT_BRACKET -101 |
Definition at line 643 of file onigmo.h.
Referenced by onig_error_code_to_format().
#define ONIGERR_END_PATTERN_AT_META -105 |
Definition at line 647 of file onigmo.h.
Referenced by fetch_escaped_value(), and onig_error_code_to_format().
#define ONIGERR_END_PATTERN_IN_GROUP -118 |
Definition at line 659 of file onigmo.h.
Referenced by fetch_token(), onig_error_code_to_format(), and parse_enclose().
#define ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS -117 |
Definition at line 658 of file onigmo.h.
Referenced by onig_error_code_to_format(), parse_enclose(), and parse_subexp().
#define ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY -222 |
Definition at line 687 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_enclose().
#define ONIGERR_INVALID_ARGUMENT -30 |
Definition at line 640 of file onigmo.h.
Referenced by onig_error_code_to_format(), onig_reg_init(), onig_region_set(), and onig_set_meta_char().
#define ONIGERR_INVALID_BACKREF -208 |
Definition at line 674 of file onigmo.h.
Referenced by fetch_named_backref_token(), fetch_token(), get_max_match_length(), get_min_match_length(), onig_error_code_to_format(), parse_enclose(), parse_exp(), and setup_tree().
#define ONIGERR_INVALID_CHAR_IN_GROUP_NAME -216 |
Definition at line 681 of file onigmo.h.
Referenced by fetch_name(), fetch_name_with_level(), onig_error_code_to_format(), and onig_error_code_to_str().
#define ONIGERR_INVALID_CHAR_PROPERTY_NAME -223 |
Definition at line 688 of file onigmo.h.
Referenced by fetch_char_property_to_ctype(), onig_error_code_to_format(), onig_error_code_to_str(), and onigenc_minimum_property_name_to_ctype().
#define ONIGERR_INVALID_CODE_POINT_VALUE -400 |
Definition at line 689 of file onigmo.h.
Referenced by next_state_val(), onig_error_code_to_format(), onigenc_mb2_code_to_mbc(), onigenc_mb4_code_to_mbc(), rb_enc_uint_chr(), and rb_str_concat().
#define ONIGERR_INVALID_COMBINATION_OF_OPTIONS -403 |
Definition at line 693 of file onigmo.h.
Referenced by onig_error_code_to_format(), and onig_reg_init().
#define ONIGERR_INVALID_CONDITION_PATTERN -124 |
Definition at line 664 of file onigmo.h.
Referenced by compile_enclose_node(), compile_length_enclose_node(), onig_error_code_to_format(), and parse_enclose().
#define ONIGERR_INVALID_GROUP_NAME -215 |
Definition at line 680 of file onigmo.h.
Referenced by fetch_name(), fetch_name_with_level(), fetch_token(), onig_error_code_to_format(), and onig_error_code_to_str().
#define ONIGERR_INVALID_LOOK_BEHIND_PATTERN -122 |
Definition at line 662 of file onigmo.h.
Referenced by compile_anchor_node(), onig_error_code_to_format(), setup_look_behind(), and setup_tree().
#define ONIGERR_INVALID_POSIX_BRACKET_TYPE -121 |
Definition at line 661 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_posix_bracket().
#define ONIGERR_INVALID_REPEAT_RANGE_PATTERN -123 |
Definition at line 663 of file onigmo.h.
Referenced by fetch_range_quantifier(), and onig_error_code_to_format().
#define ONIGERR_MATCH_STACK_LIMIT_OVER -15 |
Definition at line 635 of file onigmo.h.
Referenced by onig_error_code_to_format(), and stack_double().
#define ONIGERR_MEMORY -5 |
Definition at line 629 of file onigmo.h.
Referenced by bm_search_ic(), cclass_case_fold(), expand_case_fold_make_rem_string(), expand_case_fold_string(), expand_case_fold_string_alt(), is_mbc_newline_ex(), name_add(), node_extended_grapheme_cluster(), node_linebreak(), onig_bbuf_init(), onig_error_code_to_format(), onig_new(), onig_new_with_source(), onig_region_resize(), onigenc_with_ascii_strnicmp(), parse_enclose(), parse_exp(), rb_reg_region_copy(), set_bm_skip(), setup_tree(), stack_double(), and update_string_node_case_fold().
#define ONIGERR_META_CODE_SYNTAX -108 |
Definition at line 649 of file onigmo.h.
Referenced by fetch_escaped_value(), and onig_error_code_to_format().
#define ONIGERR_MISMATCH_CODE_LENGTH_IN_CLASS_RANGE -204 |
Definition at line 670 of file onigmo.h.
Referenced by next_state_val(), and onig_error_code_to_format().
#define ONIGERR_MULTIPLEX_DEFINED_NAME -219 |
Definition at line 684 of file onigmo.h.
Referenced by name_add(), onig_error_code_to_format(), and onig_error_code_to_str().
#define ONIGERR_MULTIPLEX_DEFINITION_NAME_CALL -220 |
Definition at line 685 of file onigmo.h.
Referenced by onig_error_code_to_format(), onig_error_code_to_str(), and setup_subexp_call().
#define ONIGERR_NESTED_REPEAT_OPERATOR -115 |
Definition at line 656 of file onigmo.h.
Referenced by onig_error_code_to_format().
#define ONIGERR_NEVER_ENDING_RECURSION -221 |
Definition at line 686 of file onigmo.h.
Referenced by onig_error_code_to_format(), and subexp_inf_recursive_check_trav().
#define ONIGERR_NOT_SUPPORTED_ENCODING_COMBINATION -402 |
Definition at line 692 of file onigmo.h.
Referenced by onig_error_code_to_format().
#define ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED -209 |
Definition at line 675 of file onigmo.h.
Referenced by numbered_ref_check(), onig_error_code_to_format(), renumber_node_backref(), setup_subexp_call(), and setup_tree().
#define ONIGERR_PARSE_DEPTH_LIMIT_OVER -16 |
Definition at line 636 of file onigmo.h.
Referenced by onig_error_code_to_format(), parse_char_class(), and parse_subexp().
#define ONIGERR_PARSER_BUG -11 |
Definition at line 631 of file onigmo.h.
Referenced by add_ctype_to_cc(), compile_enclose_node(), compile_length_enclose_node(), onig_error_code_to_format(), onig_name_to_backref_number(), parse_char_class(), parse_exp(), parse_subexp(), scan_env_set_mem_node(), and unset_addr_list_fix().
#define ONIGERR_PREMATURE_END_OF_CHAR_CLASS -103 |
Definition at line 645 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_char_class().
#define ONIGERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR -22 |
Definition at line 638 of file onigmo.h.
Referenced by onig_error_code_to_format().
#define ONIGERR_STACK_BUG -12 |
Definition at line 632 of file onigmo.h.
Referenced by match_at(), and onig_error_code_to_format().
#define ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALID -114 |
Definition at line 655 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_exp().
#define ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED -113 |
Definition at line 654 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_exp().
#define ONIGERR_TOO_BIG_BACKREF_NUMBER -207 |
Definition at line 673 of file onigmo.h.
Referenced by onig_error_code_to_format().
#define ONIGERR_TOO_BIG_NUMBER -200 |
Definition at line 666 of file onigmo.h.
Referenced by fetch_name(), fetch_name_with_level(), fetch_token(), fetch_token_in_cc(), and onig_error_code_to_format().
#define ONIGERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGE -201 |
Definition at line 667 of file onigmo.h.
Referenced by fetch_range_quantifier(), and onig_error_code_to_format().
#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE -401 |
Definition at line 691 of file onigmo.h.
Referenced by fetch_token(), fetch_token_in_cc(), onig_error_code_to_format(), onigenc_mb2_code_to_mbclen(), rb_enc_uint_chr(), and rb_str_concat().
#define ONIGERR_TOO_LONG_WIDE_CHAR_VALUE -212 |
Definition at line 678 of file onigmo.h.
Referenced by fetch_token(), fetch_token_in_cc(), and onig_error_code_to_format().
#define ONIGERR_TOO_MANY_CAPTURE_GROUPS -210 |
Definition at line 676 of file onigmo.h.
Referenced by onig_error_code_to_format(), and scan_env_add_mem_entry().
#define ONIGERR_TOO_MANY_MULTI_BYTE_RANGES -205 |
Definition at line 671 of file onigmo.h.
Referenced by add_code_range_to_buf0(), and onig_error_code_to_format().
#define ONIGERR_TOO_SHORT_DIGITS -211 |
Definition at line 677 of file onigmo.h.
Referenced by fetch_token(), fetch_token_in_cc(), and onig_error_code_to_format().
#define ONIGERR_TOO_SHORT_MULTI_BYTE_STRING -206 |
Definition at line 672 of file onigmo.h.
Referenced by onig_error_code_to_format(), parse_char_class(), and parse_exp().
#define ONIGERR_TYPE_BUG -6 |
Definition at line 630 of file onigmo.h.
Referenced by compile_anchor_node(), compile_enclose_node(), compile_length_enclose_node(), compile_length_tree(), compile_tree(), onig_error_code_to_format(), optimize_node_left(), set_bm_skip(), and setup_tree().
#define ONIGERR_UNDEFINED_BYTECODE -13 |
Definition at line 633 of file onigmo.h.
Referenced by match_at(), and onig_error_code_to_format().
#define ONIGERR_UNDEFINED_GROUP_OPTION -119 |
Definition at line 660 of file onigmo.h.
Referenced by fetch_token(), onig_error_code_to_format(), and parse_enclose().
#define ONIGERR_UNDEFINED_GROUP_REFERENCE -218 |
Definition at line 683 of file onigmo.h.
Referenced by onig_error_code_to_format(), onig_error_code_to_str(), and setup_subexp_call().
#define ONIGERR_UNDEFINED_NAME_REFERENCE -217 |
Definition at line 682 of file onigmo.h.
Referenced by fetch_named_backref_token(), onig_error_code_to_format(), onig_error_code_to_str(), onig_name_to_group_numbers(), and setup_subexp_call().
#define ONIGERR_UNEXPECTED_BYTECODE -14 |
Definition at line 634 of file onigmo.h.
Referenced by match_at(), and onig_error_code_to_format().
#define ONIGERR_UNMATCHED_CLOSE_PARENTHESIS -116 |
Definition at line 657 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_exp().
#define ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS -112 |
Definition at line 653 of file onigmo.h.
Referenced by onig_error_code_to_format(), and parse_char_class().
#define ONIGERR_UPPER_SMALLER_THAN_LOWER_IN_REPEAT_RANGE -202 |
Definition at line 668 of file onigmo.h.
Referenced by fetch_range_quantifier(), and onig_error_code_to_format().
#define UChar OnigUChar |
Definition at line 76 of file onigmo.h.
Referenced by add_char_amb_opt_map_info(), add_multi_byte_cclass(), backref_match_at_nested_level(), backward_search_range(), bitset_copy(), bm_search(), bm_search_ic(), bm_search_notrev(), bm_search_notrev_ic(), clear_optimize_info(), code_exist_check(), compile_length_string_node(), compile_string_node(), concat_opt_exact_info(), concat_opt_exact_info_str(), expand_case_fold_string(), expand_case_fold_string_alt(), fetch_char_property_to_ctype(), fetch_escaped_value(), fetch_name(), fetch_name_with_level(), fetch_named_backref_token(), fetch_range_quantifier(), fetch_token(), fetch_token_in_cc(), find_str_position(), forward_search_range(), get_char_length_tree1(), i_apply_case_fold(), is_mbc_newline_ex(), is_not_included(), make_regexp(), map_search(), map_search_backward(), match_at(), node_extended_grapheme_cluster(), node_linebreak(), node_new_str_raw_char(), node_str_cat_char(), node_str_cat_codepoint(), onig_bbuf_init(), onig_compile_ruby(), onig_error_code_to_format(), onig_error_code_to_str(), onig_is_code_in_cc(), onig_match(), onig_name_to_backref_number(), onig_node_str_cat(), onig_number_of_names(), onig_parse_make_tree(), onig_reg_init(), onig_scan(), onig_scan_unsigned_number(), onig_search_gpos(), onig_st_insert_strend(), onig_st_lookup_strend(), onig_strcpy(), onig_syntax_warn(), onig_vsnprintf_with_pattern(), onigenc_ascii_mbc_case_fold(), onigenc_get_prev_char_head(), onigenc_get_right_adjust_char_head(), onigenc_get_right_adjust_char_head_with_prev(), onigenc_mb2_code_to_mbc(), onigenc_mb4_code_to_mbc(), onigenc_mbclen_approximate(), onigenc_mbn_mbc_case_fold(), onigenc_single_byte_code_to_mbc(), onigenc_single_byte_left_adjust_char_head(), onigenc_step(), onigenc_step_back(), onigenc_str_bytelen_null(), onigenc_strlen(), onigenc_strlen_null(), onigenc_with_ascii_strnicmp(), optimize_node_left(), parse_char_class(), parse_enclose(), parse_exp(), parse_posix_bracket(), propname2ctype(), rb_enc_fast_mbclen(), rb_enc_mbclen(), rb_enc_precise_mbclen(), rb_reg_adjust_startpos(), rb_reg_match_p(), rb_reg_prepare_re0(), rb_reg_search0(), rb_reg_to_s(), scan_env_clear(), scan_unsigned_hexadecimal_number(), scan_unsigned_octal_number(), set_bm_skip(), set_optimize_exact_info(), setup_tree(), slow_search(), slow_search_backward(), slow_search_backward_ic(), slow_search_ic(), str_end_cmp(), str_end_hash(), str_exist_check_with_esc(), str_lower_case_match(), str_node_can_be_split(), str_node_split_last_char(), strcat_capa(), strcat_capa_from_static(), strdup_with_null(), string_cmp_ic(), strscan_do_scan(), to_ascii(), UNKNOWN_ESC_WARN(), and update_string_node_case_fold().
typedef int(* OnigApplyAllCaseFoldFunc) (OnigCodePoint from, OnigCodePoint *to, int to_len, void *arg) |
typedef struct OnigCaptureTreeNodeStruct OnigCaptureTreeNode |
typedef unsigned int OnigCaseFoldType |
typedef unsigned int OnigCodePoint |
typedef size_t OnigDistance |
typedef const OnigEncodingType* OnigEncoding |
typedef struct OnigEncodingTypeST OnigEncodingType |
typedef unsigned int OnigOptionType |
typedef ptrdiff_t OnigPosition |
typedef OnigRegexType* OnigRegex |
typedef struct re_pattern_buffer OnigRegexType |
typedef struct re_registers OnigRegion |
typedef OnigRegexType regex_t |
ONIG_EXTERN int onig_capture_tree_traverse | ( | OnigRegion * | region, |
int | at, | ||
int(*)(int, OnigPosition, OnigPosition, int, int, void *) | callback_func, | ||
void * | arg | ||
) |
ONIG_EXTERN void onig_copy_encoding | ( | OnigEncodingType * | to, |
OnigEncoding | from | ||
) |
ONIG_EXTERN void onig_copy_syntax | ( | OnigSyntaxType * | to, |
const OnigSyntaxType * | from | ||
) |
Definition at line 306 of file regsyntax.c.
ONIG_EXTERN const char* onig_copyright | ( | void | ) |
ONIG_EXTERN int onig_end | ( | void | ) |
Definition at line 6052 of file regcomp.c.
References exec_end_call_list().
ONIG_EXTERN int onig_error_code_to_str | ( | OnigUChar * | s, |
OnigPosition | err_code, | ||
... | |||
) |
Referenced by make_regexp(), rb_reg_match_p(), rb_reg_prepare_re0(), and rb_reg_search0().
ONIG_EXTERN int onig_foreach_name | ( | OnigRegex | reg, |
int(*)(const OnigUChar *, const OnigUChar *, int, int *, OnigRegex, void *) | func, | ||
void * | arg | ||
) |
Referenced by match_inspect(), match_named_captures(), rb_reg_named_captures(), rb_reg_names(), and reg_named_capture_assign_gen().
ONIG_EXTERN void onig_free | ( | OnigRegex | ) |
Referenced by obj_free(), onig_new_with_source(), rb_reg_match_p(), rb_reg_search0(), rb_reg_to_s(), and strscan_do_scan().
ONIG_EXTERN void onig_free_body | ( | OnigRegex | ) |
ONIG_EXTERN OnigCaptureTreeNode* onig_get_capture_tree | ( | OnigRegion * | region | ) |
Referenced by is_mbc_newline_ex().
ONIG_EXTERN OnigCaseFoldType onig_get_case_fold_flag | ( | const OnigRegexType * | reg | ) |
Definition at line 4574 of file regexec.c.
References re_pattern_buffer::case_fold_flag.
ONIG_EXTERN OnigCaseFoldType onig_get_default_case_fold_flag | ( | void | ) |
Definition at line 36 of file regcomp.c.
References OnigDefaultCaseFoldFlag.
ONIG_EXTERN OnigEncoding onig_get_encoding | ( | const OnigRegexType * | reg | ) |
Definition at line 4562 of file regexec.c.
References re_pattern_buffer::enc.
ONIG_EXTERN unsigned int onig_get_match_stack_limit_size | ( | void | ) |
Definition at line 521 of file regexec.c.
References MatchStackLimitSize.
ONIG_EXTERN OnigOptionType onig_get_options | ( | const OnigRegexType * | reg | ) |
Definition at line 4568 of file regexec.c.
References re_pattern_buffer::options.
ONIG_EXTERN unsigned int onig_get_parse_depth_limit | ( | void | ) |
Definition at line 117 of file regparse.c.
References ParseDepthLimit.
ONIG_EXTERN const OnigSyntaxType* onig_get_syntax | ( | const OnigRegexType * | reg | ) |
Definition at line 4580 of file regexec.c.
References re_pattern_buffer::syntax.
ONIG_EXTERN unsigned int onig_get_syntax_behavior | ( | const OnigSyntaxType * | syntax | ) |
Definition at line 348 of file regsyntax.c.
References OnigSyntaxType::behavior.
ONIG_EXTERN unsigned int onig_get_syntax_op | ( | const OnigSyntaxType * | syntax | ) |
Definition at line 336 of file regsyntax.c.
References OnigSyntaxType::op.
ONIG_EXTERN unsigned int onig_get_syntax_op2 | ( | const OnigSyntaxType * | syntax | ) |
Definition at line 342 of file regsyntax.c.
References OnigSyntaxType::op2.
ONIG_EXTERN OnigOptionType onig_get_syntax_options | ( | const OnigSyntaxType * | syntax | ) |
Definition at line 354 of file regsyntax.c.
References OnigSyntaxType::options.
ONIG_EXTERN int onig_init | ( | void | ) |
Definition at line 5998 of file regcomp.c.
References onigenc_init().
Referenced by onig_initialize(), and onig_reg_init().
ONIG_EXTERN int onig_initialize | ( | OnigEncoding | encodings[], |
int | n | ||
) |
ONIG_EXTERN OnigPosition onig_match | ( | OnigRegex | , |
const OnigUChar * | str, | ||
const OnigUChar * | end, | ||
const OnigUChar * | at, | ||
OnigRegion * | region, | ||
OnigOptionType | option | ||
) |
Referenced by strscan_do_scan().
ONIG_EXTERN int onig_name_to_backref_number | ( | OnigRegex | reg, |
const OnigUChar * | name, | ||
const OnigUChar * | name_end, | ||
const OnigRegion * | region | ||
) |
Referenced by name_to_backref_number().
ONIG_EXTERN int onig_name_to_group_numbers | ( | OnigRegex | reg, |
const OnigUChar * | name, | ||
const OnigUChar * | name_end, | ||
int ** | nums | ||
) |
Referenced by setup_subexp_call().
ONIG_EXTERN int onig_new | ( | OnigRegex * | , |
const OnigUChar * | pattern, | ||
const OnigUChar * | pattern_end, | ||
OnigOptionType | option, | ||
OnigEncoding | enc, | ||
const OnigSyntaxType * | syntax, | ||
OnigErrorInfo * | einfo | ||
) |
Referenced by rb_reg_prepare_re0(), and rb_reg_to_s().
ONIG_EXTERN int onig_new_deluxe | ( | OnigRegex * | reg, |
const OnigUChar * | pattern, | ||
const OnigUChar * | pattern_end, | ||
OnigCompileInfo * | ci, | ||
OnigErrorInfo * | einfo | ||
) |
ONIG_EXTERN int onig_new_without_alloc | ( | OnigRegex | , |
const OnigUChar * | pattern, | ||
const OnigUChar * | pattern_end, | ||
OnigOptionType | option, | ||
OnigEncoding | enc, | ||
const OnigSyntaxType * | syntax, | ||
OnigErrorInfo * | einfo | ||
) |
ONIG_EXTERN int onig_noname_group_capture_is_active | ( | const OnigRegexType * | reg | ) |
Definition at line 963 of file regparse.c.
References IS_SYNTAX_BV, ONIG_IS_OPTION_ON, onig_number_of_names(), ONIG_OPTION_CAPTURE_GROUP, ONIG_OPTION_DONT_CAPTURE_GROUP, ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP, re_pattern_buffer::options, and re_pattern_buffer::syntax.
Referenced by rb_reg_regsub().
void onig_null_warn | ( | const char * | s | ) |
ONIG_EXTERN int onig_number_of_capture_histories | ( | const OnigRegexType * | reg | ) |
Definition at line 4592 of file regexec.c.
References BIT_STATUS_AT, re_pattern_buffer::capture_history, and ONIG_MAX_CAPTURE_HISTORY_GROUP.
ONIG_EXTERN int onig_number_of_captures | ( | const OnigRegexType * | reg | ) |
Definition at line 4586 of file regexec.c.
References re_pattern_buffer::num_mem.
ONIG_EXTERN int onig_number_of_names | ( | const OnigRegexType * | reg | ) |
Definition at line 623 of file regparse.c.
References NameEntry::back_alloc, NameEntry::back_num, NameEntry::back_ref1, NameEntry::back_refs, func, if(), IS_NOT_NULL, len, name, NameEntry::name, name_find(), NameEntry::name_len, re_pattern_buffer::name_table, names_clear(), NULL, st_table::num_entries, onig_foreach_name(), onig_names_free(), onig_strncmp(), UChar, and xfree().
Referenced by onig_name_to_backref_number(), onig_noname_group_capture_is_active(), and rb_reg_names().
ONIG_EXTERN int onig_reg_init | ( | OnigRegex | reg, |
OnigOptionType | option, | ||
OnigCaseFoldType | case_fold_flag, | ||
OnigEncoding | enc, | ||
const OnigSyntaxType * | syntax | ||
) |
Referenced by onig_new_with_source().
ONIG_EXTERN void onig_region_clear | ( | OnigRegion * | region | ) |
Definition at line 235 of file regexec.c.
References re_registers::beg, re_registers::end, re_registers::num_regs, and ONIG_REGION_NOTPOS.
Referenced by adjust_registers_to_matched(), onig_region_resize_clear(), and onig_search_gpos().
ONIG_EXTERN void onig_region_copy | ( | OnigRegion * | to, |
const OnigRegion * | from | ||
) |
Definition at line 357 of file regexec.c.
References re_registers::beg, re_registers::end, re_registers::history_root, IS_NOT_NULL, re_registers::num_regs, and onig_region_resize().
Referenced by rb_reg_region_copy().
ONIG_EXTERN void onig_region_free | ( | OnigRegion * | region, |
int | free_self | ||
) |
Definition at line 341 of file regexec.c.
References re_registers::allocated, re_registers::beg, re_registers::end, and xfree().
Referenced by obj_free(), rb_reg_search0(), and strscan_free().
ONIG_EXTERN void onig_region_init | ( | OnigRegion * | region | ) |
Definition at line 320 of file regexec.c.
References re_registers::allocated, re_registers::beg, re_registers::end, re_registers::history_root, and re_registers::num_regs.
Referenced by onig_region_new(), and strscan_s_allocate().
ONIG_EXTERN OnigRegion* onig_region_new | ( | void | ) |
Definition at line 330 of file regexec.c.
References onig_region_init(), and xmalloc.
ONIG_EXTERN int onig_region_resize | ( | OnigRegion * | region, |
int | n | ||
) |
Definition at line 248 of file regexec.c.
References re_registers::allocated, re_registers::beg, re_registers::end, re_registers::num_regs, ONIG_NREGION, ONIGERR_MEMORY, xfree(), xmalloc, and xrealloc.
Referenced by match_set_string(), onig_region_copy(), onig_region_resize_clear(), and onig_region_set().
ONIG_EXTERN int onig_region_set | ( | OnigRegion * | region, |
int | at, | ||
int | beg, | ||
int | end | ||
) |
Definition at line 305 of file regexec.c.
References re_registers::allocated, re_registers::beg, re_registers::end, onig_region_resize(), and ONIGERR_INVALID_ARGUMENT.
Referenced by adjust_registers_to_matched().
ONIG_EXTERN OnigPosition onig_scan | ( | OnigRegex | reg, |
const OnigUChar * | str, | ||
const OnigUChar * | end, | ||
OnigRegion * | region, | ||
OnigOptionType | option, | ||
int(*)(OnigPosition, OnigPosition, OnigRegion *, void *) | scan_callback, | ||
void * | callback_arg | ||
) |
ONIG_EXTERN OnigPosition onig_search | ( | OnigRegex | , |
const OnigUChar * | str, | ||
const OnigUChar * | end, | ||
const OnigUChar * | start, | ||
const OnigUChar * | range, | ||
OnigRegion * | region, | ||
OnigOptionType | option | ||
) |
Referenced by rb_reg_match_p(), rb_reg_search0(), and strscan_do_scan().
ONIG_EXTERN OnigPosition onig_search_gpos | ( | OnigRegex | , |
const OnigUChar * | str, | ||
const OnigUChar * | end, | ||
const OnigUChar * | global_pos, | ||
const OnigUChar * | start, | ||
const OnigUChar * | range, | ||
OnigRegion * | region, | ||
OnigOptionType | option | ||
) |
ONIG_EXTERN int onig_set_default_case_fold_flag | ( | OnigCaseFoldType | case_fold_flag | ) |
Definition at line 42 of file regcomp.c.
References OnigDefaultCaseFoldFlag.
ONIG_EXTERN int onig_set_default_syntax | ( | const OnigSyntaxType * | syntax | ) |
Definition at line 296 of file regsyntax.c.
References IS_NULL, ONIG_SYNTAX_RUBY, and OnigDefaultSyntax.
ONIG_EXTERN int onig_set_match_stack_limit_size | ( | unsigned int | size | ) |
Definition at line 527 of file regexec.c.
References MatchStackLimitSize, and size.
ONIG_EXTERN int onig_set_meta_char | ( | OnigSyntaxType * | syntax, |
unsigned int | what, | ||
OnigCodePoint | code | ||
) |
Definition at line 360 of file regsyntax.c.
References OnigMetaCharTableType::anychar, OnigMetaCharTableType::anychar_anytime, OnigMetaCharTableType::anytime, OnigMetaCharTableType::esc, OnigSyntaxType::meta_char_table, OnigMetaCharTableType::one_or_more_time, ONIG_META_CHAR_ANYCHAR, ONIG_META_CHAR_ANYCHAR_ANYTIME, ONIG_META_CHAR_ANYTIME, ONIG_META_CHAR_ESCAPE, ONIG_META_CHAR_ONE_OR_MORE_TIME, ONIG_META_CHAR_ZERO_OR_ONE_TIME, ONIGERR_INVALID_ARGUMENT, and OnigMetaCharTableType::zero_or_one_time.
ONIG_EXTERN int onig_set_parse_depth_limit | ( | unsigned int | depth | ) |
Definition at line 123 of file regparse.c.
References DEFAULT_PARSE_DEPTH_LIMIT, and ParseDepthLimit.
ONIG_EXTERN void onig_set_syntax_behavior | ( | OnigSyntaxType * | syntax, |
unsigned int | behavior | ||
) |
Definition at line 324 of file regsyntax.c.
References OnigSyntaxType::behavior.
ONIG_EXTERN void onig_set_syntax_op | ( | OnigSyntaxType * | syntax, |
unsigned int | op | ||
) |
Definition at line 312 of file regsyntax.c.
References OnigSyntaxType::op.
ONIG_EXTERN void onig_set_syntax_op2 | ( | OnigSyntaxType * | syntax, |
unsigned int | op2 | ||
) |
Definition at line 318 of file regsyntax.c.
References OnigSyntaxType::op2.
ONIG_EXTERN void onig_set_syntax_options | ( | OnigSyntaxType * | syntax, |
OnigOptionType | options | ||
) |
Definition at line 330 of file regsyntax.c.
References OnigSyntaxType::options, and options().
ONIG_EXTERN void onig_set_verb_warn_func | ( | OnigWarnFunc | f | ) |
Definition at line 106 of file regparse.c.
References CC_DUP_WARN(), env, f, and onig_verb_warn.
Referenced by Init_Regexp().
ONIG_EXTERN void onig_set_warn_func | ( | OnigWarnFunc | f | ) |
Definition at line 101 of file regparse.c.
Referenced by Init_Regexp().
ONIG_EXTERN const char* onig_version | ( | void | ) |
ONIG_EXTERN int onigenc_ascii_only_case_map | ( | OnigCaseFoldType * | flagP, |
const OnigUChar ** | pp, | ||
const OnigUChar * | end, | ||
OnigUChar * | to, | ||
OnigUChar * | to_end, | ||
const struct OnigEncodingTypeST * | enc | ||
) |
Definition at line 955 of file regenc.c.
References ONIGENC_CASE_DOWNCASE, ONIGENC_CASE_FOLD, ONIGENC_CASE_MODIFIED, ONIGENC_CASE_TITLECASE, ONIGENC_CASE_UPCASE, ONIGENC_CODE_TO_MBC, ONIGENC_MBC_TO_CODE, and ONIGENC_PRECISE_MBC_ENC_LEN.
Referenced by rb_str_ascii_casemap().
ONIG_EXTERN OnigEncoding onigenc_get_default_encoding | ( | void | ) |
Definition at line 42 of file regenc.c.
References OnigEncDefaultCharEncoding.
ONIG_EXTERN OnigUChar* onigenc_get_left_adjust_char_head | ( | OnigEncoding | enc, |
const OnigUChar * | start, | ||
const OnigUChar * | s, | ||
const OnigUChar * | end | ||
) |
ONIG_EXTERN OnigUChar* onigenc_get_prev_char_head | ( | OnigEncoding | enc, |
const OnigUChar * | start, | ||
const OnigUChar * | s, | ||
const OnigUChar * | end | ||
) |
ONIG_EXTERN OnigUChar* onigenc_get_right_adjust_char_head | ( | OnigEncoding | enc, |
const OnigUChar * | start, | ||
const OnigUChar * | s, | ||
const OnigUChar * | end | ||
) |
Referenced by backward_search_range(), onig_search_gpos(), and rb_reg_adjust_startpos().
ONIG_EXTERN OnigUChar* onigenc_get_right_adjust_char_head_with_prev | ( | OnigEncoding | enc, |
const OnigUChar * | start, | ||
const OnigUChar * | s, | ||
const OnigUChar * | end, | ||
const OnigUChar ** | prev | ||
) |
Referenced by forward_search_range().
ONIG_EXTERN int onigenc_init | ( | void | ) |
Definition at line 36 of file regenc.c.
Referenced by onig_init().
ONIG_EXTERN int onigenc_mbclen_approximate | ( | const OnigUChar * | p, |
const OnigUChar * | e, | ||
const struct OnigEncodingTypeST * | enc | ||
) |
ONIG_EXTERN int onigenc_set_default_encoding | ( | OnigEncoding | enc | ) |
Definition at line 48 of file regenc.c.
Referenced by Init_Regexp().
ONIG_EXTERN OnigUChar* onigenc_step_back | ( | OnigEncoding | enc, |
const OnigUChar * | start, | ||
const OnigUChar * | s, | ||
const OnigUChar * | end, | ||
int | n | ||
) |
ONIG_EXTERN int onigenc_str_bytelen_null | ( | OnigEncoding | enc, |
const OnigUChar * | p | ||
) |
Referenced by onig_error_code_to_str(), and onig_vsnprintf_with_pattern().
ONIG_EXTERN int onigenc_strlen | ( | OnigEncoding | enc, |
const OnigUChar * | p, | ||
const OnigUChar * | end | ||
) |
Referenced by optimize_node_left(), and parse_posix_bracket().
ONIG_EXTERN int onigenc_strlen_null | ( | OnigEncoding | enc, |
const OnigUChar * | p | ||
) |
ONIG_EXTERN OnigCaseFoldType OnigDefaultCaseFoldFlag |
ONIG_EXTERN const OnigSyntaxType* OnigDefaultSyntax |
Definition at line 515 of file onigmo.h.
Referenced by make_regexp(), onig_set_default_syntax(), rb_reg_prepare_re0(), and rb_reg_to_s().
ONIG_EXTERN const OnigEncodingType OnigEncodingASCII |
ONIG_EXTERN const OnigEncodingType OnigEncodingBIG5 |
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_CN |
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_JP |
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_KR |
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_TW |
ONIG_EXTERN const OnigEncodingType OnigEncodingGB18030 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_1 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_10 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_11 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_13 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_14 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_15 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_16 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_2 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_3 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_4 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_5 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_6 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_7 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_8 |
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_9 |
ONIG_EXTERN const OnigEncodingType OnigEncodingKOI8_R |
ONIG_EXTERN const OnigEncodingType OnigEncodingKOI8_U |
ONIG_EXTERN const OnigEncodingType OnigEncodingShift_JIS |
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_16BE |
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_16LE |
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_32BE |
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_32LE |
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_8 |
Definition at line 201 of file onigmo.h.
Referenced by rb_w32_sysinit().
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1250 |
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1251 |
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1252 |
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1253 |
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1254 |
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1257 |
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_31J |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxASIS |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxEmacs |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxGnuRegex |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxGrep |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxJava |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPerl |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPerl58 |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPerl58_NG |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPosixBasic |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPosixExtended |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPython |
ONIG_EXTERN const OnigSyntaxType OnigSyntaxRuby |