Debian Codegraph @

vendor/onigmo-source/onigmoposix.h

raw symbols SCIP
1 #cxx . . $ `<file>/vendor/onigmo-source/onigmoposix.h`/ifndef ONIGMOPOSIX_H
2 #define ONIGMOPOSIX_Hcxx . . $ `vendor/onigmo-source/onigmoposix.h:2:9`!
3 /**********************************************************************
4 onigmoposix.h - Onigmo (Oniguruma-mod) (regular expression library)
5 **********************************************************************/
6 /*-
7 * Copyright (c) 2002-2005 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
8 * Copyright (c) 2011-2016 K.Takata <kentkt AT csc DOT jp>
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32 #include <stdlib.h>
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 /* options */
39 #define REG_ICASEcxx . . $ `vendor/onigmo-source/onigmoposix.h:39:9`! (1<<0)
40 #define REG_NEWLINEcxx . . $ `vendor/onigmo-source/onigmoposix.h:40:9`! (1<<1)
41 #define REG_NOTBOLcxx . . $ `vendor/onigmo-source/onigmoposix.h:41:9`! (1<<2)
42 #define REG_NOTEOLcxx . . $ `vendor/onigmo-source/onigmoposix.h:42:9`! (1<<3)
43 #define REG_EXTENDEDcxx . . $ `vendor/onigmo-source/onigmoposix.h:43:9`! (1<<4) /* if not set, Basic Onigular Expression */
44 #define REG_NOSUBcxx . . $ `vendor/onigmo-source/onigmoposix.h:44:9`! (1<<5)
45
46 /* POSIX error codes */
47 #define REG_NOMATCHcxx . . $ `vendor/onigmo-source/onigmoposix.h:47:9`! 1
48 #define REG_BADPATcxx . . $ `vendor/onigmo-source/onigmoposix.h:48:9`! 2
49 #define REG_ECOLLATEcxx . . $ `vendor/onigmo-source/onigmoposix.h:49:9`! 3
50 #define REG_ECTYPEcxx . . $ `vendor/onigmo-source/onigmoposix.h:50:9`! 4
51 #define REG_EESCAPEcxx . . $ `vendor/onigmo-source/onigmoposix.h:51:9`! 5
52 #define REG_ESUBREGcxx . . $ `vendor/onigmo-source/onigmoposix.h:52:9`! 6
53 #define REG_EBRACKcxx . . $ `vendor/onigmo-source/onigmoposix.h:53:9`! 7
54 #define REG_EPARENcxx . . $ `vendor/onigmo-source/onigmoposix.h:54:9`! 8
55 #define REG_EBRACEcxx . . $ `vendor/onigmo-source/onigmoposix.h:55:9`! 9
56 #define REG_BADBRcxx . . $ `vendor/onigmo-source/onigmoposix.h:56:9`! 10
57 #define REG_ERANGEcxx . . $ `vendor/onigmo-source/onigmoposix.h:57:9`! 11
58 #define REG_ESPACEcxx . . $ `vendor/onigmo-source/onigmoposix.h:58:9`! 12
59 #define REG_BADRPTcxx . . $ `vendor/onigmo-source/onigmoposix.h:59:9`! 13
60
61 /* extended error codes */
62 #define REG_EONIG_INTERNALcxx . . $ `vendor/onigmo-source/onigmoposix.h:62:9`! 14
63 #define REG_EONIG_BADWCcxx . . $ `vendor/onigmo-source/onigmoposix.h:63:9`! 15
64 #define REG_EONIG_BADARGcxx . . $ `vendor/onigmo-source/onigmoposix.h:64:9`! 16
65 /* #define REG_EONIG_THREAD 17 */
66
67 /* character encodings (for reg_set_encoding()) */
68 #define REG_POSIX_ENCODING_ASCIIcxx . . $ `vendor/onigmo-source/onigmoposix.h:68:9`! 0
69 #define REG_POSIX_ENCODING_EUC_JPcxx . . $ `vendor/onigmo-source/onigmoposix.h:69:9`! 1
70 #define REG_POSIX_ENCODING_SJIScxx . . $ `vendor/onigmo-source/onigmoposix.h:70:9`! 2
71 #define REG_POSIX_ENCODING_UTF8cxx . . $ `vendor/onigmo-source/onigmoposix.h:71:9`! 3
72 #define REG_POSIX_ENCODING_UTF16_BEcxx . . $ `vendor/onigmo-source/onigmoposix.h:72:9`! 4
73 #define REG_POSIX_ENCODING_UTF16_LEcxx . . $ `vendor/onigmo-source/onigmoposix.h:73:9`! 5
74
75
76 typedef int regoff_tcxx . . $ regoff_t#;
77
78 typedef structcxx . . $ $anonymous_type_f3f2c4fec7a76494_0# {
79 regoff_tcxx . . $ regoff_t# rm_socxx . . $ $anonymous_type_f3f2c4fec7a76494_0#rm_so.;
80 regoff_tcxx . . $ regoff_t# rm_eocxx . . $ $anonymous_type_f3f2c4fec7a76494_0#rm_eo.;
81 } regmatch_tcxx . . $ regmatch_t#;
82
83 /* POSIX regex_t */
84 typedef structcxx . . $ $anonymous_type_f3f2c4fec7a76494_1# {
85 void* onigcxx . . $ $anonymous_type_f3f2c4fec7a76494_1#onig.; /* Oniguruma regex_t* */
86 size_tcxx . . $ size_t# re_nsubcxx . . $ $anonymous_type_f3f2c4fec7a76494_1#re_nsub.;
87 int comp_optionscxx . . $ $anonymous_type_f3f2c4fec7a76494_1#comp_options.;
88 } regex_tcxx . . $ regex_t#;
89
90
91 #ifndef ONIG_EXTERNcxx . . $ `<built-in>:416:9`!
92 # if defined(_WIN32) && !defined(__GNUC__)
93 # if defined(EXPORT)
94 # define ONIG_EXTERN extern __declspec(dllexport)
95 # else
96 # define ONIG_EXTERN extern __declspec(dllimport)
97 # endif
98 # endif
99 #endif
100
101 #ifndef ONIG_EXTERNcxx . . $ `<built-in>:416:9`!
102 # define ONIG_EXTERN extern
103 #endif
104
105 #ifndef ONIGMO_Hcxx . . $ `vendor/onigmo-source/onigmo.h:2:9`!
106 typedef unsigned int OnigOptionTypecxx . . $ OnigOptionType#;
107
108 /* syntax */
109 typedef structcxx . . $ $anonymous_type_f3f2c4fec7a76494_2# {
110 unsigned int opcxx . . $ $anonymous_type_f3f2c4fec7a76494_2#op.;
111 unsigned int op2cxx . . $ $anonymous_type_f3f2c4fec7a76494_2#op2.;
112 unsigned int behaviorcxx . . $ $anonymous_type_f3f2c4fec7a76494_2#behavior.;
113 OnigOptionTypecxx . . $ OnigOptionType# optionscxx . . $ $anonymous_type_f3f2c4fec7a76494_2#options.; /* default option */
114 } OnigSyntaxTypecxx . . $ OnigSyntaxType#;
115
116 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxPosixBasiccxx . . $ OnigSyntaxPosixBasic.;
117 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxPosixExtendedcxx . . $ OnigSyntaxPosixExtended.;
118 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxEmacscxx . . $ OnigSyntaxEmacs.;
119 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxGrepcxx . . $ OnigSyntaxGrep.;
120 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxGnuRegexcxx . . $ OnigSyntaxGnuRegex.;
121 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxJavacxx . . $ OnigSyntaxJava.;
122 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxPerlcxx . . $ OnigSyntaxPerl.;
123 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxRubycxx . . $ OnigSyntaxRuby.;
124
125 /* predefined syntaxes (see regsyntax.c) */
126 #define ONIG_SYNTAX_POSIX_BASICcxx . . $ `vendor/onigmo-source/onigmoposix.h:126:9`! (&OnigSyntaxPosixBasic)
127 #define ONIG_SYNTAX_POSIX_EXTENDEDcxx . . $ `vendor/onigmo-source/onigmoposix.h:127:9`! (&OnigSyntaxPosixExtended)
128 #define ONIG_SYNTAX_EMACScxx . . $ `vendor/onigmo-source/onigmoposix.h:128:9`! (&OnigSyntaxEmacs)
129 #define ONIG_SYNTAX_GREPcxx . . $ `vendor/onigmo-source/onigmoposix.h:129:9`! (&OnigSyntaxGrep)
130 #define ONIG_SYNTAX_GNU_REGEXcxx . . $ `vendor/onigmo-source/onigmoposix.h:130:9`! (&OnigSyntaxGnuRegex)
131 #define ONIG_SYNTAX_JAVAcxx . . $ `vendor/onigmo-source/onigmoposix.h:131:9`! (&OnigSyntaxJava)
132 #define ONIG_SYNTAX_PERLcxx . . $ `vendor/onigmo-source/onigmoposix.h:132:9`! (&OnigSyntaxPerl)
133 #define ONIG_SYNTAX_RUBYcxx . . $ `vendor/onigmo-source/onigmoposix.h:133:9`! (&OnigSyntaxRuby)
134 /* default syntax */
135 #define ONIG_SYNTAX_DEFAULTcxx . . $ `vendor/onigmo-source/onigmoposix.h:135:9`! OnigDefaultSyntax
136
137 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const OnigSyntaxTypecxx . . $ OnigSyntaxType#* OnigDefaultSyntaxcxx . . $ OnigDefaultSyntax.;
138
139 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! int onig_set_default_syntaxcxx . . $ onig_set_default_syntax(72961fbd4ad24c8c).(const OnigSyntaxTypecxx . . $ OnigSyntaxType#* syntax);
140 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! void onig_copy_syntaxcxx . . $ onig_copy_syntax(e2de43fad48cc3a9).(OnigSyntaxTypecxx . . $ OnigSyntaxType#* to, const OnigSyntaxTypecxx . . $ OnigSyntaxType#* from);
141 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const char* onig_versioncxx . . $ onig_version(33a1f659e94feb42).(void);
142 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! const char* onig_copyrightcxx . . $ onig_copyright(33a1f659e94feb42).(void);
143
144 #endif /* ONIGMO_H */
145
146
147 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! int regcompcxx . . $ regcomp(7d3483c078aef8a).(regex_tcxx . . $ regex_t#* reg, const char* pat, int options);
148 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! int regexeccxx . . $ regexec(df0da16647a0e527).(regex_tcxx . . $ regex_t#* reg, const char* str, size_tcxx . . $ size_t# nmatch, regmatch_tcxx . . $ regmatch_t#* matches, int options);
149 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! void regfreecxx . . $ regfree(ab82da76d8b744a9).(regex_tcxx . . $ regex_t#* reg);
150 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! size_tcxx . . $ size_t# regerrorcxx . . $ regerror(938bc6f5785bacb1).(int code, const regex_tcxx . . $ regex_t#* reg, char* buf, size_tcxx . . $ size_t# size);
151
152 /* extended API */
153 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! void reg_set_encodingcxx . . $ reg_set_encoding(d4f767463ce0a6b3).(int enc);
154 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! int reg_name_to_group_numberscxx . . $ reg_name_to_group_numbers(2e3fa3500f4c03ee).(regex_tcxx . . $ regex_t#* reg, const unsigned char* name, const unsigned char* name_end, int** nums);
155 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! int reg_foreach_namecxx . . $ reg_foreach_name(aa59a9e9016fce4e).(regex_tcxx . . $ regex_t#* reg, int (*func)(const unsigned char*, const unsigned char*,int,int*,regex_tcxx . . $ regex_t#*,void*), void* arg);
156 ONIG_EXTERNcxx . . $ `<built-in>:416:9`! int reg_number_of_namescxx . . $ reg_number_of_names(d43d46549d27ae24).(regex_tcxx . . $ regex_t#* reg);
157
158 #ifdef __cplusplus
159 }
160 #endif
161
162 #endif /* ONIGMOPOSIX_H */