Ruby  2.5.0dev(2017-10-22revision60238)
Functions | Variables
regsyntax.c File Reference
#include "regint.h"

Go to the source code of this file.

Functions

int onig_set_default_syntax (const OnigSyntaxType *syntax)
 
void onig_copy_syntax (OnigSyntaxType *to, const OnigSyntaxType *from)
 
void onig_set_syntax_op (OnigSyntaxType *syntax, unsigned int op)
 
void onig_set_syntax_op2 (OnigSyntaxType *syntax, unsigned int op2)
 
void onig_set_syntax_behavior (OnigSyntaxType *syntax, unsigned int behavior)
 
void onig_set_syntax_options (OnigSyntaxType *syntax, OnigOptionType options)
 
unsigned int onig_get_syntax_op (const OnigSyntaxType *syntax)
 
unsigned int onig_get_syntax_op2 (const OnigSyntaxType *syntax)
 
unsigned int onig_get_syntax_behavior (const OnigSyntaxType *syntax)
 
OnigOptionType onig_get_syntax_options (const OnigSyntaxType *syntax)
 
int onig_set_meta_char (OnigSyntaxType *enc, unsigned int what, OnigCodePoint code)
 

Variables

const OnigSyntaxType OnigSyntaxASIS
 
const OnigSyntaxType OnigSyntaxPosixBasic
 
const OnigSyntaxType OnigSyntaxPosixExtended
 
const OnigSyntaxType OnigSyntaxEmacs
 
const OnigSyntaxType OnigSyntaxGrep
 
const OnigSyntaxType OnigSyntaxGnuRegex
 
const OnigSyntaxType OnigSyntaxJava
 
const OnigSyntaxType OnigSyntaxPerl58
 
const OnigSyntaxType OnigSyntaxPerl58_NG
 
const OnigSyntaxType OnigSyntaxPerl
 
const OnigSyntaxType OnigSyntaxPython
 

Function Documentation

◆ onig_copy_syntax()

void onig_copy_syntax ( OnigSyntaxType to,
const OnigSyntaxType from 
)

Definition at line 306 of file regsyntax.c.

◆ onig_get_syntax_behavior()

unsigned int onig_get_syntax_behavior ( const OnigSyntaxType syntax)

Definition at line 348 of file regsyntax.c.

References OnigSyntaxType::behavior.

◆ onig_get_syntax_op()

unsigned int onig_get_syntax_op ( const OnigSyntaxType syntax)

Definition at line 336 of file regsyntax.c.

References OnigSyntaxType::op.

◆ onig_get_syntax_op2()

unsigned int onig_get_syntax_op2 ( const OnigSyntaxType syntax)

Definition at line 342 of file regsyntax.c.

References OnigSyntaxType::op2.

◆ onig_get_syntax_options()

OnigOptionType onig_get_syntax_options ( const OnigSyntaxType syntax)

Definition at line 354 of file regsyntax.c.

References OnigSyntaxType::options.

◆ onig_set_default_syntax()

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_set_meta_char()

int onig_set_meta_char ( OnigSyntaxType enc,
unsigned int  what,
OnigCodePoint  code 
)

◆ onig_set_syntax_behavior()

void onig_set_syntax_behavior ( OnigSyntaxType syntax,
unsigned int  behavior 
)

Definition at line 324 of file regsyntax.c.

References OnigSyntaxType::behavior.

◆ onig_set_syntax_op()

void onig_set_syntax_op ( OnigSyntaxType syntax,
unsigned int  op 
)

Definition at line 312 of file regsyntax.c.

References OnigSyntaxType::op.

◆ onig_set_syntax_op2()

void onig_set_syntax_op2 ( OnigSyntaxType syntax,
unsigned int  op2 
)

Definition at line 318 of file regsyntax.c.

References OnigSyntaxType::op2.

◆ onig_set_syntax_options()

void onig_set_syntax_options ( OnigSyntaxType syntax,
OnigOptionType  options 
)

Definition at line 330 of file regsyntax.c.

Variable Documentation

◆ OnigSyntaxASIS

const OnigSyntaxType OnigSyntaxASIS
Initial value:

Definition at line 33 of file regsyntax.c.

◆ OnigSyntaxEmacs

