10#ifndef ONIG_NO_STANDARD_C_HEADERS
19#define REG_ICASE (1 << 0)
20#define REG_NEWLINE (1 << 1)
21#define REG_NOTBOL (1 << 2)
22#define REG_NOTEOL (1 << 3)
23#define REG_EXTENDED (1 << 4)
24#define REG_NOSUB (1 << 5)
42#define REG_EONIG_INTERNAL 14
43#define REG_EONIG_BADWC 15
44#define REG_EONIG_BADARG 16
48#define REG_POSIX_ENCODING_ASCII 0
49#define REG_POSIX_ENCODING_EUC_JP 1
50#define REG_POSIX_ENCODING_SJIS 2
51#define REG_POSIX_ENCODING_UTF8 3
52#define REG_POSIX_ENCODING_UTF16_BE 4
53#define REG_POSIX_ENCODING_UTF16_LE 5
55typedef int onig_posix_regoff_t;
58 onig_posix_regoff_t rm_so;
59 onig_posix_regoff_t rm_eo;
70#if defined(__STDC__) || defined(_WIN32)
79#if defined(_WIN32) && !defined(__GNUC__)
80#if defined(ONIGURUMA_EXPORT)
81#define ONIG_EXTERN extern __declspec(dllexport)
83#define ONIG_EXTERN extern __declspec(dllimport)
89#define ONIG_EXTERN extern
92#define ONIG_EXTERN extern
96typedef unsigned int OnigOptionType;
102 unsigned int behavior;
103 OnigOptionType options;
117#define ONIG_SYNTAX_POSIX_BASIC (&OnigSyntaxPosixBasic)
118#define ONIG_SYNTAX_POSIX_EXTENDED (&OnigSyntaxPosixExtended)
119#define ONIG_SYNTAX_EMACS (&OnigSyntaxEmacs)
120#define ONIG_SYNTAX_GREP (&OnigSyntaxGrep)
121#define ONIG_SYNTAX_GNU_REGEX (&OnigSyntaxGnuRegex)
122#define ONIG_SYNTAX_JAVA (&OnigSyntaxJava)
123#define ONIG_SYNTAX_PERL (&OnigSyntaxPerl)
124#define ONIG_SYNTAX_RUBY (&OnigSyntaxRuby)
125#define ONIG_SYNTAX_ONIGURUMA (&OnigSyntaxOniguruma)
127#define ONIG_SYNTAX_DEFAULT OnigDefaultSyntax
131ONIG_EXTERN
int onig_set_default_syntax P_((
OnigSyntaxType * syntax));
134ONIG_EXTERN
const char *onig_version P_((
void));
135ONIG_EXTERN
const char *onig_copyright P_((
void));
136ONIG_EXTERN
int onig_end P_((
void));
141 const char *pat,
int options));
143 const char *str,
size_t nmatch,
147ONIG_EXTERN
size_t onig_posix_regerror P_((
int code,
149 char *buf,
size_t size));
152ONIG_EXTERN
void onig_posix_reg_set_encoding P_((
int enc));
153ONIG_EXTERN
int onig_posix_reg_name_to_group_numbers
155 const unsigned char *name_end,
int **nums));
156ONIG_EXTERN
int onig_posix_reg_foreach_name
158 int (*func)(
const unsigned char *,
const unsigned char *,
int,
int *,
164#define regex_t onig_posix_regex_t
165#define regmatch_t onig_posix_regmatch_t
166#define regoff_t onig_posix_regoff_t
168#define regcomp onig_posix_regcomp
169#define regexec onig_posix_regexec
170#define regfree onig_posix_regfree
171#define regerror onig_posix_regerror
172#define reg_set_encoding onig_posix_reg_set_encoding
173#define reg_name_to_group_numbers onig_posix_reg_name_to_group_numbers
174#define reg_foreach_name onig_posix_reg_foreach_name
175#define reg_number_of_names onig_posix_reg_number_of_names
Definition onigposix.h:99
Definition onigposix.h:63
Definition onigposix.h:57