Debian Codegraph @

vendor/onigmo-source/regint.h

raw symbols SCIP
1 #cxx . . $ `<file>/vendor/onigmo-source/regint.h`/ifndef ONIGMO_REGINT_H
2 #define ONIGMO_REGINT_Hcxx . . $ `vendor/onigmo-source/regint.h:2:9`!
3 /**********************************************************************
4 regint.h - Onigmo (Oniguruma-mod) (regular expression library)
5 **********************************************************************/
6 /*-
7 * Copyright (c) 2002-2013 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
33 /* for debug */
34 /* #define ONIG_DEBUG_PARSE_TREE */
35 /* #define ONIG_DEBUG_COMPILE */
36 /* #define ONIG_DEBUG_SEARCH */
37 /* #define ONIG_DEBUG_MATCH */
38 /* #define ONIG_DEBUG_MEMLEAK */
39 /* #define ONIG_DONT_OPTIMIZE */
40
41 /* for byte-code statistical data. */
42 /* #define ONIG_DEBUG_STATISTICS */
43
44 #if defined(ONIG_DEBUG_PARSE_TREE) || defined(ONIG_DEBUG_MATCH) || \
45 defined(ONIG_DEBUG_SEARCH) || defined(ONIG_DEBUG_COMPILE) || \
46 defined(ONIG_DEBUG_STATISTICS) || defined(ONIG_DEBUG_MEMLEAK)
47 # ifndef ONIG_DEBUG
48 # define ONIG_DEBUG
49 # endif
50 #endif
51
52 #ifndef UNALIGNED_WORD_ACCESS
53 # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
54 defined(__x86_64cxx . . $ `<built-in>:371:9`!) || defined(__x86_64__cxx . . $ `<built-in>:372:9`!) || defined(_M_AMD64) || \
55 defined(__powerpc64__) || \
56 defined(__mc68020__)
57 # define UNALIGNED_WORD_ACCESScxx . . $ `vendor/onigmo-source/regint.h:57:11`! 1
58 # else
59 # define UNALIGNED_WORD_ACCESS 0
60 # endif
61 #endif
62
63 #if UNALIGNED_WORD_ACCESScxx . . $ `vendor/onigmo-source/regint.h:57:11`!
64 # define PLATFORM_UNALIGNED_WORD_ACCESScxx . . $ `vendor/onigmo-source/regint.h:64:10`!
65 #endif
66
67 /* config */
68 /* spec. config */
69 #define USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
70 #define USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!
71 #define USE_PERL_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:71:9`!
72 #define USE_CAPITAL_P_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:72:9`!
73 #define USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`! /* \k<name+n>, \k<name-n> */
74 #define USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEATcxx . . $ `vendor/onigmo-source/regint.h:74:9`! /* /(?:()|())*\2/ */
75 #define USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINEcxx . . $ `vendor/onigmo-source/regint.h:75:9`! /* /\n$/ =~ "\n" */
76 #define USE_WARNING_REDUNDANT_NESTED_REPEAT_OPERATORcxx . . $ `vendor/onigmo-source/regint.h:76:9`!
77 /* !!! moved to regenc.h. */ /* #define USE_CRNL_AS_LINE_TERMINATOR */
78 #define USE_NO_INVALID_QUANTIFIERcxx . . $ `vendor/onigmo-source/regint.h:78:9`!
79
80 /* internal config */
81 /* #define USE_OP_PUSH_OR_JUMP_EXACT */
82 #define USE_QTFR_PEEK_NEXTcxx . . $ `vendor/onigmo-source/regint.h:82:9`!
83 #define USE_ST_LIBRARYcxx . . $ `vendor/onigmo-source/regint.h:83:9`!
84 #define USE_SUNDAY_QUICK_SEARCHcxx . . $ `vendor/onigmo-source/regint.h:84:9`!
85
86 #define INIT_MATCH_STACK_SIZEcxx . . $ `vendor/onigmo-source/regint.h:86:9`! 160
87 #define DEFAULT_MATCH_STACK_LIMIT_SIZEcxx . . $ `vendor/onigmo-source/regint.h:87:9`! 0 /* unlimited */
88 #define DEFAULT_PARSE_DEPTH_LIMITcxx . . $ `vendor/onigmo-source/regint.h:88:9`! 4096
89
90 #define OPT_EXACT_MAXLENcxx . . $ `vendor/onigmo-source/regint.h:90:9`! 24
91
92 /* check config */
93 #if defined(USE_PERL_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:71:9`!) || defined(USE_CAPITAL_P_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:72:9`!)
94 # if !defined(USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!) || !defined(USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!)
95 # error USE_NAMED_GROUP and USE_SUBEXP_CALL must be defined.
96 # endif
97 #endif
98
99 #if defined(__GNUC__cxx . . $ `<built-in>:8:9`!)
100 # define ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`! __attribute__ ((unused))
101 #else
102 # define ARG_UNUSED
103 #endif
104
105 #if !defined(RUBY) && defined(RUBY_EXPORT)
106 # define RUBY
107 #endif
108 #ifdef RUBY
109 # ifndef RUBY_DEFINES_H
110 # include "ruby/ruby.h"
111 # undef xmalloc
112 # undef xrealloc
113 # undef xcalloc
114 # undef xfree
115 # endif
116 #else /* RUBY */
117 # include "config.h"cxx . . $ `<file>/build/vendor/onigmo-source/config.h`/
118 # if SIZEOF_LONG_LONGcxx . . $ `<built-in>:419:9`! > 0
119 # define LONG_LONGcxx . . $ `vendor/onigmo-source/regint.h:119:11`! long long
120 # endif
121 #endif /* RUBY */
122
123 #include <stdarg.h>
124
125 /* */
126 /* escape other system UChar definition */
127 #ifdef ONIG_ESCAPE_UCHAR_COLLISION
128 # undef ONIG_ESCAPE_UCHAR_COLLISION
129 #endif
130
131 #define USE_WORD_BEGIN_ENDcxx . . $ `vendor/onigmo-source/regint.h:131:9`! /* "\<": word-begin, "\>": word-end */
132 #ifdef RUBY
133 # undef USE_CAPTURE_HISTORY
134 #else
135 # define USE_CAPTURE_HISTORYcxx . . $ `vendor/onigmo-source/regint.h:135:10`!
136 #endif
137 #define USE_VARIABLE_META_CHARScxx . . $ `vendor/onigmo-source/regint.h:137:9`!
138 #define USE_FIND_LONGEST_SEARCH_ALL_OF_RANGEcxx . . $ `vendor/onigmo-source/regint.h:138:9`!
139 /* #define USE_COMBINATION_EXPLOSION_CHECK */ /* (X*)* */
140
141
142 #ifndef xmalloc
143 # define xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`! malloc
144 # define xrealloccxx . . $ `vendor/onigmo-source/regint.h:144:10`! realloc
145 # define xcalloccxx . . $ `vendor/onigmo-source/regint.h:145:10`! calloc
146 # define xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`! free
147 #endif
148
149 #ifdef RUBY
150
151 # define CHECK_INTERRUPT_IN_MATCH_AT rb_thread_check_ints()
152 # define onig_st_init_table st_init_table
153 # define onig_st_init_table_with_size st_init_table_with_size
154 # define onig_st_init_numtable st_init_numtable
155 # define onig_st_init_numtable_with_size st_init_numtable_with_size
156 # define onig_st_init_strtable st_init_strtable
157 # define onig_st_init_strtable_with_size st_init_strtable_with_size
158 # define onig_st_delete st_delete
159 # define onig_st_delete_safe st_delete_safe
160 # define onig_st_insert st_insert
161 # define onig_st_lookup st_lookup
162 # define onig_st_foreach st_foreach
163 # define onig_st_add_direct st_add_direct
164 # define onig_st_free_table st_free_table
165 # define onig_st_cleanup_safe st_cleanup_safe
166 # define onig_st_copy st_copy
167 # define onig_st_nothing_key_clone st_nothing_key_clone
168 # define onig_st_nothing_key_free st_nothing_key_free
169 # define onig_st_is_member st_is_member
170
171 # define USE_UPPER_CASE_TABLE
172 #else /* RUBY */
173
174 # define CHECK_INTERRUPT_IN_MATCH_ATcxx . . $ `vendor/onigmo-source/regint.h:174:10`!
175
176 # define st_init_tablecxx . . $ `vendor/onigmo-source/regint.h:176:10`! onig_st_init_table
177 # define st_init_table_with_sizecxx . . $ `vendor/onigmo-source/regint.h:177:10`! onig_st_init_table_with_size
178 # define st_init_numtablecxx . . $ `vendor/onigmo-source/regint.h:178:10`! onig_st_init_numtable
179 # define st_init_numtable_with_sizecxx . . $ `vendor/onigmo-source/regint.h:179:10`! onig_st_init_numtable_with_size
180 # define st_init_strtablecxx . . $ `vendor/onigmo-source/regint.h:180:10`! onig_st_init_strtable
181 # define st_init_strtable_with_sizecxx . . $ `vendor/onigmo-source/regint.h:181:10`! onig_st_init_strtable_with_size
182 # define st_deletecxx . . $ `vendor/onigmo-source/regint.h:182:10`! onig_st_delete
183 # define st_delete_safecxx . . $ `vendor/onigmo-source/regint.h:183:10`! onig_st_delete_safe
184 # define st_insertcxx . . $ `vendor/onigmo-source/regint.h:184:10`! onig_st_insert
185 # define st_lookupcxx . . $ `vendor/onigmo-source/regint.h:185:10`! onig_st_lookup
186 # define st_foreachcxx . . $ `vendor/onigmo-source/regint.h:186:10`! onig_st_foreach
187 # define st_add_directcxx . . $ `vendor/onigmo-source/regint.h:187:10`! onig_st_add_direct
188 # define st_free_tablecxx . . $ `vendor/onigmo-source/regint.h:188:10`! onig_st_free_table
189 # define st_cleanup_safecxx . . $ `vendor/onigmo-source/regint.h:189:10`! onig_st_cleanup_safe
190 # define st_copycxx . . $ `vendor/onigmo-source/regint.h:190:10`! onig_st_copy
191 # define st_nothing_key_clonecxx . . $ `vendor/onigmo-source/regint.h:191:10`! onig_st_nothing_key_clone
192 # define st_nothing_key_freecxx . . $ `vendor/onigmo-source/regint.h:192:10`! onig_st_nothing_key_free
193 /* */
194 # define onig_st_is_membercxx . . $ `vendor/onigmo-source/regint.h:194:10`! st_is_member
195
196 #endif /* RUBY */
197
198 #define STATE_CHECK_STRING_THRESHOLD_LENcxx . . $ `vendor/onigmo-source/regint.h:198:9`! 7
199 #define STATE_CHECK_BUFF_MAX_SIZEcxx . . $ `vendor/onigmo-source/regint.h:199:9`! 0x4000
200
201 #define xmemsetcxx . . $ `vendor/onigmo-source/regint.h:201:9`! memset
202 #define xmemcpycxx . . $ `vendor/onigmo-source/regint.h:202:9`! memcpy
203 #define xmemmovecxx . . $ `vendor/onigmo-source/regint.h:203:9`! memmove
204
205 #if ((defined(RUBY_MSVCRT_VERSION) && RUBY_MSVCRT_VERSION >= 90) \
206 || (!defined(RUBY_MSVCRT_VERSION) && defined(_WIN32))) \
207 && !defined(__GNUC__cxx . . $ `<built-in>:8:9`!)
208 # define xalloca _alloca
209 # define xvsnprintf(buf,size,fmt,args) _vsnprintf_s(buf,size,_TRUNCATE,fmt,args)
210 # define xsnprintf sprintf_s
211 # define xstrcat(dest,src,size) strcat_s(dest,size,src)
212 #else
213 # define xallocacxx . . $ `vendor/onigmo-source/regint.h:213:10`! alloca
214 # define xvsnprintfcxx . . $ `vendor/onigmo-source/regint.h:214:10`! vsnprintf
215 # define xsnprintfcxx . . $ `vendor/onigmo-source/regint.h:215:10`! snprintf
216 # define xstrcatcxx . . $ `vendor/onigmo-source/regint.h:216:10`!(dest,src,size) strcat(dest,src)
217 #endif
218
219 #if defined(ONIG_DEBUG_MEMLEAK) && defined(_MSC_VER)
220 # define _CRTDBG_MAP_ALLOC
221 # include <malloc.h>
222 # include <crtdbg.h>
223 #endif
224
225 #include <stdlib.h>
226
227 #if defined(HAVE_ALLOCA_H) && (defined(_AIX) || !defined(__GNUC__cxx . . $ `<built-in>:8:9`!))
228 # include <alloca.h>
229 #endif
230
231 #include <string.h>
232
233 #include <ctype.h>
234 #ifdef HAVE_SYS_TYPES_Hcxx . . $ `<built-in>:415:9`!
235 # include <sys/types.h>
236 #endif
237
238 #ifdef HAVE_STDINT_Hcxx . . $ `<built-in>:412:9`!
239 # include <stdint.h>
240 #endif
241
242 #ifdef HAVE_INTTYPES_Hcxx . . $ `<built-in>:410:9`!
243 # include <inttypes.h>
244 #endif
245
246 #include <stddef.h>
247
248 #ifdef _WIN32
249 # include <malloc.h> /* for alloca() */
250 #endif
251
252 #ifdef ONIG_DEBUG
253 # include <stdio.h>
254 #endif
255
256 #ifdef _WIN32
257 # if defined(_MSC_VER) && (_MSC_VER < 1300)
258 # ifndef _INTPTR_T_DEFINED
259 # define _INTPTR_T_DEFINED
260 typedef int intptr_t;
261 # endif
262 # ifndef _UINTPTR_T_DEFINED
263 # define _UINTPTR_T_DEFINED
264 typedef unsigned int uintptr_t;
265 # endif
266 # endif
267 #endif /* _WIN32 */
268
269 #ifndef PRIdPTRcxx . . $ `<external>/15933738808807975373/inttypes.h:165:10`!
270 # ifdef _WIN64
271 # define PRIdPTR "I64d"
272 # define PRIuPTR "I64u"
273 # define PRIxPTR "I64x"
274 # else
275 # define PRIdPTR "ld"
276 # define PRIuPTR "lu"
277 # define PRIxPTR "lx"
278 # endif
279 #endif
280
281 #ifndef PRIdPTRDIFF
282 # define PRIdPTRDIFFcxx . . $ `vendor/onigmo-source/regint.h:282:10`! PRIdPTR
283 #endif
284
285 #include "regenc.h"cxx . . $ `<file>/vendor/onigmo-source/regenc.h`/
286
287 RUBY_SYMBOL_EXPORT_BEGINcxx . . $ `vendor/onigmo-source/onigmo.h:64:11`!
288
289 #ifdef MIN
290 # undef MIN
291 #endif
292 #ifdef MAX
293 # undef MAX
294 #endif
295 #define MINcxx . . $ `vendor/onigmo-source/regint.h:295:9`!(a,b) (((a)>(b))?(b):(a))
296 #define MAXcxx . . $ `vendor/onigmo-source/regint.h:296:9`!(a,b) (((a)<(b))?(b):(a))
297
298 #define IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(p) (((void*)(p)) == (void*)0)
299 #define IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(p) (((void*)(p)) != (void*)0)
300 #define CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(p) if (IS_NULL(p)) return NULL
301 #define CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(p) if (IS_NULL(p)) return ONIGERR_MEMORY
302 #define NULL_UCHARPcxx . . $ `vendor/onigmo-source/regint.h:302:9`! ((UChar* )0)
303
304 #define ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`! (~((OnigCodePoint )0))
305
306 #ifdef PLATFORM_UNALIGNED_WORD_ACCESScxx . . $ `vendor/onigmo-source/regint.h:64:10`!
307
308 # define PLATFORM_GET_INCcxx . . $ `vendor/onigmo-source/regint.h:308:10`!(val,p,type) do{\
309 val = *(type* )p;\
310 (p) += sizeof(type);\
311 } while(0)
312
313 #else
314
315 # define PLATFORM_GET_INC(val,p,type) do{\
316 xmemcpy(&val, (p), sizeof(type));\
317 (p) += sizeof(type);\
318 } while(0)
319
320 /* sizeof(OnigCodePoint) */
321 # define WORD_ALIGNMENT_SIZE SIZEOF_LONG
322
323 # define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\
324 (pad_size) = WORD_ALIGNMENT_SIZE \
325 - ((uintptr_t )(addr) % WORD_ALIGNMENT_SIZE);\
326 if ((pad_size) == WORD_ALIGNMENT_SIZE) (pad_size) = 0;\
327 } while (0)
328
329 # define ALIGNMENT_RIGHT(addr) do {\
330 (addr) += (WORD_ALIGNMENT_SIZE - 1);\
331 (addr) -= ((uintptr_t )(addr) % WORD_ALIGNMENT_SIZE);\
332 } while (0)
333
334 #endif /* PLATFORM_UNALIGNED_WORD_ACCESS */
335
336 /* stack pop level */
337 #define STACK_POP_LEVEL_FREEcxx . . $ `vendor/onigmo-source/regint.h:337:9`! 0
338 #define STACK_POP_LEVEL_MEM_STARTcxx . . $ `vendor/onigmo-source/regint.h:338:9`! 1
339 #define STACK_POP_LEVEL_ALLcxx . . $ `vendor/onigmo-source/regint.h:339:9`! 2
340
341 /* optimize flags */
342 #define ONIG_OPTIMIZE_NONEcxx . . $ `vendor/onigmo-source/regint.h:342:9`! 0
343 #define ONIG_OPTIMIZE_EXACTcxx . . $ `vendor/onigmo-source/regint.h:343:9`! 1 /* Slow Search */
344 #define ONIG_OPTIMIZE_EXACT_BMcxx . . $ `vendor/onigmo-source/regint.h:344:9`! 2 /* Boyer Moore Search */
345 #define ONIG_OPTIMIZE_EXACT_BM_NOT_REVcxx . . $ `vendor/onigmo-source/regint.h:345:9`! 3 /* BM (applied to a multibyte string) */
346 #define ONIG_OPTIMIZE_EXACT_ICcxx . . $ `vendor/onigmo-source/regint.h:346:9`! 4 /* Slow Search (ignore case) */
347 #define ONIG_OPTIMIZE_MAPcxx . . $ `vendor/onigmo-source/regint.h:347:9`! 5 /* char map */
348 #define ONIG_OPTIMIZE_EXACT_BM_ICcxx . . $ `vendor/onigmo-source/regint.h:348:9`! 6 /* BM (ignore case) */
349 #define ONIG_OPTIMIZE_EXACT_BM_NOT_REV_ICcxx . . $ `vendor/onigmo-source/regint.h:349:9`! 7 /* BM (applied to a multibyte string) (ignore case) */
350
351 /* bit status */
352 typedef unsigned int BitStatusTypecxx . . $ BitStatusType#;
353
354 #define BIT_STATUS_BITS_NUMcxx . . $ `vendor/onigmo-source/regint.h:354:9`! (sizeof(BitStatusType) * 8)
355 #define BIT_STATUS_CLEARcxx . . $ `vendor/onigmo-source/regint.h:355:9`!(stats) (stats) = 0
356 #define BIT_STATUS_ON_ALLcxx . . $ `vendor/onigmo-source/regint.h:356:9`!(stats) (stats) = ~((BitStatusType )0)
357 #define BIT_STATUS_ATcxx . . $ `vendor/onigmo-source/regint.h:357:9`!(stats,n) \
358 ((n) < (int )BIT_STATUS_BITS_NUM ? ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
359
360 #define BIT_STATUS_ON_ATcxx . . $ `vendor/onigmo-source/regint.h:360:9`!(stats,n) do {\
361 if ((n) < (int )BIT_STATUS_BITS_NUM)\
362 (stats) |= (1 << (n));\
363 else\
364 (stats) |= 1;\
365 } while (0)
366
367 #define BIT_STATUS_ON_AT_SIMPLEcxx . . $ `vendor/onigmo-source/regint.h:367:9`!(stats,n) do {\
368 if ((n) < (int )BIT_STATUS_BITS_NUM)\
369 (stats) |= (1 << (n));\
370 } while (0)
371
372
373 #define INT_MAX_LIMITcxx . . $ `vendor/onigmo-source/regint.h:373:9`! ((1UL << (SIZEOF_INT * 8 - 1)) - 1)
374
375 #define DIGITVALcxx . . $ `vendor/onigmo-source/regint.h:375:9`!(code) ((code) - '0')
376 #define ODIGITVALcxx . . $ `vendor/onigmo-source/regint.h:376:9`!(code) DIGITVAL(code)
377 #define XDIGITVALcxx . . $ `vendor/onigmo-source/regint.h:377:9`!(enc,code) \
378 (ONIGENC_IS_CODE_DIGIT(enc,code) ? DIGITVAL(code) \
379 : (ONIGENC_IS_CODE_UPPER(enc,code) ? (code) - 'A' + 10 : (code) - 'a' + 10))
380
381 #define IS_SINGLELINEcxx . . $ `vendor/onigmo-source/regint.h:381:9`!(option) ((option) & ONIG_OPTION_SINGLELINE)
382 #define IS_MULTILINEcxx . . $ `vendor/onigmo-source/regint.h:382:9`!(option) ((option) & ONIG_OPTION_MULTILINE)
383 #define IS_IGNORECASEcxx . . $ `vendor/onigmo-source/regint.h:383:9`!(option) ((option) & ONIG_OPTION_IGNORECASE)
384 #define IS_EXTENDcxx . . $ `vendor/onigmo-source/regint.h:384:9`!(option) ((option) & ONIG_OPTION_EXTEND)
385 #define IS_FIND_LONGESTcxx . . $ `vendor/onigmo-source/regint.h:385:9`!(option) ((option) & ONIG_OPTION_FIND_LONGEST)
386 #define IS_FIND_NOT_EMPTYcxx . . $ `vendor/onigmo-source/regint.h:386:9`!(option) ((option) & ONIG_OPTION_FIND_NOT_EMPTY)
387 #define IS_FIND_CONDITIONcxx . . $ `vendor/onigmo-source/regint.h:387:9`!(option) ((option) & \
388 (ONIG_OPTION_FIND_LONGEST | ONIG_OPTION_FIND_NOT_EMPTY))
389 #define IS_NOTBOLcxx . . $ `vendor/onigmo-source/regint.h:389:9`!(option) ((option) & ONIG_OPTION_NOTBOL)
390 #define IS_NOTEOLcxx . . $ `vendor/onigmo-source/regint.h:390:9`!(option) ((option) & ONIG_OPTION_NOTEOL)
391 #define IS_NOTBOScxx . . $ `vendor/onigmo-source/regint.h:391:9`!(option) ((option) & ONIG_OPTION_NOTBOS)
392 #define IS_NOTEOScxx . . $ `vendor/onigmo-source/regint.h:392:9`!(option) ((option) & ONIG_OPTION_NOTEOS)
393 #define IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(option) ((option) & ONIG_OPTION_ASCII_RANGE)
394 #define IS_POSIX_BRACKET_ALL_RANGEcxx . . $ `vendor/onigmo-source/regint.h:394:9`!(option) ((option) & ONIG_OPTION_POSIX_BRACKET_ALL_RANGE)
395 #define IS_WORD_BOUND_ALL_RANGEcxx . . $ `vendor/onigmo-source/regint.h:395:9`!(option) ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE)
396 #define IS_NEWLINE_CRLFcxx . . $ `vendor/onigmo-source/regint.h:396:9`!(option) ((option) & ONIG_OPTION_NEWLINE_CRLF)
397
398 /* OP_SET_OPTION is required for these options.
399 #define IS_DYNAMIC_OPTION(option) \
400 (((option) & (ONIG_OPTION_MULTILINE | ONIG_OPTION_IGNORECASE)) != 0)
401 */
402 /* ignore-case and multibyte status are included in compiled code. */
403 #define IS_DYNAMIC_OPTIONcxx . . $ `vendor/onigmo-source/regint.h:403:9`!(option) 0
404
405 #define DISABLE_CASE_FOLD_MULTI_CHARcxx . . $ `vendor/onigmo-source/regint.h:405:9`!(case_fold_flag) \
406 ((case_fold_flag) & ~INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR)
407
408 #define REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`! -1
409 #define IS_REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:409:9`!(n) ((n) == REPEAT_INFINITE)
410
411 /* bitset */
412 #define BITS_PER_BYTEcxx . . $ `vendor/onigmo-source/regint.h:412:9`! 8
413 #define SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`! (1 << BITS_PER_BYTEcxx . . $ `vendor/onigmo-source/regint.h:412:9`!)
414 #define BITS_IN_ROOMcxx . . $ `vendor/onigmo-source/regint.h:414:9`! ((int )sizeof(Bits) * BITS_PER_BYTEcxx . . $ `vendor/onigmo-source/regint.h:412:9`!)
415 #define BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`! (SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`! / BITS_IN_ROOMcxx . . $ `vendor/onigmo-source/regint.h:414:9`!)
416
417 #ifdef PLATFORM_UNALIGNED_WORD_ACCESScxx . . $ `vendor/onigmo-source/regint.h:64:10`!
418 typedef unsigned int Bitscxx . . $ Bits#;
419 #else
420 typedef unsigned char Bits;
421 #endif
422 typedef Bitscxx . . $ Bits# BitSetcxx . . $ BitSet#[BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!];
423 typedef Bitscxx . . $ Bits#* BitSetRefcxx . . $ BitSetRef#;
424
425 #define SIZE_BITSETcxx . . $ `vendor/onigmo-source/regint.h:425:9`! (int )sizeof(BitSet)
426
427 #define BITSET_CLEARcxx . . $ `vendor/onigmo-source/regint.h:427:9`!(bs) do {\
428 int i;\
429 for (i = 0; i < BITSET_SIZE; i++) { (bs)[i] = 0; } \
430 } while (0)
431
432 #define BS_ROOMcxx . . $ `vendor/onigmo-source/regint.h:432:9`!(bs,pos) (bs)[(int )(pos) / BITS_IN_ROOM]
433 #define BS_BITcxx . . $ `vendor/onigmo-source/regint.h:433:9`!(pos) (1U << ((int )(pos) % BITS_IN_ROOM))
434
435 #define BITSET_ATcxx . . $ `vendor/onigmo-source/regint.h:435:9`!(bs, pos) (BS_ROOM(bs,pos) & BS_BIT(pos))
436 #define BITSET_SET_BITcxx . . $ `vendor/onigmo-source/regint.h:436:9`!(bs, pos) BS_ROOM(bs,pos) |= BS_BIT(pos)
437 #define BITSET_CLEAR_BITcxx . . $ `vendor/onigmo-source/regint.h:437:9`!(bs, pos) BS_ROOM(bs,pos) &= ~(BS_BIT(pos))
438 #define BITSET_INVERT_BITcxx . . $ `vendor/onigmo-source/regint.h:438:9`!(bs, pos) BS_ROOM(bs,pos) ^= BS_BIT(pos)
439
440 /* bytes buffer */
441 typedef struct _BBufcxx . . $ _BBuf# {
442 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pcxx . . $ _BBuf#p.;
443 unsigned int usedcxx . . $ _BBuf#used.;
444 unsigned int alloccxx . . $ _BBuf#alloc.;
445 } BBufcxx . . $ BBuf#;
446
447 #define BBUF_INITcxx . . $ `vendor/onigmo-source/regint.h:447:9`!(buf,size) onig_bbuf_init((BBuf* )(buf), (size))
448
449 #define BBUF_SIZE_INCcxx . . $ `vendor/onigmo-source/regint.h:449:9`!(buf,inc) do{\
450 UChar *tmp;\
451 (buf)->alloc += (inc);\
452 tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
453 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
454 (buf)->p = tmp;\
455 } while (0)
456
457 #define BBUF_EXPANDcxx . . $ `vendor/onigmo-source/regint.h:457:9`!(buf,low) do{\
458 UChar *tmp;\
459 do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
460 tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
461 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
462 (buf)->p = tmp;\
463 } while (0)
464
465 #define BBUF_ENSURE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:465:9`!(buf,size) do{\
466 unsigned int new_alloc = (buf)->alloc;\
467 while (new_alloc < (unsigned int )(size)) { new_alloc *= 2; }\
468 if ((buf)->alloc != new_alloc) {\
469 UChar *tmp;\
470 tmp = (UChar* )xrealloc((buf)->p, new_alloc);\
471 if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
472 (buf)->p = tmp;\
473 (buf)->alloc = new_alloc;\
474 }\
475 } while (0)
476
477 #define BBUF_WRITEcxx . . $ `vendor/onigmo-source/regint.h:477:9`!(buf,pos,bytes,n) do{\
478 int used = (pos) + (int )(n);\
479 if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
480 xmemcpy((buf)->p + (pos), (bytes), (n));\
481 if ((buf)->used < (unsigned int )used) (buf)->used = used;\
482 } while (0)
483
484 #define BBUF_WRITE1cxx . . $ `vendor/onigmo-source/regint.h:484:9`!(buf,pos,byte) do{\
485 int used = (pos) + 1;\
486 if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
487 (buf)->p[(pos)] = (UChar )(byte);\
488 if ((buf)->used < (unsigned int )used) (buf)->used = used;\
489 } while (0)
490
491 #define BBUF_ADDcxx . . $ `vendor/onigmo-source/regint.h:491:9`!(buf,bytes,n) BBUF_WRITE((buf),(buf)->used,(bytes),(n))
492 #define BBUF_ADD1cxx . . $ `vendor/onigmo-source/regint.h:492:9`!(buf,byte) BBUF_WRITE1((buf),(buf)->used,(byte))
493 #define BBUF_GET_ADD_ADDRESScxx . . $ `vendor/onigmo-source/regint.h:493:9`!(buf) ((buf)->p + (buf)->used)
494 #define BBUF_GET_OFFSET_POScxx . . $ `vendor/onigmo-source/regint.h:494:9`!(buf) ((buf)->used)
495
496 /* from < to */
497 #define BBUF_MOVE_RIGHTcxx . . $ `vendor/onigmo-source/regint.h:497:9`!(buf,from,to,n) do {\
498 if ((unsigned int )((to)+(n)) > (buf)->alloc) BBUF_EXPAND((buf),(to) + (n));\
499 xmemmove((buf)->p + (to), (buf)->p + (from), (n));\
500 if ((unsigned int )((to)+(n)) > (buf)->used) (buf)->used = (to) + (n);\
501 } while (0)
502
503 /* from > to */
504 #define BBUF_MOVE_LEFTcxx . . $ `vendor/onigmo-source/regint.h:504:9`!(buf,from,to,n) do {\
505 xmemmove((buf)->p + (to), (buf)->p + (from), (n));\
506 } while (0)
507
508 /* from > to */
509 #define BBUF_MOVE_LEFT_REDUCEcxx . . $ `vendor/onigmo-source/regint.h:509:9`!(buf,from,to) do {\
510 xmemmove((buf)->p + (to), (buf)->p + (from), (buf)->used - (from));\
511 (buf)->used -= (from - to);\
512 } while (0)
513
514 #define BBUF_INSERTcxx . . $ `vendor/onigmo-source/regint.h:514:9`!(buf,pos,bytes,n) do {\
515 if (pos >= (buf)->used) {\
516 BBUF_WRITE(buf,pos,bytes,n);\
517 }\
518 else {\
519 BBUF_MOVE_RIGHT((buf),(pos),(pos) + (n),((buf)->used - (pos)));\
520 xmemcpy((buf)->p + (pos), (bytes), (n));\
521 }\
522 } while (0)
523
524 #define BBUF_GET_BYTEcxx . . $ `vendor/onigmo-source/regint.h:524:9`!(buf, pos) (buf)->p[(pos)]
525
526
527 #define ANCHOR_BEGIN_BUFcxx . . $ `vendor/onigmo-source/regint.h:527:9`! (1<<0)
528 #define ANCHOR_BEGIN_LINEcxx . . $ `vendor/onigmo-source/regint.h:528:9`! (1<<1)
529 #define ANCHOR_BEGIN_POSITIONcxx . . $ `vendor/onigmo-source/regint.h:529:9`! (1<<2)
530 #define ANCHOR_END_BUFcxx . . $ `vendor/onigmo-source/regint.h:530:9`! (1<<3)
531 #define ANCHOR_SEMI_END_BUFcxx . . $ `vendor/onigmo-source/regint.h:531:9`! (1<<4)
532 #define ANCHOR_END_LINEcxx . . $ `vendor/onigmo-source/regint.h:532:9`! (1<<5)
533
534 #define ANCHOR_WORD_BOUNDcxx . . $ `vendor/onigmo-source/regint.h:534:9`! (1<<6)
535 #define ANCHOR_NOT_WORD_BOUNDcxx . . $ `vendor/onigmo-source/regint.h:535:9`! (1<<7)
536 #define ANCHOR_WORD_BEGINcxx . . $ `vendor/onigmo-source/regint.h:536:9`! (1<<8)
537 #define ANCHOR_WORD_ENDcxx . . $ `vendor/onigmo-source/regint.h:537:9`! (1<<9)
538 #define ANCHOR_PREC_READcxx . . $ `vendor/onigmo-source/regint.h:538:9`! (1<<10)
539 #define ANCHOR_PREC_READ_NOTcxx . . $ `vendor/onigmo-source/regint.h:539:9`! (1<<11)
540 #define ANCHOR_LOOK_BEHINDcxx . . $ `vendor/onigmo-source/regint.h:540:9`! (1<<12)
541 #define ANCHOR_LOOK_BEHIND_NOTcxx . . $ `vendor/onigmo-source/regint.h:541:9`! (1<<13)
542
543 #define ANCHOR_ANYCHAR_STARcxx . . $ `vendor/onigmo-source/regint.h:543:9`! (1<<14) /* ".*" optimize info */
544 #define ANCHOR_ANYCHAR_STAR_MLcxx . . $ `vendor/onigmo-source/regint.h:544:9`! (1<<15) /* ".*" optimize info (multi-line) */
545
546 #define ANCHOR_KEEPcxx . . $ `vendor/onigmo-source/regint.h:546:9`! (1<<16)
547
548 /* operation code */
549 enum OpCodecxx . . $ OpCode# {
550 OP_FINISHcxx . . $ OP_FINISH. = 0, /* matching process terminator (no more alternative) */
551 OP_ENDcxx . . $ OP_END. = 1, /* pattern code terminator (success end) */
552
553 OP_EXACT1cxx . . $ OP_EXACT1. = 2, /* single byte, N = 1 */
554 OP_EXACT2cxx . . $ OP_EXACT2., /* single byte, N = 2 */
555 OP_EXACT3cxx . . $ OP_EXACT3., /* single byte, N = 3 */
556 OP_EXACT4cxx . . $ OP_EXACT4., /* single byte, N = 4 */
557 OP_EXACT5cxx . . $ OP_EXACT5., /* single byte, N = 5 */
558 OP_EXACTNcxx . . $ OP_EXACTN., /* single byte */
559 OP_EXACTMB2N1cxx . . $ OP_EXACTMB2N1., /* mb-length = 2 N = 1 */
560 OP_EXACTMB2N2cxx . . $ OP_EXACTMB2N2., /* mb-length = 2 N = 2 */
561 OP_EXACTMB2N3cxx . . $ OP_EXACTMB2N3., /* mb-length = 2 N = 3 */
562 OP_EXACTMB2Ncxx . . $ OP_EXACTMB2N., /* mb-length = 2 */
563 OP_EXACTMB3Ncxx . . $ OP_EXACTMB3N., /* mb-length = 3 */
564 OP_EXACTMBNcxx . . $ OP_EXACTMBN., /* other length */
565
566 OP_EXACT1_ICcxx . . $ OP_EXACT1_IC., /* single byte, N = 1, ignore case */
567 OP_EXACTN_ICcxx . . $ OP_EXACTN_IC., /* single byte, ignore case */
568
569 OP_CCLASScxx . . $ OP_CCLASS.,
570 OP_CCLASS_MBcxx . . $ OP_CCLASS_MB.,
571 OP_CCLASS_MIXcxx . . $ OP_CCLASS_MIX.,
572 OP_CCLASS_NOTcxx . . $ OP_CCLASS_NOT.,
573 OP_CCLASS_MB_NOTcxx . . $ OP_CCLASS_MB_NOT.,
574 OP_CCLASS_MIX_NOTcxx . . $ OP_CCLASS_MIX_NOT.,
575
576 OP_ANYCHARcxx . . $ OP_ANYCHAR., /* "." */
577 OP_ANYCHAR_MLcxx . . $ OP_ANYCHAR_ML., /* "." multi-line */
578 OP_ANYCHAR_STARcxx . . $ OP_ANYCHAR_STAR., /* ".*" */
579 OP_ANYCHAR_ML_STARcxx . . $ OP_ANYCHAR_ML_STAR., /* ".*" multi-line */
580 OP_ANYCHAR_STAR_PEEK_NEXTcxx . . $ OP_ANYCHAR_STAR_PEEK_NEXT.,
581 OP_ANYCHAR_ML_STAR_PEEK_NEXTcxx . . $ OP_ANYCHAR_ML_STAR_PEEK_NEXT.,
582
583 OP_WORDcxx . . $ OP_WORD.,
584 OP_NOT_WORDcxx . . $ OP_NOT_WORD.,
585 OP_WORD_BOUNDcxx . . $ OP_WORD_BOUND.,
586 OP_NOT_WORD_BOUNDcxx . . $ OP_NOT_WORD_BOUND.,
587 OP_WORD_BEGINcxx . . $ OP_WORD_BEGIN.,
588 OP_WORD_ENDcxx . . $ OP_WORD_END.,
589
590 OP_ASCII_WORDcxx . . $ OP_ASCII_WORD.,
591 OP_NOT_ASCII_WORDcxx . . $ OP_NOT_ASCII_WORD.,
592 OP_ASCII_WORD_BOUNDcxx . . $ OP_ASCII_WORD_BOUND.,
593 OP_NOT_ASCII_WORD_BOUNDcxx . . $ OP_NOT_ASCII_WORD_BOUND.,
594 OP_ASCII_WORD_BEGINcxx . . $ OP_ASCII_WORD_BEGIN.,
595 OP_ASCII_WORD_ENDcxx . . $ OP_ASCII_WORD_END.,
596
597 OP_BEGIN_BUFcxx . . $ OP_BEGIN_BUF.,
598 OP_END_BUFcxx . . $ OP_END_BUF.,
599 OP_BEGIN_LINEcxx . . $ OP_BEGIN_LINE.,
600 OP_END_LINEcxx . . $ OP_END_LINE.,
601 OP_SEMI_END_BUFcxx . . $ OP_SEMI_END_BUF.,
602 OP_BEGIN_POSITIONcxx . . $ OP_BEGIN_POSITION.,
603
604 OP_BACKREF1cxx . . $ OP_BACKREF1.,
605 OP_BACKREF2cxx . . $ OP_BACKREF2.,
606 OP_BACKREFNcxx . . $ OP_BACKREFN.,
607 OP_BACKREFN_ICcxx . . $ OP_BACKREFN_IC.,
608 OP_BACKREF_MULTIcxx . . $ OP_BACKREF_MULTI.,
609 OP_BACKREF_MULTI_ICcxx . . $ OP_BACKREF_MULTI_IC.,
610 OP_BACKREF_WITH_LEVELcxx . . $ OP_BACKREF_WITH_LEVEL., /* \k<xxx+n>, \k<xxx-n> */
611
612 OP_MEMORY_STARTcxx . . $ OP_MEMORY_START.,
613 OP_MEMORY_START_PUSHcxx . . $ OP_MEMORY_START_PUSH., /* push back-tracker to stack */
614 OP_MEMORY_END_PUSHcxx . . $ OP_MEMORY_END_PUSH., /* push back-tracker to stack */
615 OP_MEMORY_END_PUSH_RECcxx . . $ OP_MEMORY_END_PUSH_REC., /* push back-tracker to stack */
616 OP_MEMORY_ENDcxx . . $ OP_MEMORY_END.,
617 OP_MEMORY_END_RECcxx . . $ OP_MEMORY_END_REC., /* push marker to stack */
618
619 OP_KEEPcxx . . $ OP_KEEP.,
620
621 OP_FAILcxx . . $ OP_FAIL., /* pop stack and move */
622 OP_JUMPcxx . . $ OP_JUMP.,
623 OP_PUSHcxx . . $ OP_PUSH.,
624 OP_POPcxx . . $ OP_POP.,
625 OP_PUSH_OR_JUMP_EXACT1cxx . . $ OP_PUSH_OR_JUMP_EXACT1., /* if match exact then push, else jump. */
626 OP_PUSH_IF_PEEK_NEXTcxx . . $ OP_PUSH_IF_PEEK_NEXT., /* if match exact then push, else none. */
627 OP_REPEATcxx . . $ OP_REPEAT., /* {n,m} */
628 OP_REPEAT_NGcxx . . $ OP_REPEAT_NG., /* {n,m}? (non greedy) */
629 OP_REPEAT_INCcxx . . $ OP_REPEAT_INC.,
630 OP_REPEAT_INC_NGcxx . . $ OP_REPEAT_INC_NG., /* non greedy */
631 OP_REPEAT_INC_SGcxx . . $ OP_REPEAT_INC_SG., /* search and get in stack */
632 OP_REPEAT_INC_NG_SGcxx . . $ OP_REPEAT_INC_NG_SG., /* search and get in stack (non greedy) */
633 OP_NULL_CHECK_STARTcxx . . $ OP_NULL_CHECK_START., /* null loop checker start */
634 OP_NULL_CHECK_ENDcxx . . $ OP_NULL_CHECK_END., /* null loop checker end */
635 OP_NULL_CHECK_END_MEMSTcxx . . $ OP_NULL_CHECK_END_MEMST., /* null loop checker end (with capture status) */
636 OP_NULL_CHECK_END_MEMST_PUSHcxx . . $ OP_NULL_CHECK_END_MEMST_PUSH., /* with capture status and push check-end */
637
638 OP_PUSH_POScxx . . $ OP_PUSH_POS., /* (?=...) start */
639 OP_POP_POScxx . . $ OP_POP_POS., /* (?=...) end */
640 OP_PUSH_POS_NOTcxx . . $ OP_PUSH_POS_NOT., /* (?!...) start */
641 OP_FAIL_POScxx . . $ OP_FAIL_POS., /* (?!...) end */
642 OP_PUSH_STOP_BTcxx . . $ OP_PUSH_STOP_BT., /* (?>...) start */
643 OP_POP_STOP_BTcxx . . $ OP_POP_STOP_BT., /* (?>...) end */
644 OP_LOOK_BEHINDcxx . . $ OP_LOOK_BEHIND., /* (?<=...) start (no needs end opcode) */
645 OP_PUSH_LOOK_BEHIND_NOTcxx . . $ OP_PUSH_LOOK_BEHIND_NOT., /* (?<!...) start */
646 OP_FAIL_LOOK_BEHIND_NOTcxx . . $ OP_FAIL_LOOK_BEHIND_NOT., /* (?<!...) end */
647 OP_PUSH_ABSENT_POScxx . . $ OP_PUSH_ABSENT_POS., /* (?~...) start */
648 OP_ABSENTcxx . . $ OP_ABSENT., /* (?~...) start of inner loop */
649 OP_ABSENT_ENDcxx . . $ OP_ABSENT_END., /* (?~...) end */
650
651 OP_CALLcxx . . $ OP_CALL., /* \g<name> */
652 OP_RETURNcxx . . $ OP_RETURN.,
653
654 OP_CONDITIONcxx . . $ OP_CONDITION.,
655
656 OP_STATE_CHECK_PUSHcxx . . $ OP_STATE_CHECK_PUSH., /* combination explosion check and push */
657 OP_STATE_CHECK_PUSH_OR_JUMPcxx . . $ OP_STATE_CHECK_PUSH_OR_JUMP., /* check ok -> push, else jump */
658 OP_STATE_CHECKcxx . . $ OP_STATE_CHECK., /* check only */
659 OP_STATE_CHECK_ANYCHAR_STARcxx . . $ OP_STATE_CHECK_ANYCHAR_STAR.,
660 OP_STATE_CHECK_ANYCHAR_ML_STARcxx . . $ OP_STATE_CHECK_ANYCHAR_ML_STAR.,
661
662 /* no need: IS_DYNAMIC_OPTION() == 0 */
663 OP_SET_OPTION_PUSHcxx . . $ OP_SET_OPTION_PUSH., /* set option and push recover option */
664 OP_SET_OPTIONcxx . . $ OP_SET_OPTION. /* set option */
665 };
666
667 typedef int RelAddrTypecxx . . $ RelAddrType#;
668 typedef int AbsAddrTypecxx . . $ AbsAddrType#;
669 typedef int LengthTypecxx . . $ LengthType#;
670 typedef int RepeatNumTypecxx . . $ RepeatNumType#;
671 typedef short int MemNumTypecxx . . $ MemNumType#;
672 typedef short int StateCheckNumTypecxx . . $ StateCheckNumType#;
673 typedef void* PointerTypecxx . . $ PointerType#;
674
675 #define SIZE_OPCODEcxx . . $ `vendor/onigmo-source/regint.h:675:9`! 1
676 #define SIZE_RELADDRcxx . . $ `vendor/onigmo-source/regint.h:676:9`! (int )sizeof(RelAddrType)
677 #define SIZE_ABSADDRcxx . . $ `vendor/onigmo-source/regint.h:677:9`! (int )sizeof(AbsAddrType)
678 #define SIZE_LENGTHcxx . . $ `vendor/onigmo-source/regint.h:678:9`! (int )sizeof(LengthType)
679 #define SIZE_MEMNUMcxx . . $ `vendor/onigmo-source/regint.h:679:9`! (int )sizeof(MemNumType)
680 #define SIZE_STATE_CHECK_NUMcxx . . $ `vendor/onigmo-source/regint.h:680:9`! (int )sizeof(StateCheckNumType)
681 #define SIZE_REPEATNUMcxx . . $ `vendor/onigmo-source/regint.h:681:9`! (int )sizeof(RepeatNumType)
682 #define SIZE_OPTIONcxx . . $ `vendor/onigmo-source/regint.h:682:9`! (int )sizeof(OnigOptionType)
683 #define SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`! (int )sizeof(OnigCodePoint)
684 #define SIZE_POINTERcxx . . $ `vendor/onigmo-source/regint.h:684:9`! (int )sizeof(PointerType)
685
686
687 #define GET_RELADDR_INCcxx . . $ `vendor/onigmo-source/regint.h:687:9`!(addr,p) PLATFORM_GET_INC(addr, p, RelAddrType)
688 #define GET_ABSADDR_INCcxx . . $ `vendor/onigmo-source/regint.h:688:9`!(addr,p) PLATFORM_GET_INC(addr, p, AbsAddrType)
689 #define GET_LENGTH_INCcxx . . $ `vendor/onigmo-source/regint.h:689:9`!(len,p) PLATFORM_GET_INC(len, p, LengthType)
690 #define GET_MEMNUM_INCcxx . . $ `vendor/onigmo-source/regint.h:690:9`!(num,p) PLATFORM_GET_INC(num, p, MemNumType)
691 #define GET_REPEATNUM_INCcxx . . $ `vendor/onigmo-source/regint.h:691:9`!(num,p) PLATFORM_GET_INC(num, p, RepeatNumType)
692 #define GET_OPTION_INCcxx . . $ `vendor/onigmo-source/regint.h:692:9`!(option,p) PLATFORM_GET_INC(option, p, OnigOptionType)
693 #define GET_POINTER_INCcxx . . $ `vendor/onigmo-source/regint.h:693:9`!(ptr,p) PLATFORM_GET_INC(ptr, p, PointerType)
694 #define GET_STATE_CHECK_NUM_INCcxx . . $ `vendor/onigmo-source/regint.h:694:9`!(num,p) PLATFORM_GET_INC(num, p, StateCheckNumType)
695
696 /* code point's address must be aligned address. */
697 #define GET_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:697:9`!(code,p) code = *((OnigCodePoint* )(p))
698 #define GET_BYTE_INCcxx . . $ `vendor/onigmo-source/regint.h:698:9`!(byte,p) do{\
699 byte = *(p);\
700 (p)++;\
701 } while(0)
702
703
704 /* op-code + arg size */
705 #define SIZE_OP_ANYCHAR_STARcxx . . $ `vendor/onigmo-source/regint.h:705:9`! SIZE_OPCODE
706 #define SIZE_OP_ANYCHAR_STAR_PEEK_NEXTcxx . . $ `vendor/onigmo-source/regint.h:706:9`! (SIZE_OPCODE + 1)
707 #define SIZE_OP_JUMPcxx . . $ `vendor/onigmo-source/regint.h:707:9`! (SIZE_OPCODE + SIZE_RELADDR)
708 #define SIZE_OP_PUSHcxx . . $ `vendor/onigmo-source/regint.h:708:9`! (SIZE_OPCODE + SIZE_RELADDR)
709 #define SIZE_OP_POPcxx . . $ `vendor/onigmo-source/regint.h:709:9`! SIZE_OPCODE
710 #define SIZE_OP_PUSH_OR_JUMP_EXACT1cxx . . $ `vendor/onigmo-source/regint.h:710:9`! (SIZE_OPCODE + SIZE_RELADDR + 1)
711 #define SIZE_OP_PUSH_IF_PEEK_NEXTcxx . . $ `vendor/onigmo-source/regint.h:711:9`! (SIZE_OPCODE + SIZE_RELADDR + 1)
712 #define SIZE_OP_REPEAT_INCcxx . . $ `vendor/onigmo-source/regint.h:712:9`! (SIZE_OPCODE + SIZE_MEMNUM)
713 #define SIZE_OP_REPEAT_INC_NGcxx . . $ `vendor/onigmo-source/regint.h:713:9`! (SIZE_OPCODE + SIZE_MEMNUM)
714 #define SIZE_OP_PUSH_POScxx . . $ `vendor/onigmo-source/regint.h:714:9`! SIZE_OPCODE
715 #define SIZE_OP_PUSH_POS_NOTcxx . . $ `vendor/onigmo-source/regint.h:715:9`! (SIZE_OPCODE + SIZE_RELADDR)
716 #define SIZE_OP_POP_POScxx . . $ `vendor/onigmo-source/regint.h:716:9`! SIZE_OPCODE
717 #define SIZE_OP_FAIL_POScxx . . $ `vendor/onigmo-source/regint.h:717:9`! SIZE_OPCODE
718 #define SIZE_OP_SET_OPTIONcxx . . $ `vendor/onigmo-source/regint.h:718:9`! (SIZE_OPCODE + SIZE_OPTION)
719 #define SIZE_OP_SET_OPTION_PUSHcxx . . $ `vendor/onigmo-source/regint.h:719:9`! (SIZE_OPCODE + SIZE_OPTION)
720 #define SIZE_OP_FAILcxx . . $ `vendor/onigmo-source/regint.h:720:9`! SIZE_OPCODE
721 #define SIZE_OP_MEMORY_STARTcxx . . $ `vendor/onigmo-source/regint.h:721:9`! (SIZE_OPCODE + SIZE_MEMNUM)
722 #define SIZE_OP_MEMORY_START_PUSHcxx . . $ `vendor/onigmo-source/regint.h:722:9`! (SIZE_OPCODE + SIZE_MEMNUM)
723 #define SIZE_OP_MEMORY_END_PUSHcxx . . $ `vendor/onigmo-source/regint.h:723:9`! (SIZE_OPCODE + SIZE_MEMNUM)
724 #define SIZE_OP_MEMORY_END_PUSH_RECcxx . . $ `vendor/onigmo-source/regint.h:724:9`! (SIZE_OPCODE + SIZE_MEMNUM)
725 #define SIZE_OP_MEMORY_ENDcxx . . $ `vendor/onigmo-source/regint.h:725:9`! (SIZE_OPCODE + SIZE_MEMNUM)
726 #define SIZE_OP_MEMORY_END_RECcxx . . $ `vendor/onigmo-source/regint.h:726:9`! (SIZE_OPCODE + SIZE_MEMNUM)
727 #define SIZE_OP_PUSH_STOP_BTcxx . . $ `vendor/onigmo-source/regint.h:727:9`! SIZE_OPCODE
728 #define SIZE_OP_POP_STOP_BTcxx . . $ `vendor/onigmo-source/regint.h:728:9`! SIZE_OPCODE
729 #define SIZE_OP_NULL_CHECK_STARTcxx . . $ `vendor/onigmo-source/regint.h:729:9`! (SIZE_OPCODE + SIZE_MEMNUM)
730 #define SIZE_OP_NULL_CHECK_ENDcxx . . $ `vendor/onigmo-source/regint.h:730:9`! (SIZE_OPCODE + SIZE_MEMNUM)
731 #define SIZE_OP_LOOK_BEHINDcxx . . $ `vendor/onigmo-source/regint.h:731:9`! (SIZE_OPCODE + SIZE_LENGTH)
732 #define SIZE_OP_PUSH_LOOK_BEHIND_NOTcxx . . $ `vendor/onigmo-source/regint.h:732:9`! (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH)
733 #define SIZE_OP_FAIL_LOOK_BEHIND_NOTcxx . . $ `vendor/onigmo-source/regint.h:733:9`! SIZE_OPCODE
734 #define SIZE_OP_CALLcxx . . $ `vendor/onigmo-source/regint.h:734:9`! (SIZE_OPCODE + SIZE_ABSADDR)
735 #define SIZE_OP_RETURNcxx . . $ `vendor/onigmo-source/regint.h:735:9`! SIZE_OPCODE
736 #define SIZE_OP_CONDITIONcxx . . $ `vendor/onigmo-source/regint.h:736:9`! (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR)
737 #define SIZE_OP_PUSH_ABSENT_POScxx . . $ `vendor/onigmo-source/regint.h:737:9`! SIZE_OPCODE
738 #define SIZE_OP_ABSENTcxx . . $ `vendor/onigmo-source/regint.h:738:9`! (SIZE_OPCODE + SIZE_RELADDR)
739 #define SIZE_OP_ABSENT_ENDcxx . . $ `vendor/onigmo-source/regint.h:739:9`! SIZE_OPCODE
740
741 #ifdef USE_COMBINATION_EXPLOSION_CHECK
742 # define SIZE_OP_STATE_CHECK (SIZE_OPCODE + SIZE_STATE_CHECK_NUM)
743 # define SIZE_OP_STATE_CHECK_PUSH (SIZE_OPCODE + SIZE_STATE_CHECK_NUM + SIZE_RELADDR)
744 # define SIZE_OP_STATE_CHECK_PUSH_OR_JUMP (SIZE_OPCODE + SIZE_STATE_CHECK_NUM + SIZE_RELADDR)
745 # define SIZE_OP_STATE_CHECK_ANYCHAR_STAR (SIZE_OPCODE + SIZE_STATE_CHECK_NUM)
746 #endif
747
748 #define MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(syn) (syn)->meta_char_table.esc
749 #define MC_ANYCHARcxx . . $ `vendor/onigmo-source/regint.h:749:9`!(syn) (syn)->meta_char_table.anychar
750 #define MC_ANYTIMEcxx . . $ `vendor/onigmo-source/regint.h:750:9`!(syn) (syn)->meta_char_table.anytime
751 #define MC_ZERO_OR_ONE_TIMEcxx . . $ `vendor/onigmo-source/regint.h:751:9`!(syn) (syn)->meta_char_table.zero_or_one_time
752 #define MC_ONE_OR_MORE_TIMEcxx . . $ `vendor/onigmo-source/regint.h:752:9`!(syn) (syn)->meta_char_table.one_or_more_time
753 #define MC_ANYCHAR_ANYTIMEcxx . . $ `vendor/onigmo-source/regint.h:753:9`!(syn) (syn)->meta_char_table.anychar_anytime
754
755 #define IS_MC_ESC_CODEcxx . . $ `vendor/onigmo-source/regint.h:755:9`!(code, syn) \
756 ((code) == MC_ESC(syn) && \
757 !IS_SYNTAX_OP2((syn), ONIG_SYN_OP2_INEFFECTIVE_ESCAPE))
758
759
760 #define SYN_POSIX_COMMON_OPcxx . . $ `vendor/onigmo-source/regint.h:760:9`! \
761 ( ONIG_SYN_OP_DOT_ANYCHAR | ONIG_SYN_OP_POSIX_BRACKET | \
762 ONIG_SYN_OP_DECIMAL_BACKREF | \
763 ONIG_SYN_OP_BRACKET_CC | ONIG_SYN_OP_ASTERISK_ZERO_INF | \
764 ONIG_SYN_OP_LINE_ANCHOR | \
765 ONIG_SYN_OP_ESC_CONTROL_CHARS )
766
767 #define SYN_GNU_REGEX_OPcxx . . $ `vendor/onigmo-source/regint.h:767:9`! \
768 ( ONIG_SYN_OP_DOT_ANYCHAR | ONIG_SYN_OP_BRACKET_CC | \
769 ONIG_SYN_OP_POSIX_BRACKET | ONIG_SYN_OP_DECIMAL_BACKREF | \
770 ONIG_SYN_OP_BRACE_INTERVAL | ONIG_SYN_OP_LPAREN_SUBEXP | \
771 ONIG_SYN_OP_VBAR_ALT | \
772 ONIG_SYN_OP_ASTERISK_ZERO_INF | ONIG_SYN_OP_PLUS_ONE_INF | \
773 ONIG_SYN_OP_QMARK_ZERO_ONE | \
774 ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR | ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR | \
775 ONIG_SYN_OP_ESC_W_WORD | \
776 ONIG_SYN_OP_ESC_B_WORD_BOUND | ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END | \
777 ONIG_SYN_OP_ESC_S_WHITE_SPACE | ONIG_SYN_OP_ESC_D_DIGIT | \
778 ONIG_SYN_OP_LINE_ANCHOR )
779
780 #define SYN_GNU_REGEX_BVcxx . . $ `vendor/onigmo-source/regint.h:780:9`! \
781 ( ONIG_SYN_CONTEXT_INDEP_ANCHORS | ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS | \
782 ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS | ONIG_SYN_ALLOW_INVALID_INTERVAL | \
783 ONIG_SYN_BACKSLASH_ESCAPE_IN_CC | ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC )
784
785
786 #define NCCLASS_FLAGScxx . . $ `vendor/onigmo-source/regint.h:786:9`!(cc) ((cc)->flags)
787 #define NCCLASS_FLAG_SETcxx . . $ `vendor/onigmo-source/regint.h:787:9`!(cc,flag) (NCCLASS_FLAGS(cc) |= (flag))
788 #define NCCLASS_FLAG_CLEARcxx . . $ `vendor/onigmo-source/regint.h:788:9`!(cc,flag) (NCCLASS_FLAGS(cc) &= ~(flag))
789 #define IS_NCCLASS_FLAG_ONcxx . . $ `vendor/onigmo-source/regint.h:789:9`!(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
790
791 /* cclass node */
792 #define FLAG_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:792:9`! (1<<0)
793
794 #define NCCLASS_SET_NOTcxx . . $ `vendor/onigmo-source/regint.h:794:9`!(nd) NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT)
795 #define NCCLASS_CLEAR_NOTcxx . . $ `vendor/onigmo-source/regint.h:795:9`!(nd) NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT)
796 #define IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(nd) IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
797
798 typedef structcxx . . $ $anonymous_type_8d70aa7b33683daf_0# {
799 int typecxx . . $ $anonymous_type_8d70aa7b33683daf_0#type.;
800 /* struct _Node* next; */
801 /* unsigned int flags; */
802 } NodeBasecxx . . $ NodeBase#;
803
804 typedef structcxx . . $ $anonymous_type_8d70aa7b33683daf_1# {
805 NodeBasecxx . . $ NodeBase# basecxx . . $ $anonymous_type_8d70aa7b33683daf_1#base.;
806 unsigned int flagscxx . . $ $anonymous_type_8d70aa7b33683daf_1#flags.;
807 BitSetcxx . . $ BitSet# bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
808 BBufcxx . . $ BBuf#* mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.; /* multi-byte info or NULL */
809 } CClassNodecxx . . $ CClassNode#;
810
811 typedef intptr_tcxx . . $ intptr_t# OnigStackIndexcxx . . $ OnigStackIndex#;
812
813 typedef struct _OnigStackTypecxx . . $ _OnigStackType# {
814 unsigned int typecxx . . $ _OnigStackType#type.;
815 unioncxx . . $ _OnigStackType#$anonymous_type_2# {
816 structcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_3# {
817 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pcodecxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_3#pcode.; /* byte code position */
818 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pstrcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_3#pstr.; /* string position */
819 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pstr_prevcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_3#pstr_prev.; /* previous char position of pstr */
820 #ifdef USE_COMBINATION_EXPLOSION_CHECK
821 unsigned int state_check;
822 #endif
823 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pkeepcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_3#pkeep.; /* keep pattern position */
824 } statecxx . . $ _OnigStackType#$anonymous_type_2#state.;
825 structcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_4# {
826 int countcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_4#count.; /* for OP_REPEAT_INC, OP_REPEAT_INC_NG */
827 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pcodecxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_4#pcode.; /* byte code position (head of repeated target) */
828 int numcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_4#num.; /* repeat id */
829 } repeatcxx . . $ _OnigStackType#$anonymous_type_2#repeat.;
830 structcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_5# {
831 OnigStackIndexcxx . . $ OnigStackIndex# sicxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_5#si.; /* index of stack */
832 } repeat_inccxx . . $ _OnigStackType#$anonymous_type_2#repeat_inc.;
833 structcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_6# {
834 int numcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_6#num.; /* memory num */
835 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pstrcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_6#pstr.; /* start/end position */
836 /* Following information is set, if this stack type is MEM-START */
837 OnigStackIndexcxx . . $ OnigStackIndex# startcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_6#start.; /* prev. info (for backtrack "(...)*" ) */
838 OnigStackIndexcxx . . $ OnigStackIndex# endcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_6#end.; /* prev. info (for backtrack "(...)*" ) */
839 } memcxx . . $ _OnigStackType#$anonymous_type_2#mem.;
840 structcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_7# {
841 int numcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_7#num.; /* null check id */
842 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pstrcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_7#pstr.; /* start position */
843 } null_checkcxx . . $ _OnigStackType#$anonymous_type_2#null_check.;
844 #ifdef USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!
845 structcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_8# {
846 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *ret_addrcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_8#ret_addr.; /* byte code position */
847 int numcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_8#num.; /* null check id */
848 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pstrcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_8#pstr.; /* string position */
849 } call_framecxx . . $ _OnigStackType#$anonymous_type_2#call_frame.;
850 #endif
851 structcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_9# {
852 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *abs_pstrcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_9#abs_pstr.; /* absent start position */
853 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *end_pstrcxx . . $ _OnigStackType#$anonymous_type_2#$anonymous_type_9#end_pstr.; /* end position */
854 } absent_poscxx . . $ _OnigStackType#$anonymous_type_2#absent_pos.;
855 } ucxx . . $ _OnigStackType#u.;
856 } OnigStackTypecxx . . $ OnigStackType#;
857
858 typedef structcxx . . $ $anonymous_type_8d70aa7b33683daf_10# {
859 void* stack_pcxx . . $ $anonymous_type_8d70aa7b33683daf_10#stack_p.;
860 size_t stack_ncxx . . $ $anonymous_type_8d70aa7b33683daf_10#stack_n.;
861 OnigOptionTypecxx . . $ OnigOptionType# optionscxx . . $ $anonymous_type_8d70aa7b33683daf_10#options.;
862 OnigRegioncxx . . $ OnigRegion#* regioncxx . . $ $anonymous_type_8d70aa7b33683daf_10#region.;
863 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* startcxx . . $ $anonymous_type_8d70aa7b33683daf_10#start.; /* search start position */
864 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* gposcxx . . $ $anonymous_type_8d70aa7b33683daf_10#gpos.; /* global position (for \G: BEGIN_POSITION) */
865 #ifdef USE_FIND_LONGEST_SEARCH_ALL_OF_RANGEcxx . . $ `vendor/onigmo-source/regint.h:138:9`!
866 OnigPositioncxx . . $ OnigPosition# best_lencxx . . $ $anonymous_type_8d70aa7b33683daf_10#best_len.; /* for ONIG_OPTION_FIND_LONGEST */
867 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* best_scxx . . $ $anonymous_type_8d70aa7b33683daf_10#best_s.;
868 #endif
869 #ifdef USE_COMBINATION_EXPLOSION_CHECK
870 void* state_check_buff;
871 int state_check_buff_size;
872 #endif
873 } OnigMatchArgcxx . . $ OnigMatchArg#;
874
875
876 #define IS_CODE_SB_WORDcxx . . $ `vendor/onigmo-source/regint.h:876:9`!(enc,code) \
877 (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code))
878
879 typedef struct OnigEndCallListItemcxx . . $ OnigEndCallListItem# {
880 struct OnigEndCallListItemcxx . . $ OnigEndCallListItem#* nextcxx . . $ OnigEndCallListItem#next.;
881 void (*funccxx . . $ OnigEndCallListItem#func.)(void);
882 } OnigEndCallListItemTypecxx . . $ OnigEndCallListItemType#;
883
884 extern void onig_add_end_callcxx . . $ onig_add_end_call(964b12a25712bdc3).(void (*func)(void));
885
886
887 #ifdef ONIG_DEBUG
888
889 typedef struct {
890 short int opcode;
891 const char* name;
892 short int arg_type;
893 } OnigOpInfoType;
894
895 extern OnigOpInfoType OnigOpInfo[];
896
897
898 extern void onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar* bpend, UChar** nextp, OnigEncoding enc);
899
900 # ifdef ONIG_DEBUG_STATISTICS
901 extern void onig_statistics_init(void);
902 extern void onig_print_statistics(FILE* f);
903 # endif
904 #endif
905
906 extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* onig_error_code_to_formatcxx . . $ onig_error_code_to_format(e8737b374c872e53).(OnigPositioncxx . . $ OnigPosition# code);
907 extern void onig_vsnprintf_with_patterncxx . . $ onig_vsnprintf_with_pattern(560f070ba3d21b3b).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[], int bufsize, OnigEncodingcxx . . $ OnigEncoding# enc, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pat, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pat_end, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *fmt, va_listcxx . . $ va_list# args);
908 extern void onig_snprintf_with_patterncxx . . $ onig_snprintf_with_pattern(eb5477a24dac2530).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[], int bufsize, OnigEncodingcxx . . $ OnigEncoding# enc, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pat, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pat_end, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *fmt, ...);
909 extern int onig_bbuf_initcxx . . $ onig_bbuf_init(ba7502de428c9238).(BBufcxx . . $ BBuf#* buf, OnigDistancecxx . . $ OnigDistance# size);
910 extern int onig_compilecxx . . $ onig_compile(c081430bb1efff2d).(regex_tcxx . . $ regex_t#* reg, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pattern, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pattern_end, OnigErrorInfocxx . . $ OnigErrorInfo#* einfo);
911 #ifdef RUBY
912 extern int onig_compile_ruby(regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigErrorInfo* einfo, const char *sourcefile, int sourceline);
913 #endif
914 extern void onig_transfercxx . . $ onig_transfer(4a776185fae82980).(regex_tcxx . . $ regex_t#* to, regex_tcxx . . $ regex_t#* from);
915 extern int onig_is_code_in_cccxx . . $ onig_is_code_in_cc(62b7a72f8ee47e53).(OnigEncodingcxx . . $ OnigEncoding# enc, OnigCodePointcxx . . $ OnigCodePoint# code, CClassNodecxx . . $ CClassNode#* cc);
916 extern int onig_is_code_in_cc_lencxx . . $ onig_is_code_in_cc_len(811b03fe8ec59214).(int enclen, OnigCodePointcxx . . $ OnigCodePoint# code, CClassNodecxx . . $ CClassNode#* cc);
917
918 /* strend hash */
919 typedef void hash_table_typecxx . . $ hash_table_type#;
920 #ifdef RUBY
921 # include "ruby/st.h"
922 #else
923 # include "st.h"cxx . . $ `<file>/vendor/onigmo-source/st.h`/
924 #endif
925 typedef st_data_tcxx . . $ st_data_t# hash_data_typecxx . . $ hash_data_type#;
926
927 extern hash_table_typecxx . . $ hash_table_type#* onig_st_init_strend_table_with_sizecxx . . $ onig_st_init_strend_table_with_size(bfcfa4d6b7f7ef64).(st_index_tcxx . . $ st_index_t# size);
928 extern int onig_st_lookup_strendcxx . . $ onig_st_lookup_strend(24a03b210917e895).(hash_table_typecxx . . $ hash_table_type#* table, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* str_key, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end_key, hash_data_typecxx . . $ hash_data_type# *value);
929 extern int onig_st_insert_strendcxx . . $ onig_st_insert_strend(3723261b6967624d).(hash_table_typecxx . . $ hash_table_type#* table, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* str_key, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end_key, hash_data_typecxx . . $ hash_data_type# value);
930
931 #ifdef RUBY
932 extern size_t onig_memsize(const regex_t *reg);
933 extern size_t onig_region_memsize(const struct re_registers *regs);
934 #endif
935
936 RUBY_SYMBOL_EXPORT_ENDcxx . . $ `vendor/onigmo-source/onigmo.h:65:11`!
937
938 #endif /* ONIGMO_REGINT_H */