const OnigSyntaxType OnigSyntaxEmacs
Initial value:
= {
,
{
(OnigCodePoint )'\\'
}
}
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define ONIG_SYN_OP_QMARK_ZERO_ONE
Definition: onigmo.h:525
#define ONIG_SYN_OP_ASTERISK_ZERO_INF
Definition: onigmo.h:521
#define ONIG_SYN_OP_PLUS_ONE_INF
Definition: onigmo.h:523
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_SYN_OP_BRACKET_CC
Definition: onigmo.h:536
#define ONIG_SYN_OP_DECIMAL_BACKREF
Definition: onigmo.h:535
#define ONIG_SYN_OP_ESC_CONTROL_CHARS
Definition: onigmo.h:545
#define ONIG_SYN_OP_ESC_BRACE_INTERVAL
Definition: onigmo.h:528
#define ONIG_SYN_OP2_ESC_GNU_BUF_ANCHOR
Definition: onigmo.h:567
#define ONIG_OPTION_NONE
Definition: onigmo.h:450
#define ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC
Definition: onigmo.h:604
#define ONIG_SYN_OP_DOT_ANYCHAR
Definition: onigmo.h:520
#define ONIG_SYN_OP_ESC_LPAREN_SUBEXP
Definition: onigmo.h:532
#define ONIG_SYN_OP_ESC_VBAR_ALT
Definition: onigmo.h:530
#define ONIG_SYN_OP_LINE_ANCHOR
Definition: onigmo.h:542

Definition at line 87 of file regsyntax.c.

◆ OnigSyntaxGnuRegex

const OnigSyntaxType OnigSyntaxGnuRegex
Initial value:

Definition at line 130 of file regsyntax.c.

◆ OnigSyntaxGrep

const OnigSyntaxType OnigSyntaxGrep
Initial value:
= {
, 0
,
{
(OnigCodePoint )'\\'
}
}
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define ONIG_SYN_OP_ESC_W_WORD
Definition: onigmo.h:537
#define ONIG_SYN_OP_ASTERISK_ZERO_INF
Definition: onigmo.h:521
#define ONIG_SYN_OP_POSIX_BRACKET
Definition: onigmo.h:543
#define ONIG_SYN_OP_ESC_PLUS_ONE_INF
Definition: onigmo.h:524
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_SYN_OP_BRACKET_CC
Definition: onigmo.h:536
#define ONIG_SYN_OP_ESC_QMARK_ZERO_ONE
Definition: onigmo.h:526
#define ONIG_SYN_OP_DECIMAL_BACKREF
Definition: onigmo.h:535
#define ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC
Definition: onigmo.h:602
#define ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
Definition: onigmo.h:538
#define ONIG_SYN_OP_ESC_BRACE_INTERVAL
Definition: onigmo.h:528
#define ONIG_SYN_OP_ESC_B_WORD_BOUND
Definition: onigmo.h:539
#define ONIG_OPTION_NONE
Definition: onigmo.h:450
#define ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC
Definition: onigmo.h:604
#define ONIG_SYN_OP_DOT_ANYCHAR
Definition: onigmo.h:520
#define ONIG_SYN_OP_ESC_LPAREN_SUBEXP
Definition: onigmo.h:532
#define ONIG_SYN_OP_ESC_VBAR_ALT
Definition: onigmo.h:530
#define ONIG_SYN_OP_LINE_ANCHOR
Definition: onigmo.h:542

Definition at line 108 of file regsyntax.c.

◆ OnigSyntaxJava

const OnigSyntaxType OnigSyntaxJava
Initial value:
= {
,
{
(OnigCodePoint )'\\'
}
}
#define ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
Definition: onigmo.h:568
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define ONIG_SYN_OP2_ESC_V_VTAB
Definition: onigmo.h:565
#define ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND
Definition: onigmo.h:594
#define SYN_GNU_REGEX_OP
Definition: regint.h:767
#define ONIG_SYN_OP_ESC_C_CONTROL
Definition: onigmo.h:546
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT
Definition: onigmo.h:556
#define ONIG_SYN_OP2_CCLASS_SET_OP
Definition: onigmo.h:558
#define ONIG_OPTION_WORD_BOUND_ALL_RANGE
Definition: onigmo.h:469
#define ONIG_OPTION_SINGLELINE
Definition: onigmo.h:455
#define ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE
Definition: onigmo.h:552
#define ONIG_SYN_OP_ESC_CONTROL_CHARS
Definition: onigmo.h:545
#define ONIG_SYN_OP_QMARK_NON_GREEDY
Definition: onigmo.h:544
#define SYN_GNU_REGEX_BV
Definition: regint.h:780
#define ONIG_SYN_OP2_OPTION_PERL
Definition: onigmo.h:554
#define ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
Definition: onigmo.h:538
#define ONIG_SYN_OP_ESC_OCTAL3
Definition: onigmo.h:547
#define ONIG_OPTION_ASCII_RANGE
Definition: onigmo.h:467
#define ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL
Definition: onigmo.h:557
#define ONIG_SYN_OP2_ESC_U_HEX4
Definition: onigmo.h:566
#define ONIG_SYN_OP2_QMARK_GROUP_EFFECT
Definition: onigmo.h:553
#define ONIG_SYN_OP_ESC_X_HEX2
Definition: onigmo.h:548

Definition at line 146 of file regsyntax.c.

◆ OnigSyntaxPerl

const OnigSyntaxType OnigSyntaxPerl

Definition at line 228 of file regsyntax.c.

◆ OnigSyntaxPerl58

const OnigSyntaxType OnigSyntaxPerl58
Initial value:
= {
,
{
(OnigCodePoint )'\\'
}
}
#define ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
Definition: onigmo.h:568
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define ONIG_SYN_OP_ESC_X_BRACE_HEX8
Definition: onigmo.h:549
#define SYN_GNU_REGEX_OP
Definition: regint.h:767
#define ONIG_SYN_OP_ESC_C_CONTROL
Definition: onigmo.h:546
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_SYN_OP2_QMARK_LPAREN_CONDITION
Definition: onigmo.h:581
#define ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
Definition: onigmo.h:569
#define ONIG_OPTION_SINGLELINE
Definition: onigmo.h:455
#define ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTER
Definition: onigmo.h:574
#define ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE
Definition: onigmo.h:552
#define ONIG_SYN_OP_ESC_CONTROL_CHARS
Definition: onigmo.h:545
#define ONIG_SYN_OP_QMARK_NON_GREEDY
Definition: onigmo.h:544
#define SYN_GNU_REGEX_BV
Definition: regint.h:780
#define ONIG_SYN_OP2_OPTION_PERL
Definition: onigmo.h:554
#define ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
Definition: onigmo.h:538
#define ONIG_SYN_OP_ESC_OCTAL3
Definition: onigmo.h:547
#define ONIG_SYN_OP2_QMARK_GROUP_EFFECT
Definition: onigmo.h:553
#define ONIG_SYN_OP_ESC_X_HEX2
Definition: onigmo.h:548

Definition at line 171 of file regsyntax.c.

◆ OnigSyntaxPerl58_NG

const OnigSyntaxType OnigSyntaxPerl58_NG
Initial value:
= {
,
{
(OnigCodePoint )'\\'
}
}
#define ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
Definition: onigmo.h:568
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define ONIG_SYN_OP_ESC_X_BRACE_HEX8
Definition: onigmo.h:549
#define ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME
Definition: onigmo.h:596
#define ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
Definition: onigmo.h:561
#define SYN_GNU_REGEX_OP
Definition: regint.h:767
#define ONIG_SYN_OP_ESC_C_CONTROL
Definition: onigmo.h:546
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_SYN_OP2_QMARK_LPAREN_CONDITION
Definition: onigmo.h:581
#define ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP
Definition: onigmo.h:595
#define ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
Definition: onigmo.h:569
#define ONIG_OPTION_SINGLELINE
Definition: onigmo.h:455
#define ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTER
Definition: onigmo.h:574
#define ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE
Definition: onigmo.h:552
#define ONIG_SYN_OP_ESC_CONTROL_CHARS
Definition: onigmo.h:545
#define ONIG_SYN_OP_QMARK_NON_GREEDY
Definition: onigmo.h:544
#define SYN_GNU_REGEX_BV
Definition: regint.h:780
#define ONIG_SYN_OP2_ESC_K_NAMED_BACKREF
Definition: onigmo.h:560
#define ONIG_SYN_OP2_OPTION_PERL
Definition: onigmo.h:554
#define ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
Definition: onigmo.h:538
#define ONIG_SYN_OP_ESC_OCTAL3
Definition: onigmo.h:547
#define ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP
Definition: onigmo.h:559
#define ONIG_SYN_OP2_QMARK_GROUP_EFFECT
Definition: onigmo.h:553
#define ONIG_SYN_OP_ESC_X_HEX2
Definition: onigmo.h:548

Definition at line 197 of file regsyntax.c.

◆ OnigSyntaxPosixBasic

const OnigSyntaxType OnigSyntaxPosixBasic
Initial value:
= {
, 0
, 0
,
{
(OnigCodePoint )'\\'
}
}
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define SYN_POSIX_COMMON_OP
Definition: regint.h:760
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_OPTION_SINGLELINE
Definition: onigmo.h:455
#define ONIG_SYN_OP_ESC_BRACE_INTERVAL
Definition: onigmo.h:528
#define ONIG_OPTION_MULTILINE
Definition: onigmo.h:453
#define ONIG_SYN_OP_ESC_LPAREN_SUBEXP
Definition: onigmo.h:532

Definition at line 49 of file regsyntax.c.

◆ OnigSyntaxPosixExtended

const OnigSyntaxType OnigSyntaxPosixExtended
Initial value:
= {
, 0
,
{
(OnigCodePoint )'\\'
}
}
#define ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS
Definition: onigmo.h:588
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define ONIG_SYN_OP_QMARK_ZERO_ONE
Definition: onigmo.h:525
#define ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS
Definition: onigmo.h:589
#define SYN_POSIX_COMMON_OP
Definition: regint.h:760
#define ONIG_SYN_OP_PLUS_ONE_INF
Definition: onigmo.h:523
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_SYN_OP_VBAR_ALT
Definition: onigmo.h:529
#define ONIG_SYN_OP_BRACE_INTERVAL
Definition: onigmo.h:527
#define ONIG_OPTION_SINGLELINE
Definition: onigmo.h:455
#define ONIG_OPTION_MULTILINE
Definition: onigmo.h:453
#define ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC
Definition: onigmo.h:605
#define ONIG_SYN_OP_LPAREN_SUBEXP
Definition: onigmo.h:531
#define ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP
Definition: onigmo.h:590
#define ONIG_SYN_CONTEXT_INDEP_ANCHORS
Definition: onigmo.h:587

Definition at line 66 of file regsyntax.c.

◆ OnigSyntaxPython

const OnigSyntaxType OnigSyntaxPython
Initial value:
= {
,
{
(OnigCodePoint )'\\'
}
}
#define ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY
Definition: onigmo.h:568
#define ONIG_SYN_OP2_QMARK_CAPITAL_P_NAMED_GROUP
Definition: onigmo.h:582
unsigned int OnigCodePoint
Definition: onigmo.h:80
#define ONIG_SYN_OP_ESC_X_BRACE_HEX8
Definition: onigmo.h:549
#define ONIG_SYN_OP2_ESC_V_VTAB
Definition: onigmo.h:565
#define SYN_GNU_REGEX_OP
Definition: regint.h:767
#define ONIG_SYN_OP_ESC_C_CONTROL
Definition: onigmo.h:546
#define ONIG_INEFFECTIVE_META_CHAR
Definition: onigmo.h:619
#define ONIG_SYN_OP2_QMARK_LPAREN_CONDITION
Definition: onigmo.h:581
#define ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT
Definition: onigmo.h:556
#define ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
Definition: onigmo.h:569
#define ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV
Definition: onigmo.h:592
#define ONIG_OPTION_SINGLELINE
Definition: onigmo.h:455
#define ONIG_SYN_OP_ESC_CONTROL_CHARS
Definition: onigmo.h:545
#define ONIG_SYN_OP_QMARK_NON_GREEDY
Definition: onigmo.h:544
#define SYN_GNU_REGEX_BV
Definition: regint.h:780
#define ONIG_SYN_OP2_OPTION_PERL
Definition: onigmo.h:554
#define ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END
Definition: onigmo.h:538
#define ONIG_SYN_OP_ESC_OCTAL3
Definition: onigmo.h:547
#define ONIG_OPTION_ASCII_RANGE
Definition: onigmo.h:467
#define ONIG_SYN_OP2_ESC_U_HEX4
Definition: onigmo.h:566
#define ONIG_SYN_OP2_QMARK_GROUP_EFFECT
Definition: onigmo.h:553
#define ONIG_SYN_OP_ESC_X_HEX2
Definition: onigmo.h:548

Definition at line 265 of file regsyntax.c.