Debian Codegraph @

vendor/onigmo-source/regparse.c

raw symbols SCIP
1 /**********************************************************************
2 regparse.c - Onigmo (Oniguruma-mod) (regular expression library)
3 **********************************************************************/
4 /*-
5 * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
6 * Copyright (c) 2011-2016 K.Takata <kentkt AT csc DOT jp>
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31 #include "regparse.h"cxx . . $ `<file>/vendor/onigmo-source/regparse.h`/
32 #include <stdarg.h>
33
34 #define WARN_BUFSIZEcxx . . $ `vendor/onigmo-source/regparse.c:34:9`! 256
35
36 #define CASE_FOLD_IS_APPLIED_INSIDE_NEGATIVE_CCLASScxx . . $ `vendor/onigmo-source/regparse.c:36:9`!
37
38
39 const OnigSyntaxTypecxx . . $ OnigSyntaxType# OnigSyntaxRubycxx . . $ OnigSyntaxRuby. = {
40 (( SYN_GNU_REGEX_OPcxx . . $ `vendor/onigmo-source/regint.h:767:9`! | ONIG_SYN_OP_QMARK_NON_GREEDYcxx . . $ `vendor/onigmo-source/onigmo.h:544:9`! |
41 ONIG_SYN_OP_ESC_OCTAL3cxx . . $ `vendor/onigmo-source/onigmo.h:547:9`! | ONIG_SYN_OP_ESC_X_HEX2cxx . . $ `vendor/onigmo-source/onigmo.h:548:9`! |
42 ONIG_SYN_OP_ESC_X_BRACE_HEX8cxx . . $ `vendor/onigmo-source/onigmo.h:549:9`! | ONIG_SYN_OP_ESC_CONTROL_CHARScxx . . $ `vendor/onigmo-source/onigmo.h:545:9`! |
43 ONIG_SYN_OP_ESC_C_CONTROLcxx . . $ `vendor/onigmo-source/onigmo.h:546:9`! )
44 & ~ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_ENDcxx . . $ `vendor/onigmo-source/onigmo.h:538:9`! )
45 , ( ONIG_SYN_OP2_QMARK_GROUP_EFFECTcxx . . $ `vendor/onigmo-source/onigmo.h:553:9`! |
46 ONIG_SYN_OP2_OPTION_RUBYcxx . . $ `vendor/onigmo-source/onigmo.h:555:9`! |
47 ONIG_SYN_OP2_QMARK_LT_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:559:9`! | ONIG_SYN_OP2_ESC_K_NAMED_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:560:9`! |
48 ONIG_SYN_OP2_ESC_G_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/onigmo.h:561:9`! |
49 ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTYcxx . . $ `vendor/onigmo-source/onigmo.h:568:9`! |
50 ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOTcxx . . $ `vendor/onigmo-source/onigmo.h:569:9`! |
51 ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEATcxx . . $ `vendor/onigmo-source/onigmo.h:556:9`! |
52 ONIG_SYN_OP2_CCLASS_SET_OPcxx . . $ `vendor/onigmo-source/onigmo.h:558:9`! | ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROLcxx . . $ `vendor/onigmo-source/onigmo.h:563:9`! |
53 ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_METAcxx . . $ `vendor/onigmo-source/onigmo.h:564:9`! | ONIG_SYN_OP2_ESC_V_VTABcxx . . $ `vendor/onigmo-source/onigmo.h:565:9`! |
54 ONIG_SYN_OP2_ESC_H_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:571:9`! |
55 #ifndef RUBY
56 ONIG_SYN_OP2_ESC_U_HEX4cxx . . $ `vendor/onigmo-source/onigmo.h:566:9`! |
57 #endif
58 ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTERcxx . . $ `vendor/onigmo-source/onigmo.h:574:9`! |
59 ONIG_SYN_OP2_QMARK_LPAREN_CONDITIONcxx . . $ `vendor/onigmo-source/onigmo.h:581:9`! |
60 ONIG_SYN_OP2_ESC_CAPITAL_R_LINEBREAKcxx . . $ `vendor/onigmo-source/onigmo.h:573:9`! |
61 ONIG_SYN_OP2_ESC_CAPITAL_K_KEEPcxx . . $ `vendor/onigmo-source/onigmo.h:577:9`! |
62 ONIG_SYN_OP2_QMARK_TILDE_ABSENTcxx . . $ `vendor/onigmo-source/onigmo.h:583:9`! )
63 , ( SYN_GNU_REGEX_BVcxx . . $ `vendor/onigmo-source/regint.h:780:9`! |
64 ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREVcxx . . $ `vendor/onigmo-source/onigmo.h:592:9`! |
65 ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHINDcxx . . $ `vendor/onigmo-source/onigmo.h:594:9`! |
66 ONIG_SYN_CAPTURE_ONLY_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:595:9`! |
67 ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:596:9`! |
68 ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLYcxx . . $ `vendor/onigmo-source/onigmo.h:597:9`! |
69 ONIG_SYN_WARN_CC_OP_NOT_ESCAPEDcxx . . $ `vendor/onigmo-source/onigmo.h:607:9`! |
70 ONIG_SYN_WARN_CC_DUPcxx . . $ `vendor/onigmo-source/onigmo.h:609:9`! |
71 ONIG_SYN_WARN_REDUNDANT_NESTED_REPEATcxx . . $ `vendor/onigmo-source/onigmo.h:608:9`! )
72 , ( ONIG_OPTION_ASCII_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:467:9`! | ONIG_OPTION_POSIX_BRACKET_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:468:9`! |
73 ONIG_OPTION_WORD_BOUND_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:469:9`! )
74 ,
75 {
76 (OnigCodePointcxx . . $ OnigCodePoint# )'\\' /* esc */
77 , (OnigCodePointcxx . . $ OnigCodePoint# )ONIG_INEFFECTIVE_META_CHARcxx . . $ `vendor/onigmo-source/onigmo.h:619:9`! /* anychar '.' */
78 , (OnigCodePointcxx . . $ OnigCodePoint# )ONIG_INEFFECTIVE_META_CHARcxx . . $ `vendor/onigmo-source/onigmo.h:619:9`! /* anytime '*' */
79 , (OnigCodePointcxx . . $ OnigCodePoint# )ONIG_INEFFECTIVE_META_CHARcxx . . $ `vendor/onigmo-source/onigmo.h:619:9`! /* zero or one time '?' */
80 , (OnigCodePointcxx . . $ OnigCodePoint# )ONIG_INEFFECTIVE_META_CHARcxx . . $ `vendor/onigmo-source/onigmo.h:619:9`! /* one or more time '+' */
81 , (OnigCodePointcxx . . $ OnigCodePoint# )ONIG_INEFFECTIVE_META_CHARcxx . . $ `vendor/onigmo-source/onigmo.h:619:9`! /* anychar anytime */
82 }
83 };
84
85 const OnigSyntaxTypecxx . . $ OnigSyntaxType#* OnigDefaultSyntaxcxx . . $ OnigDefaultSyntax. = ONIG_SYNTAX_RUBYcxx . . $ `vendor/onigmo-source/onigmo.h:511:9`!;
86
87 extern void onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9).(const char* s ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) { }
88
89 #ifdef DEFAULT_WARN_FUNCTION
90 static OnigWarnFunc onig_warn = (OnigWarnFunc )DEFAULT_WARN_FUNCTION;
91 #else
92 static OnigWarnFunccxx . . $ OnigWarnFunc# onig_warncxx . . $ onig_warn. = onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9).;
93 #endif
94
95 #ifdef DEFAULT_VERB_WARN_FUNCTION
96 static OnigWarnFunc onig_verb_warn = (OnigWarnFunc )DEFAULT_VERB_WARN_FUNCTION;
97 #else
98 static OnigWarnFunccxx . . $ OnigWarnFunc# onig_verb_warncxx . . $ onig_verb_warn. = onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9).;
99 #endif
100
101 extern void onig_set_warn_funccxx . . $ onig_set_warn_func(2b5110216a8f8410).(OnigWarnFunccxx . . $ OnigWarnFunc# f)
102 {
103 onig_warncxx . . $ onig_warn. = f;
104 }
105
106 extern void onig_set_verb_warn_funccxx . . $ onig_set_verb_warn_func(2b5110216a8f8410).(OnigWarnFunccxx . . $ OnigWarnFunc# f)
107 {
108 onig_verb_warncxx . . $ onig_verb_warn. = f;
109 }
110
111 static void CC_DUP_WARNcxx . . $ CC_DUP_WARN(5e95567f993df0d4).(ScanEnvcxx . . $ ScanEnv# *env);
112
113
114 static unsigned int ParseDepthLimitcxx . . $ ParseDepthLimit. = DEFAULT_PARSE_DEPTH_LIMITcxx . . $ `vendor/onigmo-source/regint.h:88:9`!;
115
116 extern unsigned int
117 onig_get_parse_depth_limitcxx . . $ onig_get_parse_depth_limit(db52760e79bf9054).(void)
118 {
119 return ParseDepthLimitcxx . . $ ParseDepthLimit.;
120 }
121
122 extern int
123 onig_set_parse_depth_limitcxx . . $ onig_set_parse_depth_limit(4c679297bf94b9eb).(unsigned int depth)
124 {
125 if (depth == 0)
126 ParseDepthLimitcxx . . $ ParseDepthLimit. = DEFAULT_PARSE_DEPTH_LIMITcxx . . $ `vendor/onigmo-source/regint.h:88:9`!;
127 else
128 ParseDepthLimitcxx . . $ ParseDepthLimit. = depth;
129 return 0;
130 }
131
132
133 static void
134 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(BBufcxx . . $ BBuf#* bbuf)
135 {
136 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(bbuf)) {
137 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(bbuf->p)) xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(bbuf->pcxx . . $ _BBuf#p.);
138 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(bbuf);
139 }
140 }
141
142 static int
143 bbuf_clonecxx . . $ bbuf_clone(382c0d4630ec1057).(BBufcxx . . $ BBuf#** rto, BBufcxx . . $ BBuf#* from)
144 {
145 int r;
146 BBufcxx . . $ BBuf# *to;
147
148 *rto = to = (BBufcxx . . $ BBuf#* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(BBufcxx . . $ BBuf#));
149 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(to);
150 r = BBUF_INITcxx . . $ `vendor/onigmo-source/regint.h:447:9`!(to, from->alloc);
151 if (r != 0) return r;
152 to->usedcxx . . $ _BBuf#used. = from->usedcxx . . $ _BBuf#used.;
153 xmemcpycxx . . $ `vendor/onigmo-source/regint.h:202:9`!(to->pcxx . . $ _BBuf#p., from->pcxx . . $ _BBuf#p., from->usedcxx . . $ _BBuf#used.);
154 return 0;
155 }
156
157 #define BACKREF_REL_TO_ABScxx . . $ `vendor/onigmo-source/regparse.c:157:9`!(rel_no, env) \
158 ((env)->num_mem + 1 + (rel_no))
159
160 #define ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(v,f,negative) (negative) ? ((v) &= ~(f)) : ((v) |= (f))
161
162 #define MBCODE_START_POScxx . . $ `vendor/onigmo-source/regparse.c:162:9`!(enc) \
163 (OnigCodePoint )(ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(enc) > 1 ? 0 : 0x80)
164
165 #define SET_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:165:9`!(enc, pbuf) \
166 add_code_range_to_buf(pbuf, env, MBCODE_START_POScxx . . $ `vendor/onigmo-source/regparse.c:162:9`!(enc), ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`!)
167
168 #define ADD_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:168:9`!(enc, mbuf) do {\
169 if (! ONIGENC_IS_SINGLEBYTEcxx . . $ `vendor/onigmo-source/onigmo.h:318:9`!(enc)) {\
170 r = SET_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:165:9`!(enc, &(mbuf));\
171 if (r) return r;\
172 }\
173 } while (0)
174
175
176 #define BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(bs, pos) do { \
177 if (BITSET_ATcxx . . $ `vendor/onigmo-source/regint.h:435:9`!(bs, pos)) CC_DUP_WARN(env); \
178 BS_ROOMcxx . . $ `vendor/onigmo-source/regint.h:432:9`!(bs, pos) |= BS_BITcxx . . $ `vendor/onigmo-source/regint.h:433:9`!(pos); \
179 } while (0)
180
181 #define BITSET_IS_EMPTYcxx . . $ `vendor/onigmo-source/regparse.c:181:9`!(bs,empty) do {\
182 int i;\
183 empty = 1;\
184 for (i = 0; i < BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!; i++) {\
185 if ((bs)[i] != 0) {\
186 empty = 0; break;\
187 }\
188 }\
189 } while (0)
190
191 static void
192 bitset_set_rangecxx . . $ bitset_set_range(9e779080813d5c55).(ScanEnvcxx . . $ ScanEnv# *env, BitSetRefcxx . . $ BitSetRef# bs, int from, int to)
193 {
194 int i;
195 for (i = from; i <= to && i < SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!; i++) {
196 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(bs, i);
197 }
198 }
199
200 #if 0
201 static void
202 bitset_set_all(BitSetRef bs)
203 {
204 int i;
205 for (i = 0; i < BITSET_SIZE; i++) { bs[i] = ~((Bits )0); }
206 }
207 #endif
208
209 static void
210 bitset_invertcxx . . $ bitset_invert(218b13e5e7cbf689).(BitSetRefcxx . . $ BitSetRef# bs)
211 {
212 int i;
213 for (i = 0; i < BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!; i++) { bs[i] = ~(bs[i]); }
214 }
215
216 static void
217 bitset_invert_tocxx . . $ bitset_invert_to(ce04c39653c001b6).(BitSetRefcxx . . $ BitSetRef# from, BitSetRefcxx . . $ BitSetRef# to)
218 {
219 int i;
220 for (i = 0; i < BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!; i++) { to[i] = ~(from[i]); }
221 }
222
223 static void
224 bitset_andcxx . . $ bitset_and(ce04c39653c001b6).(BitSetRefcxx . . $ BitSetRef# dest, BitSetRefcxx . . $ BitSetRef# bs)
225 {
226 int i;
227 for (i = 0; i < BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!; i++) { dest[i] &= bs[i]; }
228 }
229
230 static void
231 bitset_orcxx . . $ bitset_or(ce04c39653c001b6).(BitSetRefcxx . . $ BitSetRef# dest, BitSetRefcxx . . $ BitSetRef# bs)
232 {
233 int i;
234 for (i = 0; i < BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!; i++) { dest[i] |= bs[i]; }
235 }
236
237 static void
238 bitset_copycxx . . $ bitset_copy(ce04c39653c001b6).(BitSetRefcxx . . $ BitSetRef# dest, BitSetRefcxx . . $ BitSetRef# bs)
239 {
240 int i;
241 for (i = 0; i < BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!; i++) { dest[i] = bs[i]; }
242 }
243
244 #if defined(USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!) && !defined(USE_ST_LIBRARYcxx . . $ `vendor/onigmo-source/regint.h:83:9`!)
245 extern int
246 onig_strncmp(const UChar* s1, const UChar* s2, int n)
247 {
248 int x;
249
250 while (n-- > 0) {
251 x = *s2++ - *s1++;
252 if (x) return x;
253 }
254 return 0;
255 }
256 #endif
257
258 extern void
259 onig_strcpycxx . . $ onig_strcpy(32f263b1ae9708ff).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* dest, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* src, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
260 {
261 ptrdiff_t len = end - src;
262 if (len > 0) {
263 xmemcpycxx . . $ `vendor/onigmo-source/regint.h:202:9`!(dest, src, len);
264 dest[len] = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )0;
265 }
266 }
267
268 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
269 static UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*
270 strdup_with_nullcxx . . $ strdup_with_null(2b84be4d60b6266d).(OnigEncodingcxx . . $ OnigEncoding# enc, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
271 {
272 ptrdiff_t slen;
273 int term_len, i;
274 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *r;
275
276 slen = end - s;
277 term_len = ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(enc);
278
279 r = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(slen + term_len);
280 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(r);
281 xmemcpycxx . . $ `vendor/onigmo-source/regint.h:202:9`!(r, s, slen);
282
283 for (i = 0; i < term_len; i++)
284 r[slen + i] = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )0;
285
286 return r;
287 }
288 #endif
289
290 /* scan pattern methods */
291 #define PEND_VALUEcxx . . $ `vendor/onigmo-source/regparse.c:291:9`! 0
292
293 #ifdef __GNUC__cxx . . $ `<built-in>:8:9`!
294 /* get rid of Wunused-but-set-variable and Wuninitialized */
295 # define PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`! UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pfetch_prev = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; (void)pfetch_prev
296 #else
297 # define PFETCH_READY UChar* pfetch_prev
298 #endif
299 #define PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! (p < end ? 0 : 1)
300 #define PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`! p = pfetch_prev
301 #define PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`! do { \
302 pfetch_prev = p; \
303 p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); \
304 } while (0)
305 #define PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c) do { \
306 c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, end)); \
307 pfetch_prev = p; \
308 p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); \
309 } while (0)
310
311 #define PINC_Scxx . . $ `vendor/onigmo-source/regparse.c:311:9`! do { \
312 p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); \
313 } while (0)
314 #define PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c) do { \
315 c = ((enc->max_enc_len == 1) ? *p : ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, end)); \
316 p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); \
317 } while (0)
318
319 #define PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`! (p < end ? ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, end) : PEND_VALUEcxx . . $ `vendor/onigmo-source/regparse.c:291:9`!)
320 #define PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!(c) (PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`! == (OnigCodePoint )c)
321
322 static UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*
323 strcat_capacxx . . $ strcat_capa(62ade49464ca93e4).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* dest, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* dest_end, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* src, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* src_end,
324 size_t capa)
325 {
326 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* r;
327
328 if (dest)
329 r = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )xrealloccxx . . $ `vendor/onigmo-source/regint.h:144:10`!(dest, capa + 1);
330 else
331 r = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(capa + 1);
332
333 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(r);
334 onig_strcpycxx . . $ onig_strcpy(32f263b1ae9708ff).(r + (dest_end - dest), src, src_end);
335 return r;
336 }
337
338 /* dest on static area */
339 static UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*
340 strcat_capa_from_staticcxx . . $ strcat_capa_from_static(62ade49464ca93e4).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* dest, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* dest_end,
341 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* src, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* src_end, size_t capa)
342 {
343 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* r;
344
345 r = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(capa + 1);
346 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(r);
347 onig_strcpycxx . . $ onig_strcpy(32f263b1ae9708ff).(r, dest, dest_end);
348 onig_strcpycxx . . $ onig_strcpy(32f263b1ae9708ff).(r + (dest_end - dest), src, src_end);
349 return r;
350 }
351
352
353 #ifdef USE_ST_LIBRARYcxx . . $ `vendor/onigmo-source/regint.h:83:9`!
354
355 # ifdef RUBY
356 # include "ruby/st.h"
357 # else
358 # include "st.h"cxx . . $ `<file>/vendor/onigmo-source/st.h`/
359 # endif
360
361 typedef structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0# {
362 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s.;
363 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#end.;
364 } st_str_end_keycxx . . $ st_str_end_key#;
365
366 static int
367 str_end_cmpcxx . . $ str_end_cmp(8bdd4f646c1f3ab7).(st_data_tcxx . . $ st_data_t# xp, st_data_tcxx . . $ st_data_t# yp)
368 {
369 const st_str_end_keycxx . . $ st_str_end_key# *x, *y;
370 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p, *q;
371 int c;
372
373 x = (const st_str_end_keycxx . . $ st_str_end_key# *)xp;
374 y = (const st_str_end_keycxx . . $ st_str_end_key# *)yp;
375 if ((x->endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#end. - x->scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s.) != (y->endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#end. - y->scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s.))
376 return 1;
377
378 p = x->scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s.;
379 q = y->scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s.;
380 while (p < x->endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#end.) {
381 c = (int )*p - (int )*q;
382 if (c != 0) return c;
383
384 p++; q++;
385 }
386
387 return 0;
388 }
389
390 static st_index_tcxx . . $ st_index_t#
391 str_end_hashcxx . . $ str_end_hash(ecdaa1632f49f591).(st_data_tcxx . . $ st_data_t# xp)
392 {
393 const st_str_end_keycxx . . $ st_str_end_key# *x = (const st_str_end_keycxx . . $ st_str_end_key# *)xp;
394 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p;
395 st_index_tcxx . . $ st_index_t# val = 0;
396
397 p = x->scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s.;
398 while (p < x->endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#end.) {
399 val = val * 997 + (int )*p++;
400 }
401
402 return val + (val >> 5);
403 }
404
405 extern hash_table_typecxx . . $ hash_table_type#*
406 onig_st_init_strend_table_with_sizecxx . . $ onig_st_init_strend_table_with_size(bfcfa4d6b7f7ef64).(st_index_tcxx . . $ st_index_t# size)
407 {
408 static const struct st_hash_typecxx . . $ st_hash_type# hashType = {
409 str_end_cmpcxx . . $ str_end_cmp(8bdd4f646c1f3ab7).,
410 str_end_hashcxx . . $ str_end_hash(ecdaa1632f49f591).,
411 };
412
413 return (hash_table_typecxx . . $ hash_table_type#* )
414 onig_st_init_table_with_sizecxx . . $ onig_st_init_table_with_size(123a60f4c9ec66b6).(&hashType, size);
415 }
416
417 extern int
418 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,
419 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end_key, hash_data_typecxx . . $ hash_data_type# *value)
420 {
421 st_str_end_keycxx . . $ st_str_end_key# key;
422
423 key.scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )str_key;
424 key.endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#end. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )end_key;
425
426 return onig_st_lookupcxx . . $ onig_st_lookup(86fb6c8e4d6ee4d4).(table, (st_data_tcxx . . $ st_data_t# )(&key), value);
427 }
428
429 extern int
430 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,
431 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end_key, hash_data_typecxx . . $ hash_data_type# value)
432 {
433 st_str_end_keycxx . . $ st_str_end_key#* key;
434 int result;
435
436 key = (st_str_end_keycxx . . $ st_str_end_key#* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(st_str_end_keycxx . . $ st_str_end_key#));
437 key->scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#s. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )str_key;
438 key->endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_0#end. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )end_key;
439 result = onig_st_insertcxx . . $ onig_st_insert(4ff98f5424cac425).(table, (st_data_tcxx . . $ st_data_t# )key, value);
440 if (result) {
441 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(key);
442 }
443 return result;
444 }
445
446 #endif /* USE_ST_LIBRARY */
447
448
449 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
450
451 # define INIT_NAME_BACKREFS_ALLOC_NUMcxx . . $ `vendor/onigmo-source/regparse.c:451:10`! 8
452
453 typedef structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1# {
454 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name.;
455 size_t name_lencxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name_len.; /* byte length */
456 int back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num.; /* number of backrefs */
457 int back_alloccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_alloc.;
458 int back_ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_ref1.;
459 int* back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.;
460 } NameEntrycxx . . $ NameEntry#;
461
462 # ifdef USE_ST_LIBRARYcxx . . $ `vendor/onigmo-source/regint.h:83:9`!
463
464 typedef st_tablecxx . . $ st_table# NameTablecxx . . $ NameTable#;
465 typedef st_data_tcxx . . $ st_data_t# HashDataTypecxx . . $ HashDataType#; /* 1.6 st.h doesn't define st_data_t type */
466
467 # ifdef ONIG_DEBUG
468 static int
469 i_print_name_entry(UChar* key, NameEntry* e, void* arg)
470 {
471 int i;
472 FILE* fp = (FILE* )arg;
473
474 fprintf(fp, "%s: ", e->name);
475 if (e->back_num == 0)
476 fputs("-", fp);
477 else if (e->back_num == 1)
478 fprintf(fp, "%d", e->back_ref1);
479 else {
480 for (i = 0; i < e->back_num; i++) {
481 if (i > 0) fprintf(fp, ", ");
482 fprintf(fp, "%d", e->back_refs[i]);
483 }
484 }
485 fputs("\n", fp);
486 return ST_CONTINUE;
487 }
488
489 extern int
490 onig_print_names(FILE* fp, regex_t* reg)
491 {
492 NameTable* t = (NameTable* )reg->name_table;
493
494 if (IS_NOT_NULL(t)) {
495 fprintf(fp, "name table\n");
496 onig_st_foreach(t, i_print_name_entry, (HashDataType )fp);
497 fputs("\n", fp);
498 }
499 return 0;
500 }
501 # endif /* ONIG_DEBUG */
502
503 static int
504 i_free_name_entrycxx . . $ i_free_name_entry(47d81b63ccb29145).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* key, NameEntrycxx . . $ NameEntry#* e, void* arg ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!)
505 {
506 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(e->namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name.);
507 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(e->back_refs)) xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.);
508 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(key);
509 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(e);
510 return ST_DELETEcxx . . $ ST_DELETE.;
511 }
512
513 static int
514 names_clearcxx . . $ names_clear(db681f3d53a24e05).(regex_tcxx . . $ regex_t#* reg)
515 {
516 NameTablecxx . . $ NameTable#* t = (NameTablecxx . . $ NameTable#* )reg->name_tablecxx . . $ re_pattern_buffer#name_table.;
517
518 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(t)) {
519 onig_st_foreachcxx . . $ onig_st_foreach(57682dec9c4872a4).(t, i_free_name_entrycxx . . $ i_free_name_entry(47d81b63ccb29145)., 0);
520 }
521 return 0;
522 }
523
524 extern int
525 onig_names_freecxx . . $ onig_names_free(db681f3d53a24e05).(regex_tcxx . . $ regex_t#* reg)
526 {
527 int r;
528 NameTablecxx . . $ NameTable#* t;
529
530 r = names_clearcxx . . $ names_clear(db681f3d53a24e05).(reg);
531 if (r) return r;
532
533 t = (NameTablecxx . . $ NameTable#* )reg->name_tablecxx . . $ re_pattern_buffer#name_table.;
534 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(t)) onig_st_free_tablecxx . . $ onig_st_free_table(7ca396bd81aa87b7).(t);
535 reg->name_tablecxx . . $ re_pattern_buffer#name_table. = (void* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
536 return 0;
537 }
538
539 static NameEntrycxx . . $ NameEntry#*
540 name_findcxx . . $ name_find(4bde7e8a1eac47e2).(regex_tcxx . . $ regex_t#* reg, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_end)
541 {
542 NameEntrycxx . . $ NameEntry#* e;
543 NameTablecxx . . $ NameTable#* t = (NameTablecxx . . $ NameTable#* )reg->name_tablecxx . . $ re_pattern_buffer#name_table.;
544
545 e = (NameEntrycxx . . $ NameEntry#* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
546 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(t)) {
547 onig_st_lookup_strendcxx . . $ onig_st_lookup_strend(24a03b210917e895).(t, name, name_end, (HashDataTypecxx . . $ HashDataType#* )((void* )(&e)));
548 }
549 return e;
550 }
551
552 typedef structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2# {
553 int (*funccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#func.)(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*,int,int*,regex_tcxx . . $ regex_t#*,void*);
554 regex_tcxx . . $ regex_t#* regcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#reg.;
555 void* argcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#arg.;
556 int retcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#ret.;
557 OnigEncodingcxx . . $ OnigEncoding# enccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#enc.;
558 } INamesArgcxx . . $ INamesArg#;
559
560 static int
561 i_namescxx . . $ i_names(c757ca00e4240e03).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* key ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, NameEntrycxx . . $ NameEntry#* e, INamesArgcxx . . $ INamesArg#* arg)
562 {
563 int r = (*(arg->funccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#func.))(e->namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name.,
564 e->namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name. + e->name_lencxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name_len.,
565 e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num.,
566 (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. > 1 ? e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs. : &(e->back_ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_ref1.)),
567 arg->regcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#reg., arg->argcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#arg.);
568 if (r != 0) {
569 arg->retcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#ret. = r;
570 return ST_STOPcxx . . $ ST_STOP.;
571 }
572 return ST_CONTINUEcxx . . $ ST_CONTINUE.;
573 }
574
575 extern int
576 onig_foreach_namecxx . . $ onig_foreach_name(33d9f0650d880f67).(regex_tcxx . . $ regex_t#* reg,
577 int (*func)(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*,int,int*,regex_tcxx . . $ regex_t#*,void*), void* arg)
578 {
579 INamesArgcxx . . $ INamesArg# narg;
580 NameTablecxx . . $ NameTable#* t = (NameTablecxx . . $ NameTable#* )reg->name_tablecxx . . $ re_pattern_buffer#name_table.;
581
582 narg.retcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#ret. = 0;
583 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(t)) {
584 narg.funccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#func. = func;
585 narg.regcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#reg. = reg;
586 narg.argcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#arg. = arg;
587 narg.enccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#enc. = reg->enccxx . . $ re_pattern_buffer#enc.; /* should be pattern encoding. */
588 onig_st_foreachcxx . . $ onig_st_foreach(57682dec9c4872a4).(t, i_namescxx . . $ i_names(c757ca00e4240e03)., (HashDataTypecxx . . $ HashDataType# )&narg);
589 }
590 return narg.retcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_2#ret.;
591 }
592
593 static int
594 i_renumber_namecxx . . $ i_renumber_name(499e37d773c91c48).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* key ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, NameEntrycxx . . $ NameEntry#* e, GroupNumRemapcxx . . $ GroupNumRemap#* map)
595 {
596 int i;
597
598 if (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. > 1) {
599 for (i = 0; i < e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num.; i++) {
600 e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.[i] = map[e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.[i]].new_valcxx . . $ $anonymous_type_d68713db57daa8f0_12#new_val.;
601 }
602 }
603 else if (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. == 1) {
604 e->back_ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_ref1. = map[e->back_ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_ref1.].new_valcxx . . $ $anonymous_type_d68713db57daa8f0_12#new_val.;
605 }
606
607 return ST_CONTINUEcxx . . $ ST_CONTINUE.;
608 }
609
610 extern int
611 onig_renumber_name_tablecxx . . $ onig_renumber_name_table(aac449ff091aaadb).(regex_tcxx . . $ regex_t#* reg, GroupNumRemapcxx . . $ GroupNumRemap#* map)
612 {
613 NameTablecxx . . $ NameTable#* t = (NameTablecxx . . $ NameTable#* )reg->name_tablecxx . . $ re_pattern_buffer#name_table.;
614
615 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(t)) {
616 onig_st_foreachcxx . . $ onig_st_foreach(57682dec9c4872a4).(t, i_renumber_namecxx . . $ i_renumber_name(499e37d773c91c48)., (HashDataTypecxx . . $ HashDataType# )map);
617 }
618 return 0;
619 }
620
621
622 extern int
623 onig_number_of_namescxx . . $ onig_number_of_names(43f0144577350758).(const regex_tcxx . . $ regex_t#* reg)
624 {
625 NameTablecxx . . $ NameTable#* t = (NameTablecxx . . $ NameTable#* )reg->name_tablecxx . . $ re_pattern_buffer#name_table.;
626
627 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(t))
628 return (int )t->num_entriescxx . . $ st_table#num_entries.;
629 else
630 return 0;
631 }
632
633 # else /* USE_ST_LIBRARY */
634
635 # define INIT_NAMES_ALLOC_NUM 8
636
637 typedef struct {
638 NameEntry* e;
639 int num;
640 int alloc;
641 } NameTable;
642
643 # ifdef ONIG_DEBUG
644 extern int
645 onig_print_names(FILE* fp, regex_t* reg)
646 {
647 int i, j;
648 NameEntry* e;
649 NameTable* t = (NameTable* )reg->name_table;
650
651 if (IS_NOT_NULL(t) && t->num > 0) {
652 fprintf(fp, "name table\n");
653 for (i = 0; i < t->num; i++) {
654 e = &(t->e[i]);
655 fprintf(fp, "%s: ", e->name);
656 if (e->back_num == 0) {
657 fputs("-", fp);
658 }
659 else if (e->back_num == 1) {
660 fprintf(fp, "%d", e->back_ref1);
661 }
662 else {
663 for (j = 0; j < e->back_num; j++) {
664 if (j > 0) fprintf(fp, ", ");
665 fprintf(fp, "%d", e->back_refs[j]);
666 }
667 }
668 fputs("\n", fp);
669 }
670 fputs("\n", fp);
671 }
672 return 0;
673 }
674 # endif
675
676 static int
677 names_clear(regex_t* reg)
678 {
679 int i;
680 NameEntry* e;
681 NameTable* t = (NameTable* )reg->name_table;
682
683 if (IS_NOT_NULL(t)) {
684 for (i = 0; i < t->num; i++) {
685 e = &(t->e[i]);
686 if (IS_NOT_NULL(e->name)) {
687 xfree(e->name);
688 e->name = NULL;
689 e->name_len = 0;
690 e->back_num = 0;
691 e->back_alloc = 0;
692 if (IS_NOT_NULL(e->back_refs)) xfree(e->back_refs);
693 e->back_refs = (int* )NULL;
694 }
695 }
696 if (IS_NOT_NULL(t->e)) {
697 xfree(t->e);
698 t->e = NULL;
699 }
700 t->num = 0;
701 }
702 return 0;
703 }
704
705 extern int
706 onig_names_free(regex_t* reg)
707 {
708 int r;
709 NameTable* t;
710
711 r = names_clear(reg);
712 if (r) return r;
713
714 t = (NameTable* )reg->name_table;
715 if (IS_NOT_NULL(t)) xfree(t);
716 reg->name_table = NULL;
717 return 0;
718 }
719
720 static NameEntry*
721 name_find(regex_t* reg, const UChar* name, const UChar* name_end)
722 {
723 int i, len;
724 NameEntry* e;
725 NameTable* t = (NameTable* )reg->name_table;
726
727 if (IS_NOT_NULL(t)) {
728 len = name_end - name;
729 for (i = 0; i < t->num; i++) {
730 e = &(t->e[i]);
731 if (len == e->name_len && onig_strncmp(name, e->name, len) == 0)
732 return e;
733 }
734 }
735 return (NameEntry* )NULL;
736 }
737
738 extern int
739 onig_foreach_name(regex_t* reg,
740 int (*func)(const UChar*, const UChar*,int,int*,regex_t*,void*), void* arg)
741 {
742 int i, r;
743 NameEntry* e;
744 NameTable* t = (NameTable* )reg->name_table;
745
746 if (IS_NOT_NULL(t)) {
747 for (i = 0; i < t->num; i++) {
748 e = &(t->e[i]);
749 r = (*func)(e->name, e->name + e->name_len, e->back_num,
750 (e->back_num > 1 ? e->back_refs : &(e->back_ref1)),
751 reg, arg);
752 if (r != 0) return r;
753 }
754 }
755 return 0;
756 }
757
758 extern int
759 onig_number_of_names(const regex_t* reg)
760 {
761 NameTable* t = (NameTable* )reg->name_table;
762
763 if (IS_NOT_NULL(t))
764 return t->num;
765 else
766 return 0;
767 }
768
769 # endif /* else USE_ST_LIBRARY */
770
771 static int
772 name_addcxx . . $ name_add(610c9a6cd8dae63d).(regex_tcxx . . $ regex_t#* reg, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_end, int backref, ScanEnvcxx . . $ ScanEnv#* env)
773 {
774 int alloc;
775 NameEntrycxx . . $ NameEntry#* e;
776 NameTablecxx . . $ NameTable#* t = (NameTablecxx . . $ NameTable#* )reg->name_tablecxx . . $ re_pattern_buffer#name_table.;
777
778 if (name_end - name <= 0)
779 return ONIGERR_EMPTY_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:679:9`!;
780
781 e = name_findcxx . . $ name_find(4bde7e8a1eac47e2).(reg, name, name_end);
782 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(e)) {
783 # ifdef USE_ST_LIBRARYcxx . . $ `vendor/onigmo-source/regint.h:83:9`!
784 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(t)) {
785 t = onig_st_init_strend_table_with_sizecxx . . $ onig_st_init_strend_table_with_size(bfcfa4d6b7f7ef64).(5);
786 reg->name_tablecxx . . $ re_pattern_buffer#name_table. = (void* )t;
787 }
788 e = (NameEntrycxx . . $ NameEntry#* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(NameEntrycxx . . $ NameEntry#));
789 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(e);
790
791 e->namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name. = strdup_with_nullcxx . . $ strdup_with_null(2b84be4d60b6266d).(reg->enccxx . . $ re_pattern_buffer#enc., name, name_end);
792 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(e->name)) {
793 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(e);
794 return ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`!;
795 }
796 onig_st_insert_strendcxx . . $ onig_st_insert_strend(3723261b6967624d).(t, e->namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name., (e->namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name. + (name_end - name)),
797 (HashDataTypecxx . . $ HashDataType# )e);
798
799 e->name_lencxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#name_len. = name_end - name;
800 e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. = 0;
801 e->back_alloccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_alloc. = 0;
802 e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs. = (int* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
803
804 # else
805
806 if (IS_NULL(t)) {
807 alloc = INIT_NAMES_ALLOC_NUM;
808 t = (NameTable* )xmalloc(sizeof(NameTable));
809 CHECK_NULL_RETURN_MEMERR(t);
810 t->e = NULL;
811 t->alloc = 0;
812 t->num = 0;
813
814 t->e = (NameEntry* )xmalloc(sizeof(NameEntry) * alloc);
815 if (IS_NULL(t->e)) {
816 xfree(t);
817 return ONIGERR_MEMORY;
818 }
819 t->alloc = alloc;
820 reg->name_table = t;
821 goto clear;
822 }
823 else if (t->num == t->alloc) {
824 int i;
825 NameEntry* p;
826
827 alloc = t->alloc * 2;
828 p = (NameEntry* )xrealloc(t->e, sizeof(NameEntry) * alloc);
829 CHECK_NULL_RETURN_MEMERR(p);
830 t->e = p;
831 t->alloc = alloc;
832
833 clear:
834 for (i = t->num; i < t->alloc; i++) {
835 t->e[i].name = NULL;
836 t->e[i].name_len = 0;
837 t->e[i].back_num = 0;
838 t->e[i].back_alloc = 0;
839 t->e[i].back_refs = (int* )NULL;
840 }
841 }
842 e = &(t->e[t->num]);
843 t->num++;
844 e->name = strdup_with_null(reg->enc, name, name_end);
845 if (IS_NULL(e->name)) return ONIGERR_MEMORY;
846 e->name_len = name_end - name;
847 # endif
848 }
849
850 if (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. >= 1 &&
851 ! IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:596:9`!)) {
852 onig_scan_env_set_error_stringcxx . . $ onig_scan_env_set_error_string(c0cd2a0033022035).(env, ONIGERR_MULTIPLEX_DEFINED_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:684:9`!,
853 name, name_end);
854 return ONIGERR_MULTIPLEX_DEFINED_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:684:9`!;
855 }
856
857 e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num.++;
858 if (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. == 1) {
859 e->back_ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_ref1. = backref;
860 }
861 else {
862 if (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. == 2) {
863 alloc = INIT_NAME_BACKREFS_ALLOC_NUMcxx . . $ `vendor/onigmo-source/regparse.c:451:10`!;
864 e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs. = (int* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(int) * alloc);
865 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(e->back_refs);
866 e->back_alloccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_alloc. = alloc;
867 e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.[0] = e->back_ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_ref1.;
868 e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.[1] = backref;
869 }
870 else {
871 if (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. > e->back_alloccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_alloc.) {
872 int* p;
873 alloc = e->back_alloccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_alloc. * 2;
874 p = (int* )xrealloccxx . . $ `vendor/onigmo-source/regint.h:144:10`!(e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs., sizeof(int) * alloc);
875 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(p);
876 e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs. = p;
877 e->back_alloccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_alloc. = alloc;
878 }
879 e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.[e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num. - 1] = backref;
880 }
881 }
882
883 return 0;
884 }
885
886 extern int
887 onig_name_to_group_numberscxx . . $ onig_name_to_group_numbers(e1cabcacd17cba1d).(regex_tcxx . . $ regex_t#* reg, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name,
888 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_end, int** nums)
889 {
890 NameEntrycxx . . $ NameEntry#* e = name_findcxx . . $ name_find(4bde7e8a1eac47e2).(reg, name, name_end);
891
892 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(e)) return ONIGERR_UNDEFINED_NAME_REFERENCEcxx . . $ `vendor/onigmo-source/onigmo.h:682:9`!;
893
894 switch (e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num.) {
895 case 0:
896 *nums = 0;
897 break;
898 case 1:
899 *nums = &(e->back_ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_ref1.);
900 break;
901 default:
902 *nums = e->back_refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_refs.;
903 break;
904 }
905 return e->back_numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_1#back_num.;
906 }
907
908 extern int
909 onig_name_to_backref_numbercxx . . $ onig_name_to_backref_number(5ee092671d60807c).(regex_tcxx . . $ regex_t#* reg, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name,
910 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_end, const OnigRegioncxx . . $ OnigRegion# *region)
911 {
912 int i, n, *nums;
913
914 n = onig_name_to_group_numberscxx . . $ onig_name_to_group_numbers(e1cabcacd17cba1d).(reg, name, name_end, &nums);
915 if (n < 0)
916 return n;
917 else if (n == 0)
918 return ONIGERR_PARSER_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:631:9`!;
919 else if (n == 1)
920 return nums[0];
921 else {
922 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(region)) {
923 for (i = n - 1; i >= 0; i--) {
924 if (region->begcxx . . $ re_registers#beg.[nums[i]] != ONIG_REGION_NOTPOScxx . . $ `vendor/onigmo-source/onigmo.h:730:9`!)
925 return nums[i];
926 }
927 }
928 return nums[n - 1];
929 }
930 }
931
932 #else /* USE_NAMED_GROUP */
933
934 extern int
935 onig_name_to_group_numbers(regex_t* reg, const UChar* name,
936 const UChar* name_end, int** nums)
937 {
938 return ONIG_NO_SUPPORT_CONFIG;
939 }
940
941 extern int
942 onig_name_to_backref_number(regex_t* reg, const UChar* name,
943 const UChar* name_end, const OnigRegion* region)
944 {
945 return ONIG_NO_SUPPORT_CONFIG;
946 }
947
948 extern int
949 onig_foreach_name(regex_t* reg,
950 int (*func)(const UChar*, const UChar*,int,int*,regex_t*,void*), void* arg)
951 {
952 return ONIG_NO_SUPPORT_CONFIG;
953 }
954
955 extern int
956 onig_number_of_names(const regex_t* reg)
957 {
958 return 0;
959 }
960 #endif /* else USE_NAMED_GROUP */
961
962 extern int
963 onig_noname_group_capture_is_activecxx . . $ onig_noname_group_capture_is_active(43f0144577350758).(const regex_tcxx . . $ regex_t#* reg)
964 {
965 if (ONIG_IS_OPTION_ONcxx . . $ `vendor/onigmo-source/onigmo.h:476:9`!(reg->options, ONIG_OPTION_DONT_CAPTURE_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:459:9`!))
966 return 0;
967
968 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
969 if (onig_number_of_namescxx . . $ onig_number_of_names(43f0144577350758).(reg) > 0 &&
970 IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(reg->syntax, ONIG_SYN_CAPTURE_ONLY_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:595:9`!) &&
971 !ONIG_IS_OPTION_ONcxx . . $ `vendor/onigmo-source/onigmo.h:476:9`!(reg->options, ONIG_OPTION_CAPTURE_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:460:9`!)) {
972 return 0;
973 }
974 #endif
975
976 return 1;
977 }
978
979
980 #define INIT_SCANENV_MEMNODES_ALLOC_SIZEcxx . . $ `vendor/onigmo-source/regparse.c:980:9`! 16
981
982 static void
983 scan_env_clearcxx . . $ scan_env_clear(5e95567f993df0d4).(ScanEnvcxx . . $ ScanEnv#* env)
984 {
985 int i;
986
987 BIT_STATUS_CLEARcxx . . $ `vendor/onigmo-source/regint.h:355:9`!(env->capture_history);
988 BIT_STATUS_CLEARcxx . . $ `vendor/onigmo-source/regint.h:355:9`!(env->bt_mem_start);
989 BIT_STATUS_CLEARcxx . . $ `vendor/onigmo-source/regint.h:355:9`!(env->bt_mem_end);
990 BIT_STATUS_CLEARcxx . . $ `vendor/onigmo-source/regint.h:355:9`!(env->backrefed_mem);
991 env->errorcxx . . $ $anonymous_type_d68713db57daa8f0_11#error. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
992 env->error_endcxx . . $ $anonymous_type_d68713db57daa8f0_11#error_end. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
993 env->num_callcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_call. = 0;
994 env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. = 0;
995 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
996 env->num_namedcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_named. = 0;
997 #endif
998 env->mem_alloccxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_alloc. = 0;
999 env->mem_nodes_dynamiccxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_nodes_dynamic. = (Nodecxx . . $ Node#** )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1000
1001 for (i = 0; i < SCANENV_MEMNODES_SIZEcxx . . $ `vendor/onigmo-source/regparse.h:285:9`!; i++)
1002 env->mem_nodes_staticcxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_nodes_static.[i] = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
1003
1004 #ifdef USE_COMBINATION_EXPLOSION_CHECK
1005 env->num_comb_exp_check = 0;
1006 env->comb_exp_max_regnum = 0;
1007 env->curr_max_regnum = 0;
1008 env->has_recursion = 0;
1009 #endif
1010 env->parse_depthcxx . . $ $anonymous_type_d68713db57daa8f0_11#parse_depth. = 0;
1011 env->warnings_flagcxx . . $ $anonymous_type_d68713db57daa8f0_11#warnings_flag. = 0;
1012 }
1013
1014 static int
1015 scan_env_add_mem_entrycxx . . $ scan_env_add_mem_entry(eca7cc003a536110).(ScanEnvcxx . . $ ScanEnv#* env)
1016 {
1017 int i, need, alloc;
1018 Nodecxx . . $ Node#** p;
1019
1020 need = env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. + 1;
1021 if (need > ONIG_MAX_CAPTURE_GROUP_NUMcxx . . $ `vendor/onigmo-source/onigmo.h:438:9`!)
1022 return ONIGERR_TOO_MANY_CAPTURE_GROUPScxx . . $ `vendor/onigmo-source/onigmo.h:676:9`!;
1023 if (need >= SCANENV_MEMNODES_SIZEcxx . . $ `vendor/onigmo-source/regparse.h:285:9`!) {
1024 if (env->mem_alloccxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_alloc. <= need) {
1025 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(env->mem_nodes_dynamic)) {
1026 alloc = INIT_SCANENV_MEMNODES_ALLOC_SIZEcxx . . $ `vendor/onigmo-source/regparse.c:980:9`!;
1027 p = (Nodecxx . . $ Node#** )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(Nodecxx . . $ Node#*) * alloc);
1028 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(p);
1029 xmemcpycxx . . $ `vendor/onigmo-source/regint.h:202:9`!(p, env->mem_nodes_staticcxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_nodes_static.,
1030 sizeof(Nodecxx . . $ Node#*) * SCANENV_MEMNODES_SIZEcxx . . $ `vendor/onigmo-source/regparse.h:285:9`!);
1031 }
1032 else {
1033 alloc = env->mem_alloccxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_alloc. * 2;
1034 p = (Nodecxx . . $ Node#** )xrealloccxx . . $ `vendor/onigmo-source/regint.h:144:10`!(env->mem_nodes_dynamiccxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_nodes_dynamic., sizeof(Nodecxx . . $ Node#*) * alloc);
1035 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(p);
1036 }
1037
1038 for (i = env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. + 1; i < alloc; i++)
1039 p[i] = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
1040
1041 env->mem_nodes_dynamiccxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_nodes_dynamic. = p;
1042 env->mem_alloccxx . . $ $anonymous_type_d68713db57daa8f0_11#mem_alloc. = alloc;
1043 }
1044 }
1045
1046 env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem.++;
1047 return env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem.;
1048 }
1049
1050 static int
1051 scan_env_set_mem_nodecxx . . $ scan_env_set_mem_node(5f4f4d6b3eb89ac3).(ScanEnvcxx . . $ ScanEnv#* env, int num, Nodecxx . . $ Node#* node)
1052 {
1053 if (env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. >= num)
1054 SCANENV_MEM_NODEScxx . . $ `vendor/onigmo-source/regparse.h:286:9`!(env)[num] = node;
1055 else
1056 return ONIGERR_PARSER_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:631:9`!;
1057 return 0;
1058 }
1059
1060
1061 extern void
1062 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(Nodecxx . . $ Node#* node)
1063 {
1064 start:
1065 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(node)) return ;
1066
1067 switch (NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:69:9`!(node)) {
1068 case NT_STRcxx . . $ `vendor/onigmo-source/regparse.h:38:9`!:
1069 if (NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->capacxx . . $ $anonymous_type_d68713db57daa8f0_0#capa. != 0 &&
1070 IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->s) && NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. != NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->bufcxx . . $ $anonymous_type_d68713db57daa8f0_0#buf.) {
1071 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s.);
1072 }
1073 break;
1074
1075 case NT_LISTcxx . . $ `vendor/onigmo-source/regparse.h:46:9`!:
1076 case NT_ALTcxx . . $ `vendor/onigmo-source/regparse.h:47:9`!:
1077 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(NCARcxx . . $ `vendor/onigmo-source/regparse.h:86:9`!(node));
1078 {
1079 Nodecxx . . $ Node#* next_node = NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(node);
1080
1081 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(node);
1082 node = next_node;
1083 goto start;
1084 }
1085 break;
1086
1087 case NT_CCLASScxx . . $ `vendor/onigmo-source/regparse.h:39:9`!:
1088 {
1089 CClassNodecxx . . $ CClassNode#* cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(node);
1090
1091 if (cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.)
1092 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
1093 }
1094 break;
1095
1096 case NT_QTFRcxx . . $ `vendor/onigmo-source/regparse.h:43:9`!:
1097 if (NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target.)
1098 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target.);
1099 break;
1100
1101 case NT_ENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:44:9`!:
1102 if (NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target.)
1103 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target.);
1104 break;
1105
1106 case NT_BREFcxx . . $ `vendor/onigmo-source/regparse.h:42:9`!:
1107 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->back_dynamic))
1108 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->back_dynamiccxx . . $ $anonymous_type_d68713db57daa8f0_6#back_dynamic.);
1109 break;
1110
1111 case NT_ANCHORcxx . . $ `vendor/onigmo-source/regparse.h:45:9`!:
1112 if (NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_7#target.)
1113 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_7#target.);
1114 break;
1115 }
1116
1117 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(node);
1118 }
1119
1120 static Nodecxx . . $ Node#*
1121 node_newcxx . . $ node_new(22adfc593233ebb9).(void)
1122 {
1123 Nodecxx . . $ Node#* node;
1124
1125 node = (Nodecxx . . $ Node#* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(Nodecxx . . $ Node#));
1126 /* xmemset(node, 0, sizeof(Node)); */
1127 return node;
1128 }
1129
1130 static void
1131 initialize_cclasscxx . . $ initialize_cclass(c938e001dc161a33).(CClassNodecxx . . $ CClassNode#* cc)
1132 {
1133 BITSET_CLEARcxx . . $ `vendor/onigmo-source/regint.h:427:9`!(cc->bs);
1134 /* cc->base.flags = 0; */
1135 cc->flagscxx . . $ $anonymous_type_8d70aa7b33683daf_1#flags. = 0;
1136 cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1137 }
1138
1139 static Nodecxx . . $ Node#*
1140 node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).(void)
1141 {
1142 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1143 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1144
1145 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_CCLASScxx . . $ `vendor/onigmo-source/regparse.h:39:9`!);
1146 initialize_cclasscxx . . $ initialize_cclass(c938e001dc161a33).(NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(node));
1147 return node;
1148 }
1149
1150 static Nodecxx . . $ Node#*
1151 node_new_ctypecxx . . $ node_new_ctype(d325c0554dd8ad24).(int type, int not, int ascii_range)
1152 {
1153 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1154 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1155
1156 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_CTYPEcxx . . $ `vendor/onigmo-source/regparse.h:40:9`!);
1157 NCTYPEcxx . . $ `vendor/onigmo-source/regparse.h:78:9`!(node)->ctypecxx . . $ $anonymous_type_d68713db57daa8f0_9#ctype. = type;
1158 NCTYPEcxx . . $ `vendor/onigmo-source/regparse.h:78:9`!(node)->notcxx . . $ $anonymous_type_d68713db57daa8f0_9#not. = not;
1159 NCTYPEcxx . . $ `vendor/onigmo-source/regparse.h:78:9`!(node)->ascii_rangecxx . . $ $anonymous_type_d68713db57daa8f0_9#ascii_range. = ascii_range;
1160 return node;
1161 }
1162
1163 static Nodecxx . . $ Node#*
1164 node_new_anycharcxx . . $ node_new_anychar(22adfc593233ebb9).(void)
1165 {
1166 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1167 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1168
1169 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_CANYcxx . . $ `vendor/onigmo-source/regparse.h:41:9`!);
1170 return node;
1171 }
1172
1173 static Nodecxx . . $ Node#*
1174 node_new_listcxx . . $ node_new_list(9672171f92575b29).(Nodecxx . . $ Node#* left, Nodecxx . . $ Node#* right)
1175 {
1176 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1177 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1178
1179 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_LISTcxx . . $ `vendor/onigmo-source/regparse.h:46:9`!);
1180 NCARcxx . . $ `vendor/onigmo-source/regparse.h:86:9`!(node) = left;
1181 NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(node) = right;
1182 return node;
1183 }
1184
1185 extern Nodecxx . . $ Node#*
1186 onig_node_new_listcxx . . $ onig_node_new_list(9672171f92575b29).(Nodecxx . . $ Node#* left, Nodecxx . . $ Node#* right)
1187 {
1188 return node_new_listcxx . . $ node_new_list(9672171f92575b29).(left, right);
1189 }
1190
1191 extern Nodecxx . . $ Node#*
1192 onig_node_list_addcxx . . $ onig_node_list_add(9672171f92575b29).(Nodecxx . . $ Node#* list, Nodecxx . . $ Node#* x)
1193 {
1194 Nodecxx . . $ Node# *n;
1195
1196 n = onig_node_new_listcxx . . $ onig_node_new_list(9672171f92575b29).(x, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1197 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(n)) return NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
1198
1199 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(list)) {
1200 while (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(list)))
1201 list = NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(list);
1202
1203 NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(list) = n;
1204 }
1205
1206 return n;
1207 }
1208
1209 extern Nodecxx . . $ Node#*
1210 onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(Nodecxx . . $ Node#* left, Nodecxx . . $ Node#* right)
1211 {
1212 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1213 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1214
1215 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_ALTcxx . . $ `vendor/onigmo-source/regparse.h:47:9`!);
1216 NCARcxx . . $ `vendor/onigmo-source/regparse.h:86:9`!(node) = left;
1217 NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(node) = right;
1218 return node;
1219 }
1220
1221 extern Nodecxx . . $ Node#*
1222 onig_node_new_anchorcxx . . $ onig_node_new_anchor(27164cd17c3dc213).(int type)
1223 {
1224 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1225 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1226
1227 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_ANCHORcxx . . $ `vendor/onigmo-source/regparse.h:45:9`!);
1228 NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(node)->typecxx . . $ $anonymous_type_d68713db57daa8f0_7#type. = type;
1229 NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_7#target. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1230 NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(node)->char_lencxx . . $ $anonymous_type_d68713db57daa8f0_7#char_len. = -1;
1231 NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(node)->ascii_rangecxx . . $ $anonymous_type_d68713db57daa8f0_7#ascii_range. = 0;
1232 return node;
1233 }
1234
1235 static Nodecxx . . $ Node#*
1236 node_new_backrefcxx . . $ node_new_backref(fa479dc9e14eaa4e).(int back_num, int* backrefs, int by_name,
1237 #ifdef USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`!
1238 int exist_level, int nest_level,
1239 #endif
1240 ScanEnvcxx . . $ ScanEnv#* env)
1241 {
1242 int i;
1243 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1244
1245 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1246
1247 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_BREFcxx . . $ `vendor/onigmo-source/regparse.h:42:9`!);
1248 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_6#state. = 0;
1249 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->back_numcxx . . $ $anonymous_type_d68713db57daa8f0_6#back_num. = back_num;
1250 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->back_dynamiccxx . . $ $anonymous_type_d68713db57daa8f0_6#back_dynamic. = (int* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1251 if (by_name != 0)
1252 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_6#state. |= NST_NAME_REFcxx . . $ `vendor/onigmo-source/regparse.h:139:9`!;
1253
1254 #ifdef USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`!
1255 if (exist_level != 0) {
1256 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_6#state. |= NST_NEST_LEVELcxx . . $ `vendor/onigmo-source/regparse.h:141:9`!;
1257 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->nest_levelcxx . . $ $anonymous_type_d68713db57daa8f0_6#nest_level. = nest_level;
1258 }
1259 #endif
1260
1261 for (i = 0; i < back_num; i++) {
1262 if (backrefs[i] <= env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. &&
1263 IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(SCANENV_MEM_NODEScxx . . $ `vendor/onigmo-source/regparse.h:286:9`!(env)[backrefs[i]])) {
1264 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_6#state. |= NST_RECURSIONcxx . . $ `vendor/onigmo-source/regparse.h:135:9`!; /* /...(\1).../ */
1265 break;
1266 }
1267 }
1268
1269 if (back_num <= NODE_BACKREFS_SIZEcxx . . $ `vendor/onigmo-source/regparse.h:102:9`!) {
1270 for (i = 0; i < back_num; i++)
1271 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->back_staticcxx . . $ $anonymous_type_d68713db57daa8f0_6#back_static.[i] = backrefs[i];
1272 }
1273 else {
1274 int* p = (int* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(int) * back_num);
1275 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(p)) {
1276 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(node);
1277 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1278 }
1279 NBREFcxx . . $ `vendor/onigmo-source/regparse.h:79:9`!(node)->back_dynamiccxx . . $ $anonymous_type_d68713db57daa8f0_6#back_dynamic. = p;
1280 for (i = 0; i < back_num; i++)
1281 p[i] = backrefs[i];
1282 }
1283 return node;
1284 }
1285
1286 #ifdef USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!
1287 static Nodecxx . . $ Node#*
1288 node_new_callcxx . . $ node_new_call(e24ceb718c3ec826).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_end, int gnum)
1289 {
1290 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1291 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1292
1293 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_CALLcxx . . $ `vendor/onigmo-source/regparse.h:48:9`!);
1294 NCALLcxx . . $ `vendor/onigmo-source/regparse.h:84:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_5#state. = 0;
1295 NCALLcxx . . $ `vendor/onigmo-source/regparse.h:84:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_5#target. = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
1296 NCALLcxx . . $ `vendor/onigmo-source/regparse.h:84:9`!(node)->namecxx . . $ $anonymous_type_d68713db57daa8f0_5#name. = name;
1297 NCALLcxx . . $ `vendor/onigmo-source/regparse.h:84:9`!(node)->name_endcxx . . $ $anonymous_type_d68713db57daa8f0_5#name_end. = name_end;
1298 NCALLcxx . . $ `vendor/onigmo-source/regparse.h:84:9`!(node)->group_numcxx . . $ $anonymous_type_d68713db57daa8f0_5#group_num. = gnum; /* call by number if gnum != 0 */
1299 return node;
1300 }
1301 #endif
1302
1303 static Nodecxx . . $ Node#*
1304 node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(int lower, int upper, int by_number)
1305 {
1306 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1307 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1308
1309 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_QTFRcxx . . $ `vendor/onigmo-source/regparse.h:43:9`!);
1310 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_1#state. = 0;
1311 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1312 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = lower;
1313 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = upper;
1314 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 1;
1315 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->target_empty_infocxx . . $ $anonymous_type_d68713db57daa8f0_1#target_empty_info. = NQ_TARGET_ISNOT_EMPTYcxx . . $ `vendor/onigmo-source/regparse.h:122:9`!;
1316 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->head_exactcxx . . $ $anonymous_type_d68713db57daa8f0_1#head_exact. = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
1317 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->next_head_exactcxx . . $ $anonymous_type_d68713db57daa8f0_1#next_head_exact. = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
1318 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->is_referedcxx . . $ $anonymous_type_d68713db57daa8f0_1#is_refered. = 0;
1319 if (by_number != 0)
1320 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_1#state. |= NST_BY_NUMBERcxx . . $ `vendor/onigmo-source/regparse.h:142:9`!;
1321
1322 #ifdef USE_COMBINATION_EXPLOSION_CHECK
1323 NQTFR(node)->comb_exp_check_num = 0;
1324 #endif
1325
1326 return node;
1327 }
1328
1329 static Nodecxx . . $ Node#*
1330 node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(int type)
1331 {
1332 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1333 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1334
1335 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_ENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:44:9`!);
1336 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->typecxx . . $ $anonymous_type_d68713db57daa8f0_2#type. = type;
1337 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->statecxx . . $ $anonymous_type_d68713db57daa8f0_2#state. = 0;
1338 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->regnumcxx . . $ $anonymous_type_d68713db57daa8f0_2#regnum. = 0;
1339 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->optioncxx . . $ $anonymous_type_d68713db57daa8f0_2#option. = 0;
1340 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1341 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->call_addrcxx . . $ $anonymous_type_d68713db57daa8f0_2#call_addr. = -1;
1342 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->opt_countcxx . . $ $anonymous_type_d68713db57daa8f0_2#opt_count. = 0;
1343 return node;
1344 }
1345
1346 extern Nodecxx . . $ Node#*
1347 onig_node_new_enclosecxx . . $ onig_node_new_enclose(27164cd17c3dc213).(int type)
1348 {
1349 return node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(type);
1350 }
1351
1352 static Nodecxx . . $ Node#*
1353 node_new_enclose_memorycxx . . $ node_new_enclose_memory(b76236d99bedb036).(OnigOptionTypecxx . . $ OnigOptionType# option, int is_named)
1354 {
1355 Nodecxx . . $ Node#* node = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_MEMORYcxx . . $ `vendor/onigmo-source/regparse.h:94:9`!);
1356 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1357 if (is_named != 0)
1358 SET_ENCLOSE_STATUScxx . . $ `vendor/onigmo-source/regparse.h:144:9`!(node, NST_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regparse.h:138:9`!);
1359
1360 #ifdef USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!
1361 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->optioncxx . . $ $anonymous_type_d68713db57daa8f0_2#option. = option;
1362 #endif
1363 return node;
1364 }
1365
1366 static Nodecxx . . $ Node#*
1367 node_new_optioncxx . . $ node_new_option(a7b11e1078c974b).(OnigOptionTypecxx . . $ OnigOptionType# option)
1368 {
1369 Nodecxx . . $ Node#* node = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_OPTIONcxx . . $ `vendor/onigmo-source/regparse.h:95:9`!);
1370 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1371 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(node)->optioncxx . . $ $anonymous_type_d68713db57daa8f0_2#option. = option;
1372 return node;
1373 }
1374
1375 extern int
1376 onig_node_str_catcxx . . $ onig_node_str_cat(7440c71141edaa30).(Nodecxx . . $ Node#* node, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
1377 {
1378 ptrdiff_t addlen = end - s;
1379
1380 if (addlen > 0) {
1381 ptrdiff_t len = NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. - NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s.;
1382
1383 if (NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->capacxx . . $ $anonymous_type_d68713db57daa8f0_0#capa. > 0 || (len + addlen > NODE_STR_BUF_SIZEcxx . . $ `vendor/onigmo-source/regparse.h:101:9`! - 1)) {
1384 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p;
1385 ptrdiff_t capa = len + addlen + NODE_STR_MARGINcxx . . $ `vendor/onigmo-source/regparse.h:100:9`!;
1386
1387 if (capa <= NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->capacxx . . $ $anonymous_type_d68713db57daa8f0_0#capa.) {
1388 onig_strcpycxx . . $ onig_strcpy(32f263b1ae9708ff).(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. + len, s, end);
1389 }
1390 else {
1391 if (NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. == NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->bufcxx . . $ $anonymous_type_d68713db57daa8f0_0#buf.)
1392 p = strcat_capa_from_staticcxx . . $ strcat_capa_from_static(62ade49464ca93e4).(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s., NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end.,
1393 s, end, capa);
1394 else
1395 p = strcat_capacxx . . $ strcat_capa(62ade49464ca93e4).(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s., NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end., s, end, capa);
1396
1397 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(p);
1398 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. = p;
1399 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->capacxx . . $ $anonymous_type_d68713db57daa8f0_0#capa. = (int )capa;
1400 }
1401 }
1402 else {
1403 onig_strcpycxx . . $ onig_strcpy(32f263b1ae9708ff).(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. + len, s, end);
1404 }
1405 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. = NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. + len + addlen;
1406 }
1407
1408 return 0;
1409 }
1410
1411 extern int
1412 onig_node_str_setcxx . . $ onig_node_str_set(7440c71141edaa30).(Nodecxx . . $ Node#* node, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
1413 {
1414 onig_node_str_clearcxx . . $ onig_node_str_clear(92a4f0b7cd2782eb).(node);
1415 return onig_node_str_catcxx . . $ onig_node_str_cat(7440c71141edaa30).(node, s, end);
1416 }
1417
1418 static int
1419 node_str_cat_charcxx . . $ node_str_cat_char(515f7b1c2c41202c).(Nodecxx . . $ Node#* node, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! c)
1420 {
1421 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! s[1];
1422
1423 s[0] = c;
1424 return onig_node_str_catcxx . . $ onig_node_str_cat(7440c71141edaa30).(node, s, s + 1);
1425 }
1426
1427 static int
1428 node_str_cat_codepointcxx . . $ node_str_cat_codepoint(67c90752e540c9a8).(Nodecxx . . $ Node#* node, OnigEncodingcxx . . $ OnigEncoding# enc, OnigCodePointcxx . . $ OnigCodePoint# c)
1429 {
1430 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[ONIGENC_CODE_TO_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:289:9`!];
1431 int num = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(enc, c, buf);
1432 if (num < 0) return num;
1433 return onig_node_str_catcxx . . $ onig_node_str_cat(7440c71141edaa30).(node, buf, buf + num);
1434 }
1435
1436 #if 0
1437 extern void
1438 onig_node_conv_to_str_node(Node* node, int flag)
1439 {
1440 SET_NTYPE(node, NT_STR);
1441 NSTR(node)->flag = flag;
1442 NSTR(node)->capa = 0;
1443 NSTR(node)->s = NSTR(node)->buf;
1444 NSTR(node)->end = NSTR(node)->buf;
1445 }
1446 #endif
1447
1448 extern void
1449 onig_node_str_clearcxx . . $ onig_node_str_clear(92a4f0b7cd2782eb).(Nodecxx . . $ Node#* node)
1450 {
1451 if (NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->capacxx . . $ $anonymous_type_d68713db57daa8f0_0#capa. != 0 &&
1452 IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->s) && NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. != NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->bufcxx . . $ $anonymous_type_d68713db57daa8f0_0#buf.) {
1453 xfreecxx . . $ `vendor/onigmo-source/regint.h:146:10`!(NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s.);
1454 }
1455
1456 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->capacxx . . $ $anonymous_type_d68713db57daa8f0_0#capa. = 0;
1457 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->flagcxx . . $ $anonymous_type_d68713db57daa8f0_0#flag. = 0;
1458 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. = NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->bufcxx . . $ $anonymous_type_d68713db57daa8f0_0#buf.;
1459 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. = NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->bufcxx . . $ $anonymous_type_d68713db57daa8f0_0#buf.;
1460 }
1461
1462 static Nodecxx . . $ Node#*
1463 node_new_strcxx . . $ node_new_str(623c155944b20cb6).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
1464 {
1465 Nodecxx . . $ Node#* node = node_newcxx . . $ node_new(22adfc593233ebb9).();
1466 CHECK_NULL_RETURNcxx . . $ `vendor/onigmo-source/regint.h:300:9`!(node);
1467
1468 SET_NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:70:9`!(node, NT_STRcxx . . $ `vendor/onigmo-source/regparse.h:38:9`!);
1469 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->capacxx . . $ $anonymous_type_d68713db57daa8f0_0#capa. = 0;
1470 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->flagcxx . . $ $anonymous_type_d68713db57daa8f0_0#flag. = 0;
1471 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s. = NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->bufcxx . . $ $anonymous_type_d68713db57daa8f0_0#buf.;
1472 NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. = NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(node)->bufcxx . . $ $anonymous_type_d68713db57daa8f0_0#buf.;
1473 if (onig_node_str_catcxx . . $ onig_node_str_cat(7440c71141edaa30).(node, s, end)) {
1474 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(node);
1475 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1476 }
1477 return node;
1478 }
1479
1480 extern Nodecxx . . $ Node#*
1481 onig_node_new_strcxx . . $ onig_node_new_str(623c155944b20cb6).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
1482 {
1483 return node_new_strcxx . . $ node_new_str(623c155944b20cb6).(s, end);
1484 }
1485
1486 static Nodecxx . . $ Node#*
1487 node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
1488 {
1489 Nodecxx . . $ Node#* node = node_new_strcxx . . $ node_new_str(623c155944b20cb6).(s, end);
1490 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(node))
1491 NSTRING_SET_RAWcxx . . $ `vendor/onigmo-source/regparse.h:109:9`!(node);
1492 return node;
1493 }
1494
1495 static Nodecxx . . $ Node#*
1496 node_new_emptycxx . . $ node_new_empty(22adfc593233ebb9).(void)
1497 {
1498 return node_new_strcxx . . $ node_new_str(623c155944b20cb6).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
1499 }
1500
1501 static Nodecxx . . $ Node#*
1502 node_new_str_raw_charcxx . . $ node_new_str_raw_char(982638904e904a0f).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! c)
1503 {
1504 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! p[1];
1505
1506 p[0] = c;
1507 return node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(p, p + 1);
1508 }
1509
1510 static Nodecxx . . $ Node#*
1511 str_node_split_last_charcxx . . $ str_node_split_last_char(247334a6e4aed973).(StrNodecxx . . $ StrNode#* sn, OnigEncodingcxx . . $ OnigEncoding# enc)
1512 {
1513 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p;
1514 Nodecxx . . $ Node#* n = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
1515
1516 if (sn->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. > sn->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s.) {
1517 p = onigenc_get_prev_char_headcxx . . $ onigenc_get_prev_char_head(6f287267fc382c80).(enc, sn->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s., sn->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end., sn->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end.);
1518 if (p && p > sn->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s.) { /* can be split. */
1519 n = node_new_strcxx . . $ node_new_str(623c155944b20cb6).(p, sn->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end.);
1520 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(n) && (sn->flagcxx . . $ $anonymous_type_d68713db57daa8f0_0#flag. & NSTR_RAWcxx . . $ `vendor/onigmo-source/regparse.h:104:9`!) != 0)
1521 NSTRING_SET_RAWcxx . . $ `vendor/onigmo-source/regparse.h:109:9`!(n);
1522 sn->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )p;
1523 }
1524 }
1525 return n;
1526 }
1527
1528 static int
1529 str_node_can_be_splitcxx . . $ str_node_can_be_split(774587a5c868a14a).(StrNodecxx . . $ StrNode#* sn, OnigEncodingcxx . . $ OnigEncoding# enc)
1530 {
1531 if (sn->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. > sn->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s.) {
1532 return ((enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, sn->s, sn->end) < sn->endcxx . . $ $anonymous_type_d68713db57daa8f0_0#end. - sn->scxx . . $ $anonymous_type_d68713db57daa8f0_0#s.) ? 1 : 0);
1533 }
1534 return 0;
1535 }
1536
1537 #ifdef USE_PAD_TO_SHORT_BYTE_CHAR
1538 static int
1539 node_str_head_pad(StrNode* sn, int num, UChar val)
1540 {
1541 UChar buf[NODE_STR_BUF_SIZE];
1542 int i, len;
1543
1544 len = sn->end - sn->s;
1545 onig_strcpy(buf, sn->s, sn->end);
1546 onig_strcpy(&(sn->s[num]), buf, buf + len);
1547 sn->end += num;
1548
1549 for (i = 0; i < num; i++) {
1550 sn->s[i] = val;
1551 }
1552 }
1553 #endif
1554
1555 extern int
1556 onig_scan_unsigned_numbercxx . . $ onig_scan_unsigned_number(a406e4af2d595f09).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, OnigEncodingcxx . . $ OnigEncoding# enc)
1557 {
1558 unsigned int num, val;
1559 OnigCodePointcxx . . $ OnigCodePoint# c;
1560 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
1561 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
1562
1563 num = 0;
1564 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
1565 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
1566 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) {
1567 val = (unsigned int )DIGITVALcxx . . $ `vendor/onigmo-source/regint.h:375:9`!(c);
1568 if ((INT_MAX_LIMITcxx . . $ `vendor/onigmo-source/regint.h:373:9`! - val) / 10UL < num)
1569 return -1; /* overflow */
1570
1571 num = num * 10 + val;
1572 }
1573 else {
1574 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
1575 break;
1576 }
1577 }
1578 *src = p;
1579 return num;
1580 }
1581
1582 static int
1583 scan_unsigned_hexadecimal_numbercxx . . $ scan_unsigned_hexadecimal_number(f2072c8602b2bbc0).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, int minlen,
1584 int maxlen, OnigEncodingcxx . . $ OnigEncoding# enc)
1585 {
1586 OnigCodePointcxx . . $ OnigCodePoint# c;
1587 unsigned int num, val;
1588 int restlen;
1589 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
1590 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
1591
1592 restlen = maxlen - minlen;
1593 num = 0;
1594 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && maxlen-- != 0) {
1595 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
1596 if (ONIGENC_IS_CODE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:398:9`!(enc, c)) {
1597 val = (unsigned int )XDIGITVALcxx . . $ `vendor/onigmo-source/regint.h:377:9`!(enc,c);
1598 if ((INT_MAX_LIMITcxx . . $ `vendor/onigmo-source/regint.h:373:9`! - val) / 16UL < num)
1599 return -1; /* overflow */
1600
1601 num = (num << 4) + XDIGITVALcxx . . $ `vendor/onigmo-source/regint.h:377:9`!(enc,c);
1602 }
1603 else {
1604 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
1605 maxlen++;
1606 break;
1607 }
1608 }
1609 if (maxlen > restlen)
1610 return -2; /* not enough digits */
1611 *src = p;
1612 return num;
1613 }
1614
1615 static int
1616 scan_unsigned_octal_numbercxx . . $ scan_unsigned_octal_number(85bf51a98073a8aa).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, int maxlen,
1617 OnigEncodingcxx . . $ OnigEncoding# enc)
1618 {
1619 OnigCodePointcxx . . $ OnigCodePoint# c;
1620 unsigned int num, val;
1621 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
1622 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
1623
1624 num = 0;
1625 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && maxlen-- != 0) {
1626 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
1627 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c) && c < '8') {
1628 val = ODIGITVALcxx . . $ `vendor/onigmo-source/regint.h:376:9`!(c);
1629 if ((INT_MAX_LIMITcxx . . $ `vendor/onigmo-source/regint.h:373:9`! - val) / 8UL < num)
1630 return -1; /* overflow */
1631
1632 num = (num << 3) + val;
1633 }
1634 else {
1635 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
1636 break;
1637 }
1638 }
1639 *src = p;
1640 return num;
1641 }
1642
1643
1644 #define BBUF_WRITE_CODE_POINTcxx . . $ `vendor/onigmo-source/regparse.c:1644:9`!(bbuf,pos,code) \
1645 BBUF_WRITEcxx . . $ `vendor/onigmo-source/regint.h:477:9`!(bbuf, pos, &(code), SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`!)
1646
1647 /* data format:
1648 [n][from-1][to-1][from-2][to-2] ... [from-n][to-n]
1649 (all data size is OnigCodePoint)
1650 */
1651 static int
1652 new_code_rangecxx . . $ new_code_range(59676f35b4045689).(BBufcxx . . $ BBuf#** pbuf)
1653 {
1654 #define INIT_MULTI_BYTE_RANGE_SIZEcxx . . $ `vendor/onigmo-source/regparse.c:1654:9`! (SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`! * 5)
1655 int r;
1656 OnigCodePointcxx . . $ OnigCodePoint# n;
1657 BBufcxx . . $ BBuf#* bbuf;
1658
1659 bbuf = *pbuf = (BBufcxx . . $ BBuf#* )xmalloccxx . . $ `vendor/onigmo-source/regint.h:143:10`!(sizeof(BBufcxx . . $ BBuf#));
1660 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*pbuf);
1661 r = BBUF_INITcxx . . $ `vendor/onigmo-source/regint.h:447:9`!(*pbuf, INIT_MULTI_BYTE_RANGE_SIZEcxx . . $ `vendor/onigmo-source/regparse.c:1654:9`!);
1662 if (r) return r;
1663
1664 n = 0;
1665 BBUF_WRITE_CODE_POINTcxx . . $ `vendor/onigmo-source/regparse.c:1644:9`!(bbuf, 0, n);
1666 return 0;
1667 }
1668
1669 static int
1670 add_code_range_to_buf0cxx . . $ add_code_range_to_buf0(81ced504ee905dae).(BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env, OnigCodePointcxx . . $ OnigCodePoint# from, OnigCodePointcxx . . $ OnigCodePoint# to,
1671 int checkdup)
1672 {
1673 int r, inc_n, pos;
1674 OnigCodePointcxx . . $ OnigCodePoint# low, high, bound, x;
1675 OnigCodePointcxx . . $ OnigCodePoint# n, *data;
1676 BBufcxx . . $ BBuf#* bbuf;
1677
1678 if (from > to) {
1679 n = from; from = to; to = n;
1680 }
1681
1682 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(*pbuf)) {
1683 r = new_code_rangecxx . . $ new_code_range(59676f35b4045689).(pbuf);
1684 if (r) return r;
1685 bbuf = *pbuf;
1686 n = 0;
1687 }
1688 else {
1689 bbuf = *pbuf;
1690 GET_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:697:9`!(n, bbuf->p);
1691 }
1692 data = (OnigCodePointcxx . . $ OnigCodePoint#* )(bbuf->pcxx . . $ _BBuf#p.);
1693 data++;
1694
1695 bound = (from == 0) ? 0 : n;
1696 for (low = 0; low < bound; ) {
1697 x = (low + bound) >> 1;
1698 if (from - 1 > data[x*2 + 1])
1699 low = x + 1;
1700 else
1701 bound = x;
1702 }
1703
1704 high = (to == ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`!) ? n : low;
1705 for (bound = n; high < bound; ) {
1706 x = (high + bound) >> 1;
1707 if (to + 1 >= data[x*2])
1708 high = x + 1;
1709 else
1710 bound = x;
1711 }
1712 /* data[(low-1)*2+1] << from <= data[low*2]
1713 * data[(high-1)*2+1] <= to << data[high*2]
1714 */
1715
1716 inc_n = low + 1 - high;
1717 if (n + inc_n > ONIG_MAX_MULTI_BYTE_RANGES_NUMcxx . . $ `vendor/onigmo-source/onigmo.h:441:9`!)
1718 return ONIGERR_TOO_MANY_MULTI_BYTE_RANGEScxx . . $ `vendor/onigmo-source/onigmo.h:671:9`!;
1719
1720 if (inc_n != 1) {
1721 if (checkdup && from <= data[low*2+1]
1722 && (data[low*2] <= from || data[low*2+1] <= to))
1723 CC_DUP_WARNcxx . . $ CC_DUP_WARN(5e95567f993df0d4).(env);
1724 if (from > data[low*2])
1725 from = data[low*2];
1726 if (to < data[(high - 1)*2 + 1])
1727 to = data[(high - 1)*2 + 1];
1728 }
1729
1730 if (inc_n != 0) {
1731 int from_pos = SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`! * (1 + high * 2);
1732 int to_pos = SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`! * (1 + (low + 1) * 2);
1733
1734 if (inc_n > 0) {
1735 if (high < n) {
1736 int size = (n - high) * 2 * SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`!;
1737 BBUF_MOVE_RIGHTcxx . . $ `vendor/onigmo-source/regint.h:497:9`!(bbuf, from_pos, to_pos, size);
1738 }
1739 }
1740 else {
1741 BBUF_MOVE_LEFT_REDUCEcxx . . $ `vendor/onigmo-source/regint.h:509:9`!(bbuf, from_pos, to_pos);
1742 }
1743 }
1744
1745 pos = SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`! * (1 + low * 2);
1746 BBUF_ENSURE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:465:9`!(bbuf, pos + SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`! * 2);
1747 BBUF_WRITE_CODE_POINTcxx . . $ `vendor/onigmo-source/regparse.c:1644:9`!(bbuf, pos, from);
1748 BBUF_WRITE_CODE_POINTcxx . . $ `vendor/onigmo-source/regparse.c:1644:9`!(bbuf, pos + SIZE_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:683:9`!, to);
1749 n += inc_n;
1750 BBUF_WRITE_CODE_POINTcxx . . $ `vendor/onigmo-source/regparse.c:1644:9`!(bbuf, 0, n);
1751
1752 return 0;
1753 }
1754
1755 static int
1756 add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env, OnigCodePointcxx . . $ OnigCodePoint# from, OnigCodePointcxx . . $ OnigCodePoint# to)
1757 {
1758 return add_code_range_to_buf0cxx . . $ add_code_range_to_buf0(81ced504ee905dae).(pbuf, env, from, to, 1);
1759 }
1760
1761 static int
1762 add_code_range0cxx . . $ add_code_range0(81ced504ee905dae).(BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env, OnigCodePointcxx . . $ OnigCodePoint# from, OnigCodePointcxx . . $ OnigCodePoint# to, int checkdup)
1763 {
1764 if (from > to) {
1765 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CCcxx . . $ `vendor/onigmo-source/onigmo.h:604:9`!))
1766 return 0;
1767 else
1768 return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASScxx . . $ `vendor/onigmo-source/onigmo.h:669:9`!;
1769 }
1770
1771 return add_code_range_to_buf0cxx . . $ add_code_range_to_buf0(81ced504ee905dae).(pbuf, env, from, to, checkdup);
1772 }
1773
1774 static int
1775 add_code_rangecxx . . $ add_code_range(221586f2493b0010).(BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env, OnigCodePointcxx . . $ OnigCodePoint# from, OnigCodePointcxx . . $ OnigCodePoint# to)
1776 {
1777 return add_code_range0cxx . . $ add_code_range0(81ced504ee905dae).(pbuf, env, from, to, 1);
1778 }
1779
1780 static int
1781 not_code_range_bufcxx . . $ not_code_range_buf(8a794021bfecffbf).(OnigEncodingcxx . . $ OnigEncoding# enc, BBufcxx . . $ BBuf#* bbuf, BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env)
1782 {
1783 int r, i, n;
1784 OnigCodePointcxx . . $ OnigCodePoint# pre, from, *data, to = 0;
1785
1786 *pbuf = (BBufcxx . . $ BBuf#* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1787 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(bbuf)) {
1788 set_all:
1789 return SET_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:165:9`!(enc, pbuf);
1790 }
1791
1792 data = (OnigCodePointcxx . . $ OnigCodePoint#* )(bbuf->pcxx . . $ _BBuf#p.);
1793 GET_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:697:9`!(n, data);
1794 data++;
1795 if (n <= 0) goto set_all;
1796
1797 r = 0;
1798 pre = MBCODE_START_POScxx . . $ `vendor/onigmo-source/regparse.c:162:9`!(enc);
1799 for (i = 0; i < n; i++) {
1800 from = data[i*2];
1801 to = data[i*2+1];
1802 if (pre <= from - 1) {
1803 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(pbuf, env, pre, from - 1);
1804 if (r != 0) return r;
1805 }
1806 if (to == ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`!) break;
1807 pre = to + 1;
1808 }
1809 if (to < ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`!) {
1810 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(pbuf, env, to + 1, ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`!);
1811 }
1812 return r;
1813 }
1814
1815 #define SWAP_BBUF_NOTcxx . . $ `vendor/onigmo-source/regparse.c:1815:9`!(bbuf1, not1, bbuf2, not2) do {\
1816 BBuf *tbuf; \
1817 int tnot; \
1818 tnot = not1; not1 = not2; not2 = tnot; \
1819 tbuf = bbuf1; bbuf1 = bbuf2; bbuf2 = tbuf; \
1820 } while (0)
1821
1822 static int
1823 or_code_range_bufcxx . . $ or_code_range_buf(51b60ee1d82fff5a).(OnigEncodingcxx . . $ OnigEncoding# enc, BBufcxx . . $ BBuf#* bbuf1, int not1,
1824 BBufcxx . . $ BBuf#* bbuf2, int not2, BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env)
1825 {
1826 int r;
1827 OnigCodePointcxx . . $ OnigCodePoint# i, n1, *data1;
1828 OnigCodePointcxx . . $ OnigCodePoint# from, to;
1829
1830 *pbuf = (BBufcxx . . $ BBuf#* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1831 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(bbuf1) && IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(bbuf2)) {
1832 if (not1 != 0 || not2 != 0)
1833 return SET_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:165:9`!(enc, pbuf);
1834 return 0;
1835 }
1836
1837 r = 0;
1838 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(bbuf2))
1839 SWAP_BBUF_NOTcxx . . $ `vendor/onigmo-source/regparse.c:1815:9`!(bbuf1, not1, bbuf2, not2);
1840
1841 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(bbuf1)) {
1842 if (not1 != 0) {
1843 return SET_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:165:9`!(enc, pbuf);
1844 }
1845 else {
1846 if (not2 == 0) {
1847 return bbuf_clonecxx . . $ bbuf_clone(382c0d4630ec1057).(pbuf, bbuf2);
1848 }
1849 else {
1850 return not_code_range_bufcxx . . $ not_code_range_buf(8a794021bfecffbf).(enc, bbuf2, pbuf, env);
1851 }
1852 }
1853 }
1854
1855 if (not1 != 0)
1856 SWAP_BBUF_NOTcxx . . $ `vendor/onigmo-source/regparse.c:1815:9`!(bbuf1, not1, bbuf2, not2);
1857
1858 data1 = (OnigCodePointcxx . . $ OnigCodePoint#* )(bbuf1->pcxx . . $ _BBuf#p.);
1859 GET_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:697:9`!(n1, data1);
1860 data1++;
1861
1862 if (not2 == 0 && not1 == 0) { /* 1 OR 2 */
1863 r = bbuf_clonecxx . . $ bbuf_clone(382c0d4630ec1057).(pbuf, bbuf2);
1864 }
1865 else if (not1 == 0) { /* 1 OR (not 2) */
1866 r = not_code_range_bufcxx . . $ not_code_range_buf(8a794021bfecffbf).(enc, bbuf2, pbuf, env);
1867 }
1868 if (r != 0) return r;
1869
1870 for (i = 0; i < n1; i++) {
1871 from = data1[i*2];
1872 to = data1[i*2+1];
1873 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(pbuf, env, from, to);
1874 if (r != 0) return r;
1875 }
1876 return 0;
1877 }
1878
1879 static int
1880 and_code_range1cxx . . $ and_code_range1(81e747090715d758).(BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env, OnigCodePointcxx . . $ OnigCodePoint# from1, OnigCodePointcxx . . $ OnigCodePoint# to1,
1881 OnigCodePointcxx . . $ OnigCodePoint#* data, int n)
1882 {
1883 int i, r;
1884 OnigCodePointcxx . . $ OnigCodePoint# from2, to2;
1885
1886 for (i = 0; i < n; i++) {
1887 from2 = data[i*2];
1888 to2 = data[i*2+1];
1889 if (from2 < from1) {
1890 if (to2 < from1) continue;
1891 else {
1892 from1 = to2 + 1;
1893 }
1894 }
1895 else if (from2 <= to1) {
1896 if (to2 < to1) {
1897 if (from1 <= from2 - 1) {
1898 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(pbuf, env, from1, from2-1);
1899 if (r != 0) return r;
1900 }
1901 from1 = to2 + 1;
1902 }
1903 else {
1904 to1 = from2 - 1;
1905 }
1906 }
1907 else {
1908 from1 = from2;
1909 }
1910 if (from1 > to1) break;
1911 }
1912 if (from1 <= to1) {
1913 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(pbuf, env, from1, to1);
1914 if (r != 0) return r;
1915 }
1916 return 0;
1917 }
1918
1919 static int
1920 and_code_range_bufcxx . . $ and_code_range_buf(6326c5ae58512969).(BBufcxx . . $ BBuf#* bbuf1, int not1, BBufcxx . . $ BBuf#* bbuf2, int not2, BBufcxx . . $ BBuf#** pbuf, ScanEnvcxx . . $ ScanEnv#* env)
1921 {
1922 int r;
1923 OnigCodePointcxx . . $ OnigCodePoint# i, j, n1, n2, *data1, *data2;
1924 OnigCodePointcxx . . $ OnigCodePoint# from, to, from1, to1, from2, to2;
1925
1926 *pbuf = (BBufcxx . . $ BBuf#* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1927 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(bbuf1)) {
1928 if (not1 != 0 && IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(bbuf2)) /* not1 != 0 -> not2 == 0 */
1929 return bbuf_clonecxx . . $ bbuf_clone(382c0d4630ec1057).(pbuf, bbuf2);
1930 return 0;
1931 }
1932 else if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(bbuf2)) {
1933 if (not2 != 0)
1934 return bbuf_clonecxx . . $ bbuf_clone(382c0d4630ec1057).(pbuf, bbuf1);
1935 return 0;
1936 }
1937
1938 if (not1 != 0)
1939 SWAP_BBUF_NOTcxx . . $ `vendor/onigmo-source/regparse.c:1815:9`!(bbuf1, not1, bbuf2, not2);
1940
1941 data1 = (OnigCodePointcxx . . $ OnigCodePoint#* )(bbuf1->pcxx . . $ _BBuf#p.);
1942 data2 = (OnigCodePointcxx . . $ OnigCodePoint#* )(bbuf2->pcxx . . $ _BBuf#p.);
1943 GET_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:697:9`!(n1, data1);
1944 GET_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:697:9`!(n2, data2);
1945 data1++;
1946 data2++;
1947
1948 if (not2 == 0 && not1 == 0) { /* 1 AND 2 */
1949 for (i = 0; i < n1; i++) {
1950 from1 = data1[i*2];
1951 to1 = data1[i*2+1];
1952 for (j = 0; j < n2; j++) {
1953 from2 = data2[j*2];
1954 to2 = data2[j*2+1];
1955 if (from2 > to1) break;
1956 if (to2 < from1) continue;
1957 from = MAXcxx . . $ `vendor/onigmo-source/regint.h:296:9`!(from1, from2);
1958 to = MINcxx . . $ `vendor/onigmo-source/regint.h:295:9`!(to1, to2);
1959 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(pbuf, env, from, to);
1960 if (r != 0) return r;
1961 }
1962 }
1963 }
1964 else if (not1 == 0) { /* 1 AND (not 2) */
1965 for (i = 0; i < n1; i++) {
1966 from1 = data1[i*2];
1967 to1 = data1[i*2+1];
1968 r = and_code_range1cxx . . $ and_code_range1(81e747090715d758).(pbuf, env, from1, to1, data2, n2);
1969 if (r != 0) return r;
1970 }
1971 }
1972
1973 return 0;
1974 }
1975
1976 static int
1977 and_cclasscxx . . $ and_cclass(824806be7b3d2b69).(CClassNodecxx . . $ CClassNode#* dest, CClassNodecxx . . $ CClassNode#* cc, ScanEnvcxx . . $ ScanEnv#* env)
1978 {
1979 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
1980 int r, not1, not2;
1981 BBufcxx . . $ BBuf# *buf1, *buf2, *pbuf = 0;
1982 BitSetRefcxx . . $ BitSetRef# bsr1, bsr2;
1983 BitSetcxx . . $ BitSet# bs1, bs2;
1984
1985 not1 = IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(dest);
1986 bsr1 = dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
1987 buf1 = dest->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.;
1988 not2 = IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(cc);
1989 bsr2 = cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
1990 buf2 = cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.;
1991
1992 if (not1 != 0) {
1993 bitset_invert_tocxx . . $ bitset_invert_to(ce04c39653c001b6).(bsr1, bs1);
1994 bsr1 = bs1;
1995 }
1996 if (not2 != 0) {
1997 bitset_invert_tocxx . . $ bitset_invert_to(ce04c39653c001b6).(bsr2, bs2);
1998 bsr2 = bs2;
1999 }
2000 bitset_andcxx . . $ bitset_and(ce04c39653c001b6).(bsr1, bsr2);
2001 if (bsr1 != dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.) {
2002 bitset_copycxx . . $ bitset_copy(ce04c39653c001b6).(dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., bsr1);
2003 bsr1 = dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
2004 }
2005 if (not1 != 0) {
2006 bitset_invertcxx . . $ bitset_invert(218b13e5e7cbf689).(dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.);
2007 }
2008
2009 if (! ONIGENC_IS_SINGLEBYTEcxx . . $ `vendor/onigmo-source/onigmo.h:318:9`!(enc)) {
2010 if (not1 != 0 && not2 != 0) {
2011 r = or_code_range_bufcxx . . $ or_code_range_buf(51b60ee1d82fff5a).(enc, buf1, 0, buf2, 0, &pbuf, env);
2012 }
2013 else {
2014 r = and_code_range_bufcxx . . $ and_code_range_buf(6326c5ae58512969).(buf1, not1, buf2, not2, &pbuf, env);
2015 if (r == 0 && not1 != 0) {
2016 BBufcxx . . $ BBuf# *tbuf = 0;
2017 r = not_code_range_bufcxx . . $ not_code_range_buf(8a794021bfecffbf).(enc, pbuf, &tbuf, env);
2018 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(pbuf);
2019 pbuf = tbuf;
2020 }
2021 }
2022 if (r != 0) {
2023 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(pbuf);
2024 return r;
2025 }
2026
2027 dest->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf. = pbuf;
2028 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(buf1);
2029 return r;
2030 }
2031 return 0;
2032 }
2033
2034 static int
2035 or_cclasscxx . . $ or_cclass(824806be7b3d2b69).(CClassNodecxx . . $ CClassNode#* dest, CClassNodecxx . . $ CClassNode#* cc, ScanEnvcxx . . $ ScanEnv#* env)
2036 {
2037 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
2038 int r, not1, not2;
2039 BBufcxx . . $ BBuf# *buf1, *buf2, *pbuf = 0;
2040 BitSetRefcxx . . $ BitSetRef# bsr1, bsr2;
2041 BitSetcxx . . $ BitSet# bs1, bs2;
2042
2043 not1 = IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(dest);
2044 bsr1 = dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
2045 buf1 = dest->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.;
2046 not2 = IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(cc);
2047 bsr2 = cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
2048 buf2 = cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.;
2049
2050 if (not1 != 0) {
2051 bitset_invert_tocxx . . $ bitset_invert_to(ce04c39653c001b6).(bsr1, bs1);
2052 bsr1 = bs1;
2053 }
2054 if (not2 != 0) {
2055 bitset_invert_tocxx . . $ bitset_invert_to(ce04c39653c001b6).(bsr2, bs2);
2056 bsr2 = bs2;
2057 }
2058 bitset_orcxx . . $ bitset_or(ce04c39653c001b6).(bsr1, bsr2);
2059 if (bsr1 != dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.) {
2060 bitset_copycxx . . $ bitset_copy(ce04c39653c001b6).(dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., bsr1);
2061 bsr1 = dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
2062 }
2063 if (not1 != 0) {
2064 bitset_invertcxx . . $ bitset_invert(218b13e5e7cbf689).(dest->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.);
2065 }
2066
2067 if (! ONIGENC_IS_SINGLEBYTEcxx . . $ `vendor/onigmo-source/onigmo.h:318:9`!(enc)) {
2068 if (not1 != 0 && not2 != 0) {
2069 r = and_code_range_bufcxx . . $ and_code_range_buf(6326c5ae58512969).(buf1, 0, buf2, 0, &pbuf, env);
2070 }
2071 else {
2072 r = or_code_range_bufcxx . . $ or_code_range_buf(51b60ee1d82fff5a).(enc, buf1, not1, buf2, not2, &pbuf, env);
2073 if (r == 0 && not1 != 0) {
2074 BBufcxx . . $ BBuf# *tbuf = 0;
2075 r = not_code_range_bufcxx . . $ not_code_range_buf(8a794021bfecffbf).(enc, pbuf, &tbuf, env);
2076 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(pbuf);
2077 pbuf = tbuf;
2078 }
2079 }
2080 if (r != 0) {
2081 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(pbuf);
2082 return r;
2083 }
2084
2085 dest->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf. = pbuf;
2086 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(buf1);
2087 return r;
2088 }
2089 else
2090 return 0;
2091 }
2092
2093 static void UNKNOWN_ESC_WARNcxx . . $ UNKNOWN_ESC_WARN(91b8d7e9804cb1d7).(ScanEnvcxx . . $ ScanEnv# *env, int c);
2094
2095 static OnigCodePointcxx . . $ OnigCodePoint#
2096 conv_backslash_valuecxx . . $ conv_backslash_value(affccf70cb4a815a).(OnigCodePointcxx . . $ OnigCodePoint# c, ScanEnvcxx . . $ ScanEnv#* env)
2097 {
2098 if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(env->syntax, ONIG_SYN_OP_ESC_CONTROL_CHARScxx . . $ `vendor/onigmo-source/onigmo.h:545:9`!)) {
2099 switch (c) {
2100 case 'n': return '\n';
2101 case 't': return '\t';
2102 case 'r': return '\r';
2103 case 'f': return '\f';
2104 case 'a': return '\007';
2105 case 'b': return '\010';
2106 case 'e': return '\033';
2107 case 'v':
2108 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_ESC_V_VTABcxx . . $ `vendor/onigmo-source/onigmo.h:565:9`!))
2109 return '\v';
2110 break;
2111
2112 default:
2113 if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z'))
2114 UNKNOWN_ESC_WARNcxx . . $ UNKNOWN_ESC_WARN(91b8d7e9804cb1d7).(env, c);
2115 break;
2116 }
2117 }
2118 return c;
2119 }
2120
2121 #ifdef USE_NO_INVALID_QUANTIFIERcxx . . $ `vendor/onigmo-source/regint.h:78:9`!
2122 # define is_invalid_quantifier_targetcxx . . $ `vendor/onigmo-source/regparse.c:2122:10`!(node) 0
2123 #else
2124 static int
2125 is_invalid_quantifier_target(Node* node)
2126 {
2127 switch (NTYPE(node)) {
2128 case NT_ANCHOR:
2129 return 1;
2130 break;
2131
2132 case NT_ENCLOSE:
2133 /* allow enclosed elements */
2134 /* return is_invalid_quantifier_target(NENCLOSE(node)->target); */
2135 break;
2136
2137 case NT_LIST:
2138 do {
2139 if (! is_invalid_quantifier_target(NCAR(node))) return 0;
2140 } while (IS_NOT_NULL(node = NCDR(node)));
2141 return 0;
2142 break;
2143
2144 case NT_ALT:
2145 do {
2146 if (is_invalid_quantifier_target(NCAR(node))) return 1;
2147 } while (IS_NOT_NULL(node = NCDR(node)));
2148 break;
2149
2150 default:
2151 break;
2152 }
2153 return 0;
2154 }
2155 #endif
2156
2157 /* ?:0, *:1, +:2, ??:3, *?:4, +?:5 */
2158 static int
2159 popular_quantifier_numcxx . . $ popular_quantifier_num(344c3a666c915fb9).(QtfrNodecxx . . $ QtfrNode#* q)
2160 {
2161 if (q->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy.) {
2162 if (q->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. == 0) {
2163 if (q->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. == 1) return 0;
2164 else if (IS_REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:409:9`!(q->upper)) return 1;
2165 }
2166 else if (q->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. == 1) {
2167 if (IS_REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:409:9`!(q->upper)) return 2;
2168 }
2169 }
2170 else {
2171 if (q->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. == 0) {
2172 if (q->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. == 1) return 3;
2173 else if (IS_REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:409:9`!(q->upper)) return 4;
2174 }
2175 else if (q->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. == 1) {
2176 if (IS_REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:409:9`!(q->upper)) return 5;
2177 }
2178 }
2179 return -1;
2180 }
2181
2182
2183 enum ReduceTypecxx . . $ ReduceType# {
2184 RQ_ASIScxx . . $ RQ_ASIS. = 0, /* as is */
2185 RQ_DELcxx . . $ RQ_DEL. = 1, /* delete parent */
2186 RQ_Acxx . . $ RQ_A., /* to '*' */
2187 RQ_AQcxx . . $ RQ_AQ., /* to '*?' */
2188 RQ_QQcxx . . $ RQ_QQ., /* to '??' */
2189 RQ_P_QQcxx . . $ RQ_P_QQ., /* to '+)??' */
2190 RQ_PQ_Qcxx . . $ RQ_PQ_Q. /* to '+?)?' */
2191 };
2192
2193 static enum ReduceTypecxx . . $ ReduceType# const ReduceTypeTablecxx . . $ ReduceTypeTable.[6][6] = {
2194 /* '?', '*', '+', '??', '*?', '+?' p / c */
2195 {RQ_DELcxx . . $ RQ_DEL., RQ_Acxx . . $ RQ_A., RQ_Acxx . . $ RQ_A., RQ_QQcxx . . $ RQ_QQ., RQ_AQcxx . . $ RQ_AQ., RQ_ASIScxx . . $ RQ_ASIS.}, /* '?' */
2196 {RQ_DELcxx . . $ RQ_DEL., RQ_DELcxx . . $ RQ_DEL., RQ_DELcxx . . $ RQ_DEL., RQ_P_QQcxx . . $ RQ_P_QQ., RQ_P_QQcxx . . $ RQ_P_QQ., RQ_DELcxx . . $ RQ_DEL.}, /* '*' */
2197 {RQ_Acxx . . $ RQ_A., RQ_Acxx . . $ RQ_A., RQ_DELcxx . . $ RQ_DEL., RQ_ASIScxx . . $ RQ_ASIS., RQ_P_QQcxx . . $ RQ_P_QQ., RQ_DELcxx . . $ RQ_DEL.}, /* '+' */
2198 {RQ_DELcxx . . $ RQ_DEL., RQ_AQcxx . . $ RQ_AQ., RQ_AQcxx . . $ RQ_AQ., RQ_DELcxx . . $ RQ_DEL., RQ_AQcxx . . $ RQ_AQ., RQ_AQcxx . . $ RQ_AQ.}, /* '??' */
2199 {RQ_DELcxx . . $ RQ_DEL., RQ_DELcxx . . $ RQ_DEL., RQ_DELcxx . . $ RQ_DEL., RQ_DELcxx . . $ RQ_DEL., RQ_DELcxx . . $ RQ_DEL., RQ_DELcxx . . $ RQ_DEL.}, /* '*?' */
2200 {RQ_ASIScxx . . $ RQ_ASIS., RQ_PQ_Qcxx . . $ RQ_PQ_Q., RQ_DELcxx . . $ RQ_DEL., RQ_AQcxx . . $ RQ_AQ., RQ_AQcxx . . $ RQ_AQ., RQ_DELcxx . . $ RQ_DEL.} /* '+?' */
2201 };
2202
2203 extern void
2204 onig_reduce_nested_quantifiercxx . . $ onig_reduce_nested_quantifier(f138c132e3508262).(Nodecxx . . $ Node#* pnode, Nodecxx . . $ Node#* cnode)
2205 {
2206 int pnum, cnum;
2207 QtfrNodecxx . . $ QtfrNode# *p, *c;
2208
2209 p = NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(pnode);
2210 c = NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(cnode);
2211 pnum = popular_quantifier_numcxx . . $ popular_quantifier_num(344c3a666c915fb9).(p);
2212 cnum = popular_quantifier_numcxx . . $ popular_quantifier_num(344c3a666c915fb9).(c);
2213 if (pnum < 0 || cnum < 0) return ;
2214
2215 switch (ReduceTypeTablecxx . . $ ReduceTypeTable.[cnum][pnum]) {
2216 case RQ_DELcxx . . $ RQ_DEL.:
2217 *pnode = *cnode;
2218 break;
2219 case RQ_Acxx . . $ RQ_A.:
2220 p->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = c->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target.;
2221 p->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = 0; p->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!; p->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 1;
2222 break;
2223 case RQ_AQcxx . . $ RQ_AQ.:
2224 p->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = c->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target.;
2225 p->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = 0; p->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!; p->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 0;
2226 break;
2227 case RQ_QQcxx . . $ RQ_QQ.:
2228 p->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = c->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target.;
2229 p->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = 0; p->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = 1; p->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 0;
2230 break;
2231 case RQ_P_QQcxx . . $ RQ_P_QQ.:
2232 p->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = cnode;
2233 p->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = 0; p->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = 1; p->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 0;
2234 c->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = 1; c->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!; c->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 1;
2235 return ;
2236 break;
2237 case RQ_PQ_Qcxx . . $ RQ_PQ_Q.:
2238 p->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = cnode;
2239 p->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = 0; p->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = 1; p->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 1;
2240 c->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. = 1; c->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!; c->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = 0;
2241 return ;
2242 break;
2243 case RQ_ASIScxx . . $ RQ_ASIS.:
2244 p->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = cnode;
2245 return ;
2246 break;
2247 }
2248
2249 c->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
2250 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(cnode);
2251 }
2252
2253
2254 enum TokenSymscxx . . $ TokenSyms# {
2255 TK_EOTcxx . . $ TK_EOT. = 0, /* end of token */
2256 TK_RAW_BYTEcxx . . $ TK_RAW_BYTE. = 1,
2257 TK_CHARcxx . . $ TK_CHAR.,
2258 TK_STRINGcxx . . $ TK_STRING.,
2259 TK_CODE_POINTcxx . . $ TK_CODE_POINT.,
2260 TK_ANYCHARcxx . . $ TK_ANYCHAR.,
2261 TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.,
2262 TK_BACKREFcxx . . $ TK_BACKREF.,
2263 TK_CALLcxx . . $ TK_CALL.,
2264 TK_ANCHORcxx . . $ TK_ANCHOR.,
2265 TK_OP_REPEATcxx . . $ TK_OP_REPEAT.,
2266 TK_INTERVALcxx . . $ TK_INTERVAL.,
2267 TK_ANYCHAR_ANYTIMEcxx . . $ TK_ANYCHAR_ANYTIME., /* SQL '%' == .* */
2268 TK_ALTcxx . . $ TK_ALT.,
2269 TK_SUBEXP_OPENcxx . . $ TK_SUBEXP_OPEN.,
2270 TK_SUBEXP_CLOSEcxx . . $ TK_SUBEXP_CLOSE.,
2271 TK_CC_OPENcxx . . $ TK_CC_OPEN.,
2272 TK_QUOTE_OPENcxx . . $ TK_QUOTE_OPEN.,
2273 TK_CHAR_PROPERTYcxx . . $ TK_CHAR_PROPERTY., /* \p{...}, \P{...} */
2274 TK_LINEBREAKcxx . . $ TK_LINEBREAK.,
2275 TK_EXTENDED_GRAPHEME_CLUSTERcxx . . $ TK_EXTENDED_GRAPHEME_CLUSTER.,
2276 TK_KEEPcxx . . $ TK_KEEP.,
2277 /* in cc */
2278 TK_CC_CLOSEcxx . . $ TK_CC_CLOSE.,
2279 TK_CC_RANGEcxx . . $ TK_CC_RANGE.,
2280 TK_POSIX_BRACKET_OPENcxx . . $ TK_POSIX_BRACKET_OPEN.,
2281 TK_CC_ANDcxx . . $ TK_CC_AND., /* && */
2282 TK_CC_CC_OPENcxx . . $ TK_CC_CC_OPEN. /* [ */
2283 };
2284
2285 typedef structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3# {
2286 enum TokenSymscxx . . $ TokenSyms# typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
2287 int escapedcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#escaped.;
2288 int basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base.; /* is number: 8, 16 (used in [....]) */
2289 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp.;
2290 unioncxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4# {
2291 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* scxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#s.;
2292 int ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.;
2293 OnigCodePointcxx . . $ OnigCodePoint# codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code.;
2294 structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5# {
2295 int subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype.;
2296 int ascii_rangecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#ascii_range.;
2297 } anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor.;
2298 structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6# {
2299 int lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower.;
2300 int uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper.;
2301 int greedycxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#greedy.;
2302 int possessivecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#possessive.;
2303 } repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat.;
2304 structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7# {
2305 int numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#num.;
2306 int ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#ref1.;
2307 int* refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#refs.;
2308 int by_namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#by_name.;
2309 #ifdef USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`!
2310 int exist_levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#exist_level.;
2311 int levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#level.; /* \k<name+n> */
2312 #endif
2313 } backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref.;
2314 structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8# {
2315 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name.;
2316 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name_end.;
2317 int gnumcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#gnum.;
2318 int relcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#rel.;
2319 } callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call.;
2320 structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9# {
2321 int ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype.;
2322 int notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not.;
2323 } propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop.;
2324 } ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u.;
2325 } OnigTokencxx . . $ OnigToken#;
2326
2327
2328 static int
2329 fetch_range_quantifiercxx . . $ fetch_range_quantifier(c695b6a320ecaddb).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, OnigTokencxx . . $ OnigToken#* tok, ScanEnvcxx . . $ ScanEnv#* env)
2330 {
2331 int low, up, syn_allow, non_low = 0;
2332 int r = 0;
2333 OnigCodePointcxx . . $ OnigCodePoint# c;
2334 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
2335 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
2336 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
2337
2338 syn_allow = IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_INVALID_INTERVALcxx . . $ `vendor/onigmo-source/onigmo.h:591:9`!);
2339
2340 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2341 if (syn_allow)
2342 return 1; /* "....{" : OK! */
2343 else
2344 return ONIGERR_END_PATTERN_AT_LEFT_BRACEcxx . . $ `vendor/onigmo-source/onigmo.h:642:9`!; /* "....{" syntax error */
2345 }
2346
2347 if (! syn_allow) {
2348 c = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
2349 if (c == ')' || c == '(' || c == '|') {
2350 return ONIGERR_END_PATTERN_AT_LEFT_BRACEcxx . . $ `vendor/onigmo-source/onigmo.h:642:9`!;
2351 }
2352 }
2353
2354 low = onig_scan_unsigned_numbercxx . . $ onig_scan_unsigned_number(a406e4af2d595f09).(&p, end, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.);
2355 if (low < 0) return ONIGERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:667:9`!;
2356 if (low > ONIG_MAX_REPEAT_NUMcxx . . $ `vendor/onigmo-source/onigmo.h:440:9`!)
2357 return ONIGERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:667:9`!;
2358
2359 if (p == *src) { /* can't read low */
2360 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREVcxx . . $ `vendor/onigmo-source/onigmo.h:592:9`!)) {
2361 /* allow {,n} as {0,n} */
2362 low = 0;
2363 non_low = 1;
2364 }
2365 else
2366 goto invalid;
2367 }
2368
2369 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) goto invalid;
2370 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2371 if (c == ',') {
2372 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* prev = p;
2373 up = onig_scan_unsigned_numbercxx . . $ onig_scan_unsigned_number(a406e4af2d595f09).(&p, end, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.);
2374 if (up < 0) return ONIGERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:667:9`!;
2375 if (up > ONIG_MAX_REPEAT_NUMcxx . . $ `vendor/onigmo-source/onigmo.h:440:9`!)
2376 return ONIGERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:667:9`!;
2377
2378 if (p == prev) {
2379 if (non_low != 0)
2380 goto invalid;
2381 up = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!; /* {n,} : {n,infinite} */
2382 }
2383 }
2384 else {
2385 if (non_low != 0)
2386 goto invalid;
2387
2388 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
2389 up = low; /* {n} : exact n times */
2390 r = 2; /* fixed */
2391 }
2392
2393 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) goto invalid;
2394 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2395 if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(env->syntax, ONIG_SYN_OP_ESC_BRACE_INTERVALcxx . . $ `vendor/onigmo-source/onigmo.h:528:9`!)) {
2396 if (c != MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(env->syntax)) goto invalid;
2397 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) goto invalid;
2398 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2399 }
2400 if (c != '}') goto invalid;
2401
2402 if (!IS_REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:409:9`!(up) && low > up) {
2403 return ONIGERR_UPPER_SMALLER_THAN_LOWER_IN_REPEAT_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:668:9`!;
2404 }
2405
2406 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_INTERVALcxx . . $ TK_INTERVAL.;
2407 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower. = low;
2408 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper. = up;
2409 *src = p;
2410 return r; /* 0: normal {n,m}, 2: fixed {n} */
2411
2412 invalid:
2413 if (syn_allow)
2414 return 1; /* OK */
2415 else
2416 return ONIGERR_INVALID_REPEAT_RANGE_PATTERNcxx . . $ `vendor/onigmo-source/onigmo.h:663:9`!;
2417 }
2418
2419 /* \M-, \C-, \c, or \... */
2420 static int
2421 fetch_escaped_valuecxx . . $ fetch_escaped_value(d7fbe9e3fa42d811).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env, OnigCodePointcxx . . $ OnigCodePoint#* val)
2422 {
2423 int v;
2424 OnigCodePointcxx . . $ OnigCodePoint# c;
2425 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
2426 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
2427
2428 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_AT_ESCAPEcxx . . $ `vendor/onigmo-source/onigmo.h:646:9`!;
2429
2430 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2431 switch (c) {
2432 case 'M':
2433 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_METAcxx . . $ `vendor/onigmo-source/onigmo.h:564:9`!)) {
2434 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_AT_METAcxx . . $ `vendor/onigmo-source/onigmo.h:647:9`!;
2435 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2436 if (c != '-') return ONIGERR_META_CODE_SYNTAXcxx . . $ `vendor/onigmo-source/onigmo.h:649:9`!;
2437 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_AT_METAcxx . . $ `vendor/onigmo-source/onigmo.h:647:9`!;
2438 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2439 if (c == MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(env->syntax)) {
2440 v = fetch_escaped_valuecxx . . $ fetch_escaped_value(d7fbe9e3fa42d811).(&p, end, env, &c);
2441 if (v < 0) return v;
2442 }
2443 c = ((c & 0xff) | 0x80);
2444 }
2445 else
2446 goto backslash;
2447 break;
2448
2449 case 'C':
2450 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROLcxx . . $ `vendor/onigmo-source/onigmo.h:563:9`!)) {
2451 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_AT_CONTROLcxx . . $ `vendor/onigmo-source/onigmo.h:648:9`!;
2452 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2453 if (c != '-') return ONIGERR_CONTROL_CODE_SYNTAXcxx . . $ `vendor/onigmo-source/onigmo.h:650:9`!;
2454 goto control;
2455 }
2456 else
2457 goto backslash;
2458
2459 case 'c':
2460 if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(env->syntax, ONIG_SYN_OP_ESC_C_CONTROLcxx . . $ `vendor/onigmo-source/onigmo.h:546:9`!)) {
2461 control:
2462 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_AT_CONTROLcxx . . $ `vendor/onigmo-source/onigmo.h:648:9`!;
2463 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2464 if (c == '?') {
2465 c = 0177;
2466 }
2467 else {
2468 if (c == MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(env->syntax)) {
2469 v = fetch_escaped_valuecxx . . $ fetch_escaped_value(d7fbe9e3fa42d811).(&p, end, env, &c);
2470 if (v < 0) return v;
2471 }
2472 c &= 0x9f;
2473 }
2474 break;
2475 }
2476 /* fall through */
2477
2478 default:
2479 {
2480 backslash:
2481 c = conv_backslash_valuecxx . . $ conv_backslash_value(affccf70cb4a815a).(c, env);
2482 }
2483 break;
2484 }
2485
2486 *src = p;
2487 *val = c;
2488 return 0;
2489 }
2490
2491 static int fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(OnigTokencxx . . $ OnigToken#* tok, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env);
2492
2493 static OnigCodePointcxx . . $ OnigCodePoint#
2494 get_name_end_code_pointcxx . . $ get_name_end_code_point(2141b656ce2cc063).(OnigCodePointcxx . . $ OnigCodePoint# start)
2495 {
2496 switch (start) {
2497 case '<': return (OnigCodePointcxx . . $ OnigCodePoint# )'>'; break;
2498 case '\'': return (OnigCodePointcxx . . $ OnigCodePoint# )'\''; break;
2499 case '(': return (OnigCodePointcxx . . $ OnigCodePoint# )')'; break;
2500 case '{': return (OnigCodePointcxx . . $ OnigCodePoint# )'}'; break;
2501 default:
2502 break;
2503 }
2504
2505 return (OnigCodePointcxx . . $ OnigCodePoint# )0;
2506 }
2507
2508 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
2509 # ifdef RUBY
2510 # define ONIGENC_IS_CODE_NAME(enc, c) TRUE
2511 # else
2512 # define ONIGENC_IS_CODE_NAMEcxx . . $ `vendor/onigmo-source/regparse.c:2512:11`!(enc, c) ONIGENC_IS_CODE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:400:9`!(enc, c)
2513 # endif
2514
2515 # ifdef USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`!
2516 /*
2517 \k<name+n>, \k<name-n>
2518 \k<num+n>, \k<num-n>
2519 \k<-num+n>, \k<-num-n>
2520 */
2521 static int
2522 fetch_name_with_levelcxx . . $ fetch_name_with_level(c94f2744aba78152).(OnigCodePointcxx . . $ OnigCodePoint# start_code, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end,
2523 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** rname_end, ScanEnvcxx . . $ ScanEnv#* env,
2524 int* rback_num, int* rlevel)
2525 {
2526 int r, sign, is_num, exist_level;
2527 OnigCodePointcxx . . $ OnigCodePoint# end_code;
2528 OnigCodePointcxx . . $ OnigCodePoint# c = 0;
2529 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
2530 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name_end;
2531 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pnum_head;
2532 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = *src;
2533 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
2534
2535 *rback_num = 0;
2536 is_num = exist_level = 0;
2537 sign = 1;
2538 pnum_head = *src;
2539
2540 end_code = get_name_end_code_pointcxx . . $ get_name_end_code_point(2141b656ce2cc063).(start_code);
2541
2542 name_end = end;
2543 r = 0;
2544 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2545 return ONIGERR_EMPTY_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:679:9`!;
2546 }
2547 else {
2548 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2549 if (c == end_code)
2550 return ONIGERR_EMPTY_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:679:9`!;
2551
2552 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) {
2553 is_num = 1;
2554 }
2555 else if (c == '-') {
2556 is_num = 2;
2557 sign = -1;
2558 pnum_head = p;
2559 }
2560 else if (!ONIGENC_IS_CODE_NAMEcxx . . $ `vendor/onigmo-source/regparse.c:2512:11`!(enc, c)) {
2561 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:681:9`!;
2562 }
2563 }
2564
2565 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2566 name_end = p;
2567 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2568 if (c == end_code || c == ')' || c == '+' || c == '-') {
2569 if (is_num == 2) r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2570 break;
2571 }
2572
2573 if (is_num != 0) {
2574 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) {
2575 is_num = 1;
2576 }
2577 else {
2578 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2579 is_num = 0;
2580 }
2581 }
2582 else if (!ONIGENC_IS_CODE_NAMEcxx . . $ `vendor/onigmo-source/regparse.c:2512:11`!(enc, c)) {
2583 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:681:9`!;
2584 }
2585 }
2586
2587 if (r == 0 && c != end_code) {
2588 if (c == '+' || c == '-') {
2589 int level;
2590 int flag = (c == '-' ? -1 : 1);
2591
2592 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2593 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:681:9`!;
2594 goto end;
2595 }
2596 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2597 if (! ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) goto err;
2598 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
2599 level = onig_scan_unsigned_numbercxx . . $ onig_scan_unsigned_number(a406e4af2d595f09).(&p, end, enc);
2600 if (level < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
2601 *rlevel = (level * flag);
2602 exist_level = 1;
2603
2604 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2605 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2606 if (c == end_code)
2607 goto end;
2608 }
2609 }
2610
2611 err:
2612 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2613 name_end = end;
2614 }
2615
2616 end:
2617 if (r == 0) {
2618 if (is_num != 0) {
2619 *rback_num = onig_scan_unsigned_numbercxx . . $ onig_scan_unsigned_number(a406e4af2d595f09).(&pnum_head, name_end, enc);
2620 if (*rback_num < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
2621 else if (*rback_num == 0) goto err;
2622
2623 *rback_num *= sign;
2624 }
2625
2626 *rname_end = name_end;
2627 *src = p;
2628 return (exist_level ? 1 : 0);
2629 }
2630 else {
2631 onig_scan_env_set_error_stringcxx . . $ onig_scan_env_set_error_string(c0cd2a0033022035).(env, r, *src, name_end);
2632 return r;
2633 }
2634 }
2635 # endif /* USE_BACKREF_WITH_LEVEL */
2636
2637 /*
2638 ref: 0 -> define name (don't allow number name)
2639 1 -> reference name (allow number name)
2640 */
2641 static int
2642 fetch_namecxx . . $ fetch_name(245574cfb1388599).(OnigCodePointcxx . . $ OnigCodePoint# start_code, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end,
2643 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** rname_end, ScanEnvcxx . . $ ScanEnv#* env, int* rback_num, int ref)
2644 {
2645 int r, is_num, sign;
2646 OnigCodePointcxx . . $ OnigCodePoint# end_code;
2647 OnigCodePointcxx . . $ OnigCodePoint# c = 0;
2648 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
2649 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name_end;
2650 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *pnum_head;
2651 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = *src;
2652
2653 *rback_num = 0;
2654
2655 end_code = get_name_end_code_pointcxx . . $ get_name_end_code_point(2141b656ce2cc063).(start_code);
2656
2657 name_end = end;
2658 pnum_head = *src;
2659 r = 0;
2660 is_num = 0;
2661 sign = 1;
2662 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2663 return ONIGERR_EMPTY_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:679:9`!;
2664 }
2665 else {
2666 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2667 if (c == end_code)
2668 return ONIGERR_EMPTY_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:679:9`!;
2669
2670 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) {
2671 if (ref == 1)
2672 is_num = 1;
2673 else {
2674 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2675 is_num = 0;
2676 }
2677 }
2678 else if (c == '-') {
2679 if (ref == 1) {
2680 is_num = 2;
2681 sign = -1;
2682 pnum_head = p;
2683 }
2684 else {
2685 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2686 is_num = 0;
2687 }
2688 }
2689 else if (!ONIGENC_IS_CODE_NAMEcxx . . $ `vendor/onigmo-source/regparse.c:2512:11`!(enc, c)) {
2690 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:681:9`!;
2691 }
2692 }
2693
2694 if (r == 0) {
2695 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2696 name_end = p;
2697 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2698 if (c == end_code || c == ')') {
2699 if (is_num == 2) {
2700 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2701 goto teardown;
2702 }
2703 break;
2704 }
2705
2706 if (is_num != 0) {
2707 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) {
2708 is_num = 1;
2709 }
2710 else {
2711 if (!ONIGENC_IS_CODE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:400:9`!(enc, c))
2712 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:681:9`!;
2713 else
2714 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2715 goto teardown;
2716 }
2717 }
2718 else {
2719 if (!ONIGENC_IS_CODE_NAMEcxx . . $ `vendor/onigmo-source/regparse.c:2512:11`!(enc, c)) {
2720 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:681:9`!;
2721 goto teardown;
2722 }
2723 }
2724 }
2725
2726 if (c != end_code) {
2727 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2728 name_end = end;
2729 goto err;
2730 }
2731
2732 if (is_num != 0) {
2733 *rback_num = onig_scan_unsigned_numbercxx . . $ onig_scan_unsigned_number(a406e4af2d595f09).(&pnum_head, name_end, enc);
2734 if (*rback_num < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
2735 else if (*rback_num == 0) {
2736 r = ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
2737 goto err;
2738 }
2739
2740 *rback_num *= sign;
2741 }
2742
2743 *rname_end = name_end;
2744 *src = p;
2745 return 0;
2746 }
2747 else {
2748 teardown:
2749 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2750 name_end = p;
2751 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
2752 if (c == end_code || c == ')')
2753 break;
2754 }
2755 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!)
2756 name_end = end;
2757
2758 err:
2759 onig_scan_env_set_error_stringcxx . . $ onig_scan_env_set_error_string(c0cd2a0033022035).(env, r, *src, name_end);
2760 return r;
2761 }
2762 }
2763 #else
2764 static int
2765 fetch_name(OnigCodePoint start_code, UChar** src, UChar* end,
2766 UChar** rname_end, ScanEnv* env, int* rback_num, int ref)
2767 {
2768 int r, is_num, sign;
2769 OnigCodePoint end_code;
2770 OnigCodePoint c = 0;
2771 UChar *name_end;
2772 OnigEncoding enc = env->enc;
2773 UChar *pnum_head;
2774 UChar *p = *src;
2775 PFETCH_READY;
2776
2777 *rback_num = 0;
2778
2779 end_code = get_name_end_code_point(start_code);
2780
2781 *rname_end = name_end = end;
2782 r = 0;
2783 pnum_head = *src;
2784 is_num = 0;
2785 sign = 1;
2786
2787 if (PEND) {
2788 return ONIGERR_EMPTY_GROUP_NAME;
2789 }
2790 else {
2791 PFETCH(c);
2792 if (c == end_code)
2793 return ONIGERR_EMPTY_GROUP_NAME;
2794
2795 if (ONIGENC_IS_CODE_DIGIT(enc, c)) {
2796 is_num = 1;
2797 }
2798 else if (c == '-') {
2799 is_num = 2;
2800 sign = -1;
2801 pnum_head = p;
2802 }
2803 else {
2804 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAME;
2805 }
2806 }
2807
2808 while (!PEND) {
2809 name_end = p;
2810
2811 PFETCH(c);
2812 if (c == end_code || c == ')') break;
2813 if (! ONIGENC_IS_CODE_DIGIT(enc, c))
2814 r = ONIGERR_INVALID_CHAR_IN_GROUP_NAME;
2815 }
2816 if (r == 0 && c != end_code) {
2817 r = ONIGERR_INVALID_GROUP_NAME;
2818 name_end = end;
2819 }
2820
2821 if (r == 0) {
2822 *rback_num = onig_scan_unsigned_number(&pnum_head, name_end, enc);
2823 if (*rback_num < 0) return ONIGERR_TOO_BIG_NUMBER;
2824 else if (*rback_num == 0) {
2825 r = ONIGERR_INVALID_GROUP_NAME;
2826 goto err;
2827 }
2828 *rback_num *= sign;
2829
2830 *rname_end = name_end;
2831 *src = p;
2832 return 0;
2833 }
2834 else {
2835 err:
2836 onig_scan_env_set_error_string(env, r, *src, name_end);
2837 return r;
2838 }
2839 }
2840 #endif /* USE_NAMED_GROUP */
2841
2842
2843 static void
2844 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(ScanEnvcxx . . $ ScanEnv# *env, const char *fmt, ...)
2845 {
2846 va_listcxx . . $ va_list# args;
2847 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[WARN_BUFSIZEcxx . . $ `vendor/onigmo-source/regparse.c:34:9`!];
2848 va_startcxx . . $ `<external>/8293021631987149590/stdarg.h:51:9`!(args, fmt);
2849 onig_vsnprintf_with_patterncxx . . $ onig_vsnprintf_with_pattern(560f070ba3d21b3b).(buf, WARN_BUFSIZEcxx . . $ `vendor/onigmo-source/regparse.c:34:9`!, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.,
2850 env->patterncxx . . $ $anonymous_type_d68713db57daa8f0_11#pattern., env->pattern_endcxx . . $ $anonymous_type_d68713db57daa8f0_11#pattern_end.,
2851 (const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *)fmt, args);
2852 va_endcxx . . $ `<external>/8293021631987149590/stdarg.h:53:9`!(args);
2853 #ifdef RUBY
2854 if (env->sourcefile == NULL)
2855 rb_warn("%s", (char *)buf);
2856 else
2857 rb_compile_warn(env->sourcefile, env->sourceline, "%s", (char *)buf);
2858 #else
2859 (*onig_warncxx . . $ onig_warn.)((char* )buf);
2860 #endif
2861 }
2862
2863 static void
2864 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(ScanEnvcxx . . $ ScanEnv# *env, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *c)
2865 {
2866 if (onig_warncxx . . $ onig_warn. == onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9).) return ;
2867
2868 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_WARN_CC_OP_NOT_ESCAPEDcxx . . $ `vendor/onigmo-source/onigmo.h:607:9`!) &&
2869 IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_BACKSLASH_ESCAPE_IN_CCcxx . . $ `vendor/onigmo-source/onigmo.h:603:9`!)) {
2870 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "character class has '%s' without escape", c);
2871 }
2872 }
2873
2874 static void
2875 CLOSE_BRACKET_WITHOUT_ESC_WARNcxx . . $ CLOSE_BRACKET_WITHOUT_ESC_WARN(4019c3b822e7a577).(ScanEnvcxx . . $ ScanEnv#* env, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* c)
2876 {
2877 if (onig_warncxx . . $ onig_warn. == onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9).) return ;
2878
2879 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_WARN_CC_OP_NOT_ESCAPEDcxx . . $ `vendor/onigmo-source/onigmo.h:607:9`!)) {
2880 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "regular expression has '%s' without escape", c);
2881 }
2882 }
2883
2884 #ifndef RTEST
2885 # define RTESTcxx . . $ `vendor/onigmo-source/regparse.c:2885:10`!(v) 1
2886 #endif
2887
2888 static void
2889 CC_DUP_WARNcxx . . $ CC_DUP_WARN(5e95567f993df0d4).(ScanEnvcxx . . $ ScanEnv# *env)
2890 {
2891 if (onig_warncxx . . $ onig_warn. == onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9). || !RTESTcxx . . $ `vendor/onigmo-source/regparse.c:2885:10`!(ruby_verbose)) return ;
2892
2893 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_WARN_CC_DUPcxx . . $ `vendor/onigmo-source/onigmo.h:609:9`!) &&
2894 !(env->warnings_flagcxx . . $ $anonymous_type_d68713db57daa8f0_11#warnings_flag. & ONIG_SYN_WARN_CC_DUPcxx . . $ `vendor/onigmo-source/onigmo.h:609:9`!)) {
2895 env->warnings_flagcxx . . $ $anonymous_type_d68713db57daa8f0_11#warnings_flag. |= ONIG_SYN_WARN_CC_DUPcxx . . $ `vendor/onigmo-source/onigmo.h:609:9`!;
2896 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "character class has duplicated range");
2897 }
2898 }
2899
2900 static void
2901 UNKNOWN_ESC_WARNcxx . . $ UNKNOWN_ESC_WARN(91b8d7e9804cb1d7).(ScanEnvcxx . . $ ScanEnv# *env, int c)
2902 {
2903 if (onig_warncxx . . $ onig_warn. == onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9). || !RTESTcxx . . $ `vendor/onigmo-source/regparse.c:2885:10`!(ruby_verbose)) return ;
2904 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "Unknown escape \\%c is ignored", c);
2905 }
2906
2907 static UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*
2908 find_str_positioncxx . . $ find_str_position(fef164d05bdb22ab).(OnigCodePointcxx . . $ OnigCodePoint# s[], int n, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* from, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* to,
2909 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! **next, OnigEncodingcxx . . $ OnigEncoding# enc)
2910 {
2911 int i;
2912 OnigCodePointcxx . . $ OnigCodePoint# x;
2913 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *q;
2914 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = from;
2915
2916 while (p < to) {
2917 x = ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, to);
2918 q = p + enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, to);
2919 if (x == s[0]) {
2920 for (i = 1; i < n && q < to; i++) {
2921 x = ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, q, to);
2922 if (x != s[i]) break;
2923 q += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, q, to);
2924 }
2925 if (i >= n) {
2926 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(next))
2927 *next = q;
2928 return p;
2929 }
2930 }
2931 p = q;
2932 }
2933 return NULL_UCHARPcxx . . $ `vendor/onigmo-source/regint.h:302:9`!;
2934 }
2935
2936 static int
2937 str_exist_check_with_esccxx . . $ str_exist_check_with_esc(58f10be7a7d02ab7).(OnigCodePointcxx . . $ OnigCodePoint# s[], int n, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* from, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* to,
2938 OnigCodePointcxx . . $ OnigCodePoint# bad, OnigEncodingcxx . . $ OnigEncoding# enc, const OnigSyntaxTypecxx . . $ OnigSyntaxType#* syn)
2939 {
2940 int i, in_esc;
2941 OnigCodePointcxx . . $ OnigCodePoint# x;
2942 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *q;
2943 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = from;
2944
2945 in_esc = 0;
2946 while (p < to) {
2947 if (in_esc) {
2948 in_esc = 0;
2949 p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, to);
2950 }
2951 else {
2952 x = ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, to);
2953 q = p + enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, to);
2954 if (x == s[0]) {
2955 for (i = 1; i < n && q < to; i++) {
2956 x = ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, q, to);
2957 if (x != s[i]) break;
2958 q += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, q, to);
2959 }
2960 if (i >= n) return 1;
2961 p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, to);
2962 }
2963 else {
2964 x = ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, to);
2965 if (x == bad) return 0;
2966 else if (x == MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(syn)) in_esc = 1;
2967 p = q;
2968 }
2969 }
2970 }
2971 return 0;
2972 }
2973
2974 static int
2975 fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(OnigTokencxx . . $ OnigToken#* tok, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
2976 {
2977 int num;
2978 OnigCodePointcxx . . $ OnigCodePoint# c, c2;
2979 const OnigSyntaxTypecxx . . $ OnigSyntaxType#* syn = env->syntaxcxx . . $ $anonymous_type_d68713db57daa8f0_11#syntax.;
2980 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
2981 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* prev;
2982 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
2983 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
2984
2985 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
2986 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_EOTcxx . . $ TK_EOT.;
2987 return tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
2988 }
2989
2990 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
2991 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHARcxx . . $ TK_CHAR.;
2992 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 0;
2993 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = c;
2994 tok->escapedcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#escaped. = 0;
2995
2996 if (c == ']') {
2997 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CC_CLOSEcxx . . $ TK_CC_CLOSE.;
2998 }
2999 else if (c == '-') {
3000 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CC_RANGEcxx . . $ TK_CC_RANGE.;
3001 }
3002 else if (c == MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(syn)) {
3003 if (! IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(syn, ONIG_SYN_BACKSLASH_ESCAPE_IN_CCcxx . . $ `vendor/onigmo-source/onigmo.h:603:9`!))
3004 goto end;
3005
3006 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_AT_ESCAPEcxx . . $ `vendor/onigmo-source/onigmo.h:646:9`!;
3007
3008 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3009 tok->escapedcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#escaped. = 1;
3010 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = c;
3011 switch (c) {
3012 case 'w':
3013 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3014 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!;
3015 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3016 break;
3017 case 'W':
3018 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3019 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!;
3020 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3021 break;
3022 case 'd':
3023 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3024 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!;
3025 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3026 break;
3027 case 'D':
3028 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3029 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!;
3030 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3031 break;
3032 case 's':
3033 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3034 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!;
3035 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3036 break;
3037 case 'S':
3038 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3039 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!;
3040 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3041 break;
3042 case 'h':
3043 if (! IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_H_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:571:9`!)) break;
3044 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3045 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!;
3046 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3047 break;
3048 case 'H':
3049 if (! IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_H_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:571:9`!)) break;
3050 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3051 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!;
3052 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3053 break;
3054
3055 case 'p':
3056 case 'P':
3057 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) break;
3058
3059 c2 = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
3060 if (c2 == '{' &&
3061 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTYcxx . . $ `vendor/onigmo-source/onigmo.h:568:9`!)) {
3062 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3063 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_PROPERTYcxx . . $ TK_CHAR_PROPERTY.;
3064 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = (c == 'P' ? 1 : 0);
3065
3066 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOTcxx . . $ `vendor/onigmo-source/onigmo.h:569:9`!)) {
3067 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c2);
3068 if (c2 == '^') {
3069 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = (tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. == 0 ? 1 : 0);
3070 }
3071 else
3072 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3073 }
3074 }
3075 else {
3076 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "invalid Unicode Property \\%c", c);
3077 }
3078 break;
3079
3080 case 'x':
3081 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) break;
3082
3083 prev = p;
3084 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('{') && IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_X_BRACE_HEX8cxx . . $ `vendor/onigmo-source/onigmo.h:549:9`!)) {
3085 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3086 num = scan_unsigned_hexadecimal_numbercxx . . $ scan_unsigned_hexadecimal_number(f2072c8602b2bbc0).(&p, end, 0, 8, enc);
3087 if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:691:9`!;
3088 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
3089 c2 = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
3090 if (ONIGENC_IS_CODE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:398:9`!(enc, c2))
3091 return ONIGERR_TOO_LONG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:678:9`!;
3092 }
3093
3094 if (p > prev + enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, prev, end) && !PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('}'))) {
3095 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3096 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3097 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 16;
3098 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )num;
3099 }
3100 else {
3101 /* can't read nothing or invalid format */
3102 p = prev;
3103 }
3104 }
3105 else if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_X_HEX2cxx . . $ `vendor/onigmo-source/onigmo.h:548:9`!)) {
3106 num = scan_unsigned_hexadecimal_numbercxx . . $ scan_unsigned_hexadecimal_number(f2072c8602b2bbc0).(&p, end, 0, 2, enc);
3107 if (num < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
3108 if (p == prev) { /* can't read nothing. */
3109 num = 0; /* but, it's not error */
3110 }
3111 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_RAW_BYTEcxx . . $ TK_RAW_BYTE.;
3112 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 16;
3113 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = num;
3114 }
3115 break;
3116
3117 case 'u':
3118 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) break;
3119
3120 prev = p;
3121 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_U_HEX4cxx . . $ `vendor/onigmo-source/onigmo.h:566:9`!)) {
3122 num = scan_unsigned_hexadecimal_numbercxx . . $ scan_unsigned_hexadecimal_number(f2072c8602b2bbc0).(&p, end, 4, 4, enc);
3123 if (num < -1) return ONIGERR_TOO_SHORT_DIGITScxx . . $ `vendor/onigmo-source/onigmo.h:677:9`!;
3124 else if (num < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
3125 if (p == prev) { /* can't read nothing. */
3126 num = 0; /* but, it's not error */
3127 }
3128 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3129 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 16;
3130 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )num;
3131 }
3132 break;
3133
3134 case 'o':
3135 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) break;
3136
3137 prev = p;
3138 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('{') && IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_O_BRACE_OCTALcxx . . $ `vendor/onigmo-source/onigmo.h:550:9`!)) {
3139 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3140 num = scan_unsigned_octal_numbercxx . . $ scan_unsigned_octal_number(85bf51a98073a8aa).(&p, end, 11, enc);
3141 if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:691:9`!;
3142 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
3143 c2 = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
3144 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c2) && c2 < '8')
3145 return ONIGERR_TOO_LONG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:678:9`!;
3146 }
3147
3148 if (p > prev + enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, prev, end) && !PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('}'))) {
3149 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3150 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3151 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 8;
3152 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )num;
3153 }
3154 else {
3155 /* can't read nothing or invalid format */
3156 p = prev;
3157 }
3158 }
3159 break;
3160
3161 case '0':
3162 case '1': case '2': case '3': case '4': case '5': case '6': case '7':
3163 if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_OCTAL3cxx . . $ `vendor/onigmo-source/onigmo.h:547:9`!)) {
3164 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3165 prev = p;
3166 num = scan_unsigned_octal_numbercxx . . $ scan_unsigned_octal_number(85bf51a98073a8aa).(&p, end, 3, enc);
3167 if (num < 0 || 0xff < num) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
3168 if (p == prev) { /* can't read nothing. */
3169 num = 0; /* but, it's not error */
3170 }
3171 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_RAW_BYTEcxx . . $ TK_RAW_BYTE.;
3172 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 8;
3173 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = num;
3174 }
3175 break;
3176
3177 default:
3178 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3179 num = fetch_escaped_valuecxx . . $ fetch_escaped_value(d7fbe9e3fa42d811).(&p, end, env, &c2);
3180 if (num < 0) return num;
3181 if ((OnigCodePointcxx . . $ OnigCodePoint# )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. != c2) {
3182 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )c2;
3183 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3184 }
3185 break;
3186 }
3187 }
3188 else if (c == '[') {
3189 if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_POSIX_BRACKETcxx . . $ `vendor/onigmo-source/onigmo.h:543:9`!) && (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!(':'))) {
3190 OnigCodePointcxx . . $ OnigCodePoint# send[] = { (OnigCodePointcxx . . $ OnigCodePoint# )':', (OnigCodePointcxx . . $ OnigCodePoint# )']' };
3191 tok->backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp. = p; /* point at '[' is read */
3192 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3193 if (str_exist_check_with_esccxx . . $ str_exist_check_with_esc(58f10be7a7d02ab7).(send, 2, p, end,
3194 (OnigCodePointcxx . . $ OnigCodePoint# )']', enc, syn)) {
3195 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_POSIX_BRACKET_OPENcxx . . $ TK_POSIX_BRACKET_OPEN.;
3196 }
3197 else {
3198 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3199 goto cc_in_cc;
3200 }
3201 }
3202 else {
3203 cc_in_cc:
3204 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_CCLASS_SET_OPcxx . . $ `vendor/onigmo-source/onigmo.h:558:9`!)) {
3205 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CC_CC_OPENcxx . . $ TK_CC_CC_OPEN.;
3206 }
3207 else {
3208 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"[");
3209 }
3210 }
3211 }
3212 else if (c == '&') {
3213 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_CCLASS_SET_OPcxx . . $ `vendor/onigmo-source/onigmo.h:558:9`!) &&
3214 !PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('&'))) {
3215 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3216 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CC_ANDcxx . . $ TK_CC_AND.;
3217 }
3218 }
3219
3220 end:
3221 *src = p;
3222 return tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
3223 }
3224
3225 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
3226 static int
3227 fetch_named_backref_tokencxx . . $ fetch_named_backref_token(bf162c5da8df9ce6).(OnigCodePointcxx . . $ OnigCodePoint# c, OnigTokencxx . . $ OnigToken#* tok, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src,
3228 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
3229 {
3230 int r, num;
3231 const OnigSyntaxTypecxx . . $ OnigSyntaxType#* syn = env->syntaxcxx . . $ $anonymous_type_d68713db57daa8f0_11#syntax.;
3232 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* prev;
3233 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
3234 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_end;
3235 int* backs;
3236 int back_num;
3237
3238 prev = p;
3239
3240 # ifdef USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`!
3241 name_end = NULL_UCHARPcxx . . $ `vendor/onigmo-source/regint.h:302:9`!; /* no need. escape gcc warning. */
3242 r = fetch_name_with_levelcxx . . $ fetch_name_with_level(c94f2744aba78152).(c, &p, end, &name_end,
3243 env, &back_num, &tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#level.);
3244 if (r == 1) tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..exist_levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#exist_level. = 1;
3245 else tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..exist_levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#exist_level. = 0;
3246 # else
3247 r = fetch_name(&p, end, &name_end, env, &back_num, 1);
3248 # endif
3249 if (r < 0) return r;
3250
3251 if (back_num != 0) {
3252 if (back_num < 0) {
3253 back_num = BACKREF_REL_TO_ABScxx . . $ `vendor/onigmo-source/regparse.c:157:9`!(back_num, env);
3254 if (back_num <= 0)
3255 return ONIGERR_INVALID_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:674:9`!;
3256 }
3257
3258 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(syn, ONIG_SYN_STRICT_CHECK_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:593:9`!)) {
3259 if (back_num > env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. ||
3260 IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(SCANENV_MEM_NODEScxx . . $ `vendor/onigmo-source/regparse.h:286:9`!(env)[back_num]))
3261 return ONIGERR_INVALID_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:674:9`!;
3262 }
3263 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_BACKREFcxx . . $ TK_BACKREF.;
3264 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..by_namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#by_name. = 0;
3265 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#num. = 1;
3266 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#ref1. = back_num;
3267 }
3268 else {
3269 num = onig_name_to_group_numberscxx . . $ onig_name_to_group_numbers(e1cabcacd17cba1d).(env->regcxx . . $ $anonymous_type_d68713db57daa8f0_11#reg., prev, name_end, &backs);
3270 if (num <= 0) {
3271 onig_scan_env_set_error_stringcxx . . $ onig_scan_env_set_error_string(c0cd2a0033022035).(env,
3272 ONIGERR_UNDEFINED_NAME_REFERENCEcxx . . $ `vendor/onigmo-source/onigmo.h:682:9`!, prev, name_end);
3273 return ONIGERR_UNDEFINED_NAME_REFERENCEcxx . . $ `vendor/onigmo-source/onigmo.h:682:9`!;
3274 }
3275 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(syn, ONIG_SYN_STRICT_CHECK_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:593:9`!)) {
3276 int i;
3277 for (i = 0; i < num; i++) {
3278 if (backs[i] > env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. ||
3279 IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(SCANENV_MEM_NODEScxx . . $ `vendor/onigmo-source/regparse.h:286:9`!(env)[backs[i]]))
3280 return ONIGERR_INVALID_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:674:9`!;
3281 }
3282 }
3283
3284 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_BACKREFcxx . . $ TK_BACKREF.;
3285 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..by_namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#by_name. = 1;
3286 if (num == 1 || IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(syn, ONIG_SYN_USE_LEFT_MOST_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:599:9`!)) {
3287 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#num. = 1;
3288 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#ref1. = backs[0];
3289 }
3290 else {
3291 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#num. = num;
3292 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#refs. = backs;
3293 }
3294 }
3295 *src = p;
3296 return 0;
3297 }
3298 #endif
3299
3300 static int
3301 fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(OnigTokencxx . . $ OnigToken#* tok, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
3302 {
3303 int r, num;
3304 OnigCodePointcxx . . $ OnigCodePoint# c;
3305 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
3306 const OnigSyntaxTypecxx . . $ OnigSyntaxType#* syn = env->syntaxcxx . . $ $anonymous_type_d68713db57daa8f0_11#syntax.;
3307 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* prev;
3308 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
3309 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
3310
3311 start:
3312 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
3313 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_EOTcxx . . $ TK_EOT.;
3314 return tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
3315 }
3316
3317 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_STRINGcxx . . $ TK_STRING.;
3318 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 0;
3319 tok->backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp. = p;
3320
3321 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3322 if (IS_MC_ESC_CODEcxx . . $ `vendor/onigmo-source/regint.h:755:9`!(c, syn)) {
3323 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_AT_ESCAPEcxx . . $ `vendor/onigmo-source/onigmo.h:646:9`!;
3324
3325 tok->backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp. = p;
3326 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3327
3328 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = c;
3329 tok->escapedcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#escaped. = 1;
3330 switch (c) {
3331 case '*':
3332 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_ASTERISK_ZERO_INFcxx . . $ `vendor/onigmo-source/onigmo.h:522:9`!)) break;
3333 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_OP_REPEATcxx . . $ TK_OP_REPEAT.;
3334 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower. = 0;
3335 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!;
3336 goto greedy_check;
3337 break;
3338
3339 case '+':
3340 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_PLUS_ONE_INFcxx . . $ `vendor/onigmo-source/onigmo.h:524:9`!)) break;
3341 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_OP_REPEATcxx . . $ TK_OP_REPEAT.;
3342 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower. = 1;
3343 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!;
3344 goto greedy_check;
3345 break;
3346
3347 case '?':
3348 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_QMARK_ZERO_ONEcxx . . $ `vendor/onigmo-source/onigmo.h:526:9`!)) break;
3349 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_OP_REPEATcxx . . $ TK_OP_REPEAT.;
3350 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower. = 0;
3351 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper. = 1;
3352 greedy_check:
3353 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('?') &&
3354 IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_QMARK_NON_GREEDYcxx . . $ `vendor/onigmo-source/onigmo.h:544:9`!)) {
3355 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3356 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..greedycxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#greedy. = 0;
3357 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..possessivecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#possessive. = 0;
3358 }
3359 else {
3360 possessive_check:
3361 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('+') &&
3362 ((IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEATcxx . . $ `vendor/onigmo-source/onigmo.h:556:9`!) &&
3363 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. != TK_INTERVALcxx . . $ TK_INTERVAL.) ||
3364 (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVALcxx . . $ `vendor/onigmo-source/onigmo.h:557:9`!) &&
3365 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. == TK_INTERVALcxx . . $ TK_INTERVAL.))) {
3366 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3367 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..greedycxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#greedy. = 1;
3368 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..possessivecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#possessive. = 1;
3369 }
3370 else {
3371 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..greedycxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#greedy. = 1;
3372 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..possessivecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#possessive. = 0;
3373 }
3374 }
3375 break;
3376
3377 case '{':
3378 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_BRACE_INTERVALcxx . . $ `vendor/onigmo-source/onigmo.h:528:9`!)) break;
3379 r = fetch_range_quantifiercxx . . $ fetch_range_quantifier(c695b6a320ecaddb).(&p, end, tok, env);
3380 if (r < 0) return r; /* error */
3381 if (r == 0) goto greedy_check;
3382 else if (r == 2) { /* {n} */
3383 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(syn, ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLYcxx . . $ `vendor/onigmo-source/onigmo.h:597:9`!))
3384 goto possessive_check;
3385
3386 goto greedy_check;
3387 }
3388 /* r == 1 : normal char */
3389 break;
3390
3391 case '|':
3392 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_VBAR_ALTcxx . . $ `vendor/onigmo-source/onigmo.h:530:9`!)) break;
3393 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ALTcxx . . $ TK_ALT.;
3394 break;
3395
3396 case '(':
3397 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_LPAREN_SUBEXPcxx . . $ `vendor/onigmo-source/onigmo.h:532:9`!)) break;
3398 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_SUBEXP_OPENcxx . . $ TK_SUBEXP_OPEN.;
3399 break;
3400
3401 case ')':
3402 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_LPAREN_SUBEXPcxx . . $ `vendor/onigmo-source/onigmo.h:532:9`!)) break;
3403 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_SUBEXP_CLOSEcxx . . $ TK_SUBEXP_CLOSE.;
3404 break;
3405
3406 case 'w':
3407 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_W_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:537:9`!)) break;
3408 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3409 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!;
3410 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3411 break;
3412
3413 case 'W':
3414 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_W_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:537:9`!)) break;
3415 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3416 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!;
3417 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3418 break;
3419
3420 case 'b':
3421 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_B_WORD_BOUNDcxx . . $ `vendor/onigmo-source/onigmo.h:539:9`!)) break;
3422 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3423 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_WORD_BOUNDcxx . . $ `vendor/onigmo-source/regint.h:534:9`!;
3424 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..ascii_rangecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#ascii_range. = IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option)
3425 && ! IS_WORD_BOUND_ALL_RANGEcxx . . $ `vendor/onigmo-source/regint.h:395:9`!(env->option);
3426 break;
3427
3428 case 'B':
3429 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_B_WORD_BOUNDcxx . . $ `vendor/onigmo-source/onigmo.h:539:9`!)) break;
3430 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3431 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_NOT_WORD_BOUNDcxx . . $ `vendor/onigmo-source/regint.h:535:9`!;
3432 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..ascii_rangecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#ascii_range. = IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option)
3433 && ! IS_WORD_BOUND_ALL_RANGEcxx . . $ `vendor/onigmo-source/regint.h:395:9`!(env->option);
3434 break;
3435
3436 #ifdef USE_WORD_BEGIN_ENDcxx . . $ `vendor/onigmo-source/regint.h:131:9`!
3437 case '<':
3438 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_ENDcxx . . $ `vendor/onigmo-source/onigmo.h:538:9`!)) break;
3439 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3440 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_WORD_BEGINcxx . . $ `vendor/onigmo-source/regint.h:536:9`!;
3441 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..ascii_rangecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#ascii_range. = IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option);
3442 break;
3443
3444 case '>':
3445 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_ENDcxx . . $ `vendor/onigmo-source/onigmo.h:538:9`!)) break;
3446 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3447 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_WORD_ENDcxx . . $ `vendor/onigmo-source/regint.h:537:9`!;
3448 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..ascii_rangecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#ascii_range. = IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option);
3449 break;
3450 #endif
3451
3452 case 's':
3453 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_S_WHITE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:540:9`!)) break;
3454 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3455 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!;
3456 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3457 break;
3458
3459 case 'S':
3460 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_S_WHITE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:540:9`!)) break;
3461 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3462 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!;
3463 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3464 break;
3465
3466 case 'd':
3467 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_D_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:541:9`!)) break;
3468 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3469 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!;
3470 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3471 break;
3472
3473 case 'D':
3474 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_D_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:541:9`!)) break;
3475 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3476 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!;
3477 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3478 break;
3479
3480 case 'h':
3481 if (! IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_H_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:571:9`!)) break;
3482 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3483 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!;
3484 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 0;
3485 break;
3486
3487 case 'H':
3488 if (! IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_H_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:571:9`!)) break;
3489 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.;
3490 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. = ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!;
3491 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = 1;
3492 break;
3493
3494 case 'A':
3495 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_AZ_BUF_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:533:9`!)) break;
3496 begin_buf:
3497 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3498 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_BEGIN_BUFcxx . . $ `vendor/onigmo-source/regint.h:527:9`!;
3499 break;
3500
3501 case 'Z':
3502 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_AZ_BUF_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:533:9`!)) break;
3503 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3504 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_SEMI_END_BUFcxx . . $ `vendor/onigmo-source/regint.h:531:9`!;
3505 break;
3506
3507 case 'z':
3508 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_AZ_BUF_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:533:9`!)) break;
3509 end_buf:
3510 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3511 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_END_BUFcxx . . $ `vendor/onigmo-source/regint.h:530:9`!;
3512 break;
3513
3514 case 'G':
3515 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:534:9`!)) break;
3516 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
3517 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = ANCHOR_BEGIN_POSITIONcxx . . $ `vendor/onigmo-source/regint.h:529:9`!;
3518 break;
3519
3520 case '`':
3521 if (! IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_GNU_BUF_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:567:9`!)) break;
3522 goto begin_buf;
3523 break;
3524
3525 case '\'':
3526 if (! IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_GNU_BUF_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:567:9`!)) break;
3527 goto end_buf;
3528 break;
3529
3530 case 'x':
3531 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) break;
3532
3533 prev = p;
3534 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('{') && IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_X_BRACE_HEX8cxx . . $ `vendor/onigmo-source/onigmo.h:549:9`!)) {
3535 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3536 num = scan_unsigned_hexadecimal_numbercxx . . $ scan_unsigned_hexadecimal_number(f2072c8602b2bbc0).(&p, end, 0, 8, enc);
3537 if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:691:9`!;
3538 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
3539 if (ONIGENC_IS_CODE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:398:9`!(enc, PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!))
3540 return ONIGERR_TOO_LONG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:678:9`!;
3541 }
3542
3543 if ((p > prev + enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, prev, end)) && !PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('}')) {
3544 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3545 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3546 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )num;
3547 }
3548 else {
3549 /* can't read nothing or invalid format */
3550 p = prev;
3551 }
3552 }
3553 else if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_X_HEX2cxx . . $ `vendor/onigmo-source/onigmo.h:548:9`!)) {
3554 num = scan_unsigned_hexadecimal_numbercxx . . $ scan_unsigned_hexadecimal_number(f2072c8602b2bbc0).(&p, end, 0, 2, enc);
3555 if (num < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
3556 if (p == prev) { /* can't read nothing. */
3557 num = 0; /* but, it's not error */
3558 }
3559 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_RAW_BYTEcxx . . $ TK_RAW_BYTE.;
3560 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 16;
3561 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = num;
3562 }
3563 break;
3564
3565 case 'u':
3566 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) break;
3567
3568 prev = p;
3569 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_U_HEX4cxx . . $ `vendor/onigmo-source/onigmo.h:566:9`!)) {
3570 num = scan_unsigned_hexadecimal_numbercxx . . $ scan_unsigned_hexadecimal_number(f2072c8602b2bbc0).(&p, end, 4, 4, enc);
3571 if (num < -1) return ONIGERR_TOO_SHORT_DIGITScxx . . $ `vendor/onigmo-source/onigmo.h:677:9`!;
3572 else if (num < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
3573 if (p == prev) { /* can't read nothing. */
3574 num = 0; /* but, it's not error */
3575 }
3576 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3577 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 16;
3578 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )num;
3579 }
3580 break;
3581
3582 case 'o':
3583 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) break;
3584
3585 prev = p;
3586 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('{') && IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_O_BRACE_OCTALcxx . . $ `vendor/onigmo-source/onigmo.h:550:9`!)) {
3587 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3588 num = scan_unsigned_octal_numbercxx . . $ scan_unsigned_octal_number(85bf51a98073a8aa).(&p, end, 11, enc);
3589 if (num < 0) return ONIGERR_TOO_BIG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:691:9`!;
3590 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
3591 OnigCodePointcxx . . $ OnigCodePoint# c = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
3592 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c) && c < '8')
3593 return ONIGERR_TOO_LONG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:678:9`!;
3594 }
3595
3596 if ((p > prev + enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, prev, end)) && !PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('}')) {
3597 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3598 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3599 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )num;
3600 }
3601 else {
3602 /* can't read nothing or invalid format */
3603 p = prev;
3604 }
3605 }
3606 break;
3607
3608 case '1': case '2': case '3': case '4':
3609 case '5': case '6': case '7': case '8': case '9':
3610 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3611 prev = p;
3612 num = onig_scan_unsigned_numbercxx . . $ onig_scan_unsigned_number(a406e4af2d595f09).(&p, end, enc);
3613 if (num < 0 || num > ONIG_MAX_BACKREF_NUMcxx . . $ `vendor/onigmo-source/onigmo.h:439:9`!) {
3614 goto skip_backref;
3615 }
3616
3617 if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_DECIMAL_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:535:9`!) &&
3618 (num <= env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. || num <= 9)) { /* This spec. from GNU regex */
3619 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(syn, ONIG_SYN_STRICT_CHECK_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:593:9`!)) {
3620 if (num > env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. || IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(SCANENV_MEM_NODEScxx . . $ `vendor/onigmo-source/regparse.h:286:9`!(env)[num]))
3621 return ONIGERR_INVALID_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:674:9`!;
3622 }
3623
3624 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_BACKREFcxx . . $ TK_BACKREF.;
3625 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#num. = 1;
3626 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#ref1. = num;
3627 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..by_namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#by_name. = 0;
3628 #ifdef USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`!
3629 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..exist_levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#exist_level. = 0;
3630 #endif
3631 break;
3632 }
3633
3634 skip_backref:
3635 if (c == '8' || c == '9') {
3636 /* normal char */
3637 p = prev; PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3638 break;
3639 }
3640
3641 p = prev;
3642 /* fall through */
3643 case '0':
3644 if (IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ESC_OCTAL3cxx . . $ `vendor/onigmo-source/onigmo.h:547:9`!)) {
3645 prev = p;
3646 num = scan_unsigned_octal_numbercxx . . $ scan_unsigned_octal_number(85bf51a98073a8aa).(&p, end, (c == '0' ? 2:3), enc);
3647 if (num < 0) return ONIGERR_TOO_BIG_NUMBERcxx . . $ `vendor/onigmo-source/onigmo.h:666:9`!;
3648 if (p == prev) { /* can't read nothing. */
3649 num = 0; /* but, it's not error */
3650 }
3651 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_RAW_BYTEcxx . . $ TK_RAW_BYTE.;
3652 tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. = 8;
3653 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = num;
3654 }
3655 else if (c != '0') {
3656 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3657 }
3658 break;
3659
3660 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
3661 case 'k':
3662 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_K_NAMED_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:560:9`!)) {
3663 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3664 if (c == '<' || c == '\'') {
3665 r = fetch_named_backref_tokencxx . . $ fetch_named_backref_token(bf162c5da8df9ce6).(c, tok, &p, end, env);
3666 if (r < 0) return r;
3667 }
3668 else {
3669 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3670 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "invalid back reference");
3671 }
3672 }
3673 break;
3674 #endif
3675
3676 #if defined(USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!) || defined(USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!)
3677 case 'g':
3678 # ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
3679 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_G_BRACE_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:578:9`!)) {
3680 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3681 if (c == '{') {
3682 r = fetch_named_backref_tokencxx . . $ fetch_named_backref_token(bf162c5da8df9ce6).(c, tok, &p, end, env);
3683 if (r < 0) return r;
3684 }
3685 else
3686 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3687 }
3688 # endif
3689 # ifdef USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!
3690 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_G_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/onigmo.h:561:9`!)) {
3691 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3692 if (c == '<' || c == '\'') {
3693 int gnum = -1, rel = 0;
3694 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name_end;
3695 OnigCodePointcxx . . $ OnigCodePoint# cnext;
3696
3697 cnext = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
3698 if (cnext == '0') {
3699 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3700 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!(get_name_end_code_point(c))) { /* \g<0>, \g'0' */
3701 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3702 name_end = p;
3703 gnum = 0;
3704 }
3705 }
3706 else if (cnext == '+') {
3707 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3708 rel = 1;
3709 }
3710 prev = p;
3711 if (gnum < 0) {
3712 r = fetch_namecxx . . $ fetch_name(245574cfb1388599).((OnigCodePointcxx . . $ OnigCodePoint# )c, &p, end, &name_end, env, &gnum, 1);
3713 if (r < 0) return r;
3714 }
3715
3716 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CALLcxx . . $ TK_CALL.;
3717 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name. = prev;
3718 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..name_endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name_end. = name_end;
3719 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..gnumcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#gnum. = gnum;
3720 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..relcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#rel. = rel;
3721 }
3722 else {
3723 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "invalid subexp call");
3724 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3725 }
3726 }
3727 # endif
3728 break;
3729 #endif
3730
3731 case 'Q':
3732 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTEcxx . . $ `vendor/onigmo-source/onigmo.h:552:9`!)) {
3733 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_QUOTE_OPENcxx . . $ TK_QUOTE_OPEN.;
3734 }
3735 break;
3736
3737 case 'p':
3738 case 'P':
3739 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('{') &&
3740 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTYcxx . . $ `vendor/onigmo-source/onigmo.h:568:9`!)) {
3741 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3742 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHAR_PROPERTYcxx . . $ TK_CHAR_PROPERTY.;
3743 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = (c == 'P' ? 1 : 0);
3744
3745 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOTcxx . . $ `vendor/onigmo-source/onigmo.h:569:9`!)) {
3746 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3747 if (c == '^') {
3748 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. = (tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. == 0 ? 1 : 0);
3749 }
3750 else
3751 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3752 }
3753 }
3754 else {
3755 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "invalid Unicode Property \\%c", c);
3756 }
3757 break;
3758
3759 case 'R':
3760 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_CAPITAL_R_LINEBREAKcxx . . $ `vendor/onigmo-source/onigmo.h:573:9`!)) {
3761 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_LINEBREAKcxx . . $ TK_LINEBREAK.;
3762 }
3763 break;
3764
3765 case 'X':
3766 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTERcxx . . $ `vendor/onigmo-source/onigmo.h:574:9`!)) {
3767 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_EXTENDED_GRAPHEME_CLUSTERcxx . . $ TK_EXTENDED_GRAPHEME_CLUSTER.;
3768 }
3769 break;
3770
3771 case 'K':
3772 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_ESC_CAPITAL_K_KEEPcxx . . $ `vendor/onigmo-source/onigmo.h:577:9`!)) {
3773 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_KEEPcxx . . $ TK_KEEP.;
3774 }
3775 break;
3776
3777 default:
3778 {
3779 OnigCodePointcxx . . $ OnigCodePoint# c2;
3780
3781 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3782 num = fetch_escaped_valuecxx . . $ fetch_escaped_value(d7fbe9e3fa42d811).(&p, end, env, &c2);
3783 if (num < 0) return num;
3784 /* set_raw: */
3785 if ((OnigCodePointcxx . . $ OnigCodePoint# )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. != c2) {
3786 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CODE_POINTcxx . . $ TK_CODE_POINT.;
3787 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. = (OnigCodePointcxx . . $ OnigCodePoint# )c2;
3788 }
3789 else { /* string */
3790 p = tok->backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp. + enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, tok->backp, end);
3791 }
3792 }
3793 break;
3794 }
3795 }
3796 else {
3797 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. = c;
3798 tok->escapedcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#escaped. = 0;
3799
3800 #ifdef USE_VARIABLE_META_CHARScxx . . $ `vendor/onigmo-source/regint.h:137:9`!
3801 if ((c != ONIG_INEFFECTIVE_META_CHARcxx . . $ `vendor/onigmo-source/onigmo.h:619:9`!) &&
3802 IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_VARIABLE_META_CHARACTERScxx . . $ `vendor/onigmo-source/onigmo.h:519:9`!)) {
3803 if (c == MC_ANYCHARcxx . . $ `vendor/onigmo-source/regint.h:749:9`!(syn))
3804 goto any_char;
3805 else if (c == MC_ANYTIMEcxx . . $ `vendor/onigmo-source/regint.h:750:9`!(syn))
3806 goto anytime;
3807 else if (c == MC_ZERO_OR_ONE_TIMEcxx . . $ `vendor/onigmo-source/regint.h:751:9`!(syn))
3808 goto zero_or_one_time;
3809 else if (c == MC_ONE_OR_MORE_TIMEcxx . . $ `vendor/onigmo-source/regint.h:752:9`!(syn))
3810 goto one_or_more_time;
3811 else if (c == MC_ANYCHAR_ANYTIMEcxx . . $ `vendor/onigmo-source/regint.h:753:9`!(syn)) {
3812 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANYCHAR_ANYTIMEcxx . . $ TK_ANYCHAR_ANYTIME.;
3813 goto out;
3814 }
3815 }
3816 #endif
3817
3818 switch (c) {
3819 case '.':
3820 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_DOT_ANYCHARcxx . . $ `vendor/onigmo-source/onigmo.h:520:9`!)) break;
3821 #ifdef USE_VARIABLE_META_CHARScxx . . $ `vendor/onigmo-source/regint.h:137:9`!
3822 any_char:
3823 #endif
3824 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANYCHARcxx . . $ TK_ANYCHAR.;
3825 break;
3826
3827 case '*':
3828 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_ASTERISK_ZERO_INFcxx . . $ `vendor/onigmo-source/onigmo.h:521:9`!)) break;
3829 #ifdef USE_VARIABLE_META_CHARScxx . . $ `vendor/onigmo-source/regint.h:137:9`!
3830 anytime:
3831 #endif
3832 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_OP_REPEATcxx . . $ TK_OP_REPEAT.;
3833 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower. = 0;
3834 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!;
3835 goto greedy_check;
3836 break;
3837
3838 case '+':
3839 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_PLUS_ONE_INFcxx . . $ `vendor/onigmo-source/onigmo.h:523:9`!)) break;
3840 #ifdef USE_VARIABLE_META_CHARScxx . . $ `vendor/onigmo-source/regint.h:137:9`!
3841 one_or_more_time:
3842 #endif
3843 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_OP_REPEATcxx . . $ TK_OP_REPEAT.;
3844 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower. = 1;
3845 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper. = REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!;
3846 goto greedy_check;
3847 break;
3848
3849 case '?':
3850 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_QMARK_ZERO_ONEcxx . . $ `vendor/onigmo-source/onigmo.h:525:9`!)) break;
3851 #ifdef USE_VARIABLE_META_CHARScxx . . $ `vendor/onigmo-source/regint.h:137:9`!
3852 zero_or_one_time:
3853 #endif
3854 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_OP_REPEATcxx . . $ TK_OP_REPEAT.;
3855 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower. = 0;
3856 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper. = 1;
3857 goto greedy_check;
3858 break;
3859
3860 case '{':
3861 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_BRACE_INTERVALcxx . . $ `vendor/onigmo-source/onigmo.h:527:9`!)) break;
3862 r = fetch_range_quantifiercxx . . $ fetch_range_quantifier(c695b6a320ecaddb).(&p, end, tok, env);
3863 if (r < 0) return r; /* error */
3864 if (r == 0) goto greedy_check;
3865 else if (r == 2) { /* {n} */
3866 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(syn, ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLYcxx . . $ `vendor/onigmo-source/onigmo.h:597:9`!))
3867 goto possessive_check;
3868
3869 goto greedy_check;
3870 }
3871 /* r == 1 : normal char */
3872 break;
3873
3874 case '|':
3875 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_VBAR_ALTcxx . . $ `vendor/onigmo-source/onigmo.h:529:9`!)) break;
3876 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ALTcxx . . $ TK_ALT.;
3877 break;
3878
3879 case '(':
3880 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('?') &&
3881 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(syn, ONIG_SYN_OP2_QMARK_GROUP_EFFECTcxx . . $ `vendor/onigmo-source/onigmo.h:553:9`!)) {
3882 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3883 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('#')) {
3884 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3885 while (1) {
3886 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_IN_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:659:9`!;
3887 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3888 if (c == MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(syn)) {
3889 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3890 }
3891 else {
3892 if (c == ')') break;
3893 }
3894 }
3895 goto start;
3896 }
3897 #ifdef USE_PERL_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:71:9`!
3898 /* (?&name), (?n), (?R), (?0), (?+n), (?-n) */
3899 c = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
3900 if ((c == '&' || c == 'R' || ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) &&
3901 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/onigmo.h:579:9`!)) {
3902 /* (?&name), (?n), (?R), (?0) */
3903 int gnum;
3904 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name;
3905 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name_end;
3906
3907 if (c == 'R' || c == '0') {
3908 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!; /* skip 'R' / '0' */
3909 if (!PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!(')')) return ONIGERR_INVALID_GROUP_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:680:9`!;
3910 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!; /* skip ')' */
3911 name_end = name = p;
3912 gnum = 0;
3913 }
3914 else {
3915 int numref = 1;
3916 if (c == '&') { /* (?&name) */
3917 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
3918 numref = 0; /* don't allow number name */
3919 }
3920 name = p;
3921 r = fetch_namecxx . . $ fetch_name(245574cfb1388599).((OnigCodePointcxx . . $ OnigCodePoint# )'(', &p, end, &name_end, env, &gnum, numref);
3922 if (r < 0) return r;
3923 }
3924
3925 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CALLcxx . . $ TK_CALL.;
3926 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name. = name;
3927 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..name_endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name_end. = name_end;
3928 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..gnumcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#gnum. = gnum;
3929 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..relcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#rel. = 0;
3930 break;
3931 }
3932 else if ((c == '-' || c == '+') &&
3933 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/onigmo.h:579:9`!)) {
3934 /* (?+n), (?-n) */
3935 int gnum;
3936 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name;
3937 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name_end;
3938 OnigCodePointcxx . . $ OnigCodePoint# cnext;
3939 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
3940
3941 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!; /* skip '-' / '+' */
3942 cnext = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!;
3943 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, cnext)) {
3944 if (c == '-') PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3945 name = p;
3946 r = fetch_namecxx . . $ fetch_name(245574cfb1388599).((OnigCodePointcxx . . $ OnigCodePoint# )'(', &p, end, &name_end, env, &gnum, 1);
3947 if (r < 0) return r;
3948
3949 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CALLcxx . . $ TK_CALL.;
3950 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name. = name;
3951 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..name_endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name_end. = name_end;
3952 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..gnumcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#gnum. = gnum;
3953 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..relcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#rel. = 1;
3954 break;
3955 }
3956 }
3957 #endif /* USE_PERL_SUBEXP_CALL */
3958 #ifdef USE_CAPITAL_P_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:72:9`!
3959 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('P') &&
3960 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_CAPITAL_P_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:582:9`!)) {
3961 int gnum;
3962 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name;
3963 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name_end;
3964 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
3965
3966 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!; /* skip 'P' */
3967 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
3968 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
3969 if (c == '=') { /* (?P=name): backref */
3970 r = fetch_named_backref_tokencxx . . $ fetch_named_backref_token(bf162c5da8df9ce6).((OnigCodePointcxx . . $ OnigCodePoint# )'(', tok, &p, end, env);
3971 if (r < 0) return r;
3972 break;
3973 }
3974 else if (c == '>') { /* (?P>name): subexp call */
3975 name = p;
3976 r = fetch_namecxx . . $ fetch_name(245574cfb1388599).((OnigCodePointcxx . . $ OnigCodePoint# )'(', &p, end, &name_end, env, &gnum, 0);
3977 if (r < 0) return r;
3978
3979 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CALLcxx . . $ TK_CALL.;
3980 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name. = name;
3981 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..name_endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name_end. = name_end;
3982 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..gnumcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#gnum. = gnum;
3983 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..relcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#rel. = 0;
3984 break;
3985 }
3986 }
3987 #endif /* USE_CAPITAL_P_NAMED_GROUP */
3988 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
3989 }
3990
3991 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_LPAREN_SUBEXPcxx . . $ `vendor/onigmo-source/onigmo.h:531:9`!)) break;
3992 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_SUBEXP_OPENcxx . . $ TK_SUBEXP_OPEN.;
3993 break;
3994
3995 case ')':
3996 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_LPAREN_SUBEXPcxx . . $ `vendor/onigmo-source/onigmo.h:531:9`!)) break;
3997 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_SUBEXP_CLOSEcxx . . $ TK_SUBEXP_CLOSE.;
3998 break;
3999
4000 case '^':
4001 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_LINE_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:542:9`!)) break;
4002 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
4003 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = (IS_SINGLELINEcxx . . $ `vendor/onigmo-source/regint.h:381:9`!(env->option)
4004 ? ANCHOR_BEGIN_BUFcxx . . $ `vendor/onigmo-source/regint.h:527:9`! : ANCHOR_BEGIN_LINEcxx . . $ `vendor/onigmo-source/regint.h:528:9`!);
4005 break;
4006
4007 case '$':
4008 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_LINE_ANCHORcxx . . $ `vendor/onigmo-source/onigmo.h:542:9`!)) break;
4009 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_ANCHORcxx . . $ TK_ANCHOR.;
4010 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype. = (IS_SINGLELINEcxx . . $ `vendor/onigmo-source/regint.h:381:9`!(env->option)
4011 ? ANCHOR_SEMI_END_BUFcxx . . $ `vendor/onigmo-source/regint.h:531:9`! : ANCHOR_END_LINEcxx . . $ `vendor/onigmo-source/regint.h:532:9`!);
4012 break;
4013
4014 case '[':
4015 if (! IS_SYNTAX_OPcxx . . $ `vendor/onigmo-source/regparse.h:330:9`!(syn, ONIG_SYN_OP_BRACKET_CCcxx . . $ `vendor/onigmo-source/onigmo.h:536:9`!)) break;
4016 tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CC_OPENcxx . . $ TK_CC_OPEN.;
4017 break;
4018
4019 case ']':
4020 if (*src > env->patterncxx . . $ $anonymous_type_d68713db57daa8f0_11#pattern.) /* /].../ is allowed. */
4021 CLOSE_BRACKET_WITHOUT_ESC_WARNcxx . . $ CLOSE_BRACKET_WITHOUT_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"]");
4022 break;
4023
4024 case '#':
4025 if (IS_EXTENDcxx . . $ `vendor/onigmo-source/regint.h:384:9`!(env->option)) {
4026 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
4027 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
4028 if (ONIGENC_IS_CODE_NEWLINEcxx . . $ `vendor/onigmo-source/onigmo.h:374:9`!(enc, c))
4029 break;
4030 }
4031 goto start;
4032 break;
4033 }
4034 break;
4035
4036 case ' ': case '\t': case '\n': case '\r': case '\f':
4037 if (IS_EXTENDcxx . . $ `vendor/onigmo-source/regint.h:384:9`!(env->option))
4038 goto start;
4039 break;
4040
4041 default:
4042 /* string */
4043 break;
4044 }
4045 }
4046
4047 #ifdef USE_VARIABLE_META_CHARScxx . . $ `vendor/onigmo-source/regint.h:137:9`!
4048 out:
4049 #endif
4050 *src = p;
4051 return tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
4052 }
4053
4054 static int
4055 add_ctype_to_cc_by_rangecxx . . $ add_ctype_to_cc_by_range(1e07d7064ce7cf9a).(CClassNodecxx . . $ CClassNode#* cc, int ctype ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, int not,
4056 ScanEnvcxx . . $ ScanEnv#* env,
4057 OnigCodePointcxx . . $ OnigCodePoint# sb_out, const OnigCodePointcxx . . $ OnigCodePoint# mbr[])
4058 {
4059 int i, r;
4060 OnigCodePointcxx . . $ OnigCodePoint# j;
4061
4062 int n = ONIGENC_CODE_RANGE_NUMcxx . . $ `vendor/onigmo-source/onigmo.h:139:9`!(mbr);
4063
4064 if (not == 0) {
4065 for (i = 0; i < n; i++) {
4066 for (j = ONIGENC_CODE_RANGE_FROMcxx . . $ `vendor/onigmo-source/onigmo.h:140:9`!(mbr, i);
4067 j <= ONIGENC_CODE_RANGE_TOcxx . . $ `vendor/onigmo-source/onigmo.h:141:9`!(mbr, i); j++) {
4068 if (j >= sb_out) {
4069 if (j > ONIGENC_CODE_RANGE_FROMcxx . . $ `vendor/onigmo-source/onigmo.h:140:9`!(mbr, i)) {
4070 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, j,
4071 ONIGENC_CODE_RANGE_TOcxx . . $ `vendor/onigmo-source/onigmo.h:141:9`!(mbr, i));
4072 if (r != 0) return r;
4073 i++;
4074 }
4075
4076 goto sb_end;
4077 }
4078 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, j);
4079 }
4080 }
4081
4082 sb_end:
4083 for ( ; i < n; i++) {
4084 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env,
4085 ONIGENC_CODE_RANGE_FROMcxx . . $ `vendor/onigmo-source/onigmo.h:140:9`!(mbr, i),
4086 ONIGENC_CODE_RANGE_TOcxx . . $ `vendor/onigmo-source/onigmo.h:141:9`!(mbr, i));
4087 if (r != 0) return r;
4088 }
4089 }
4090 else {
4091 OnigCodePointcxx . . $ OnigCodePoint# prev = 0;
4092
4093 for (i = 0; i < n; i++) {
4094 for (j = prev;
4095 j < ONIGENC_CODE_RANGE_FROMcxx . . $ `vendor/onigmo-source/onigmo.h:140:9`!(mbr, i); j++) {
4096 if (j >= sb_out) {
4097 goto sb_end2;
4098 }
4099 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, j);
4100 }
4101 prev = ONIGENC_CODE_RANGE_TOcxx . . $ `vendor/onigmo-source/onigmo.h:141:9`!(mbr, i) + 1;
4102 }
4103 for (j = prev; j < sb_out; j++) {
4104 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, j);
4105 }
4106
4107 sb_end2:
4108 prev = sb_out;
4109
4110 for (i = 0; i < n; i++) {
4111 if (prev < ONIGENC_CODE_RANGE_FROMcxx . . $ `vendor/onigmo-source/onigmo.h:140:9`!(mbr, i)) {
4112 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, prev,
4113 ONIGENC_CODE_RANGE_FROMcxx . . $ `vendor/onigmo-source/onigmo.h:140:9`!(mbr, i) - 1);
4114 if (r != 0) return r;
4115 }
4116 prev = ONIGENC_CODE_RANGE_TOcxx . . $ `vendor/onigmo-source/onigmo.h:141:9`!(mbr, i) + 1;
4117 }
4118 if (prev < 0x7fffffff) {
4119 r = add_code_range_to_bufcxx . . $ add_code_range_to_buf(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, prev, 0x7fffffff);
4120 if (r != 0) return r;
4121 }
4122 }
4123
4124 return 0;
4125 }
4126
4127 static int
4128 add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(CClassNodecxx . . $ CClassNode#* cc, int ctype, int not, int ascii_range, ScanEnvcxx . . $ ScanEnv#* env)
4129 {
4130 int maxcode;
4131 int c, r;
4132 const OnigCodePointcxx . . $ OnigCodePoint# *ranges;
4133 OnigCodePointcxx . . $ OnigCodePoint# sb_out;
4134 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
4135
4136 r = ONIGENC_GET_CTYPE_CODE_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:403:9`!(enc, ctype, &sb_out, &ranges);
4137 if (r == 0) {
4138 if (ascii_range) {
4139 CClassNodecxx . . $ CClassNode# ccwork;
4140 initialize_cclasscxx . . $ initialize_cclass(c938e001dc161a33).(&ccwork);
4141 r = add_ctype_to_cc_by_rangecxx . . $ add_ctype_to_cc_by_range(1e07d7064ce7cf9a).(&ccwork, ctype, not, env, sb_out,
4142 ranges);
4143 if (r == 0) {
4144 if (not) {
4145 r = add_code_range_to_buf0cxx . . $ add_code_range_to_buf0(81ced504ee905dae).(&(ccwork.mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, 0x80, ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`!, FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!);
4146 }
4147 else {
4148 CClassNodecxx . . $ CClassNode# ccascii;
4149 initialize_cclasscxx . . $ initialize_cclass(c938e001dc161a33).(&ccascii);
4150 if (ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(env->enc) > 1) {
4151 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(ccascii.mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, 0x00, 0x7F);
4152 }
4153 else {
4154 bitset_set_rangecxx . . $ bitset_set_range(9e779080813d5c55).(env, ccascii.bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., 0x00, 0x7F);
4155 r = 0;
4156 }
4157 if (r == 0) {
4158 r = and_cclasscxx . . $ and_cclass(824806be7b3d2b69).(&ccwork, &ccascii, env);
4159 }
4160 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(ccascii.mbuf)) bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(ccascii.mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4161 }
4162 if (r == 0) {
4163 r = or_cclasscxx . . $ or_cclass(824806be7b3d2b69).(cc, &ccwork, env);
4164 }
4165 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(ccwork.mbuf)) bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(ccwork.mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4166 }
4167 }
4168 else {
4169 r = add_ctype_to_cc_by_rangecxx . . $ add_ctype_to_cc_by_range(1e07d7064ce7cf9a).(cc, ctype, not, env, sb_out, ranges);
4170 }
4171 return r;
4172 }
4173 else if (r != ONIG_NO_SUPPORT_CONFIGcxx . . $ `vendor/onigmo-source/onigmo.h:626:9`!) {
4174 return r;
4175 }
4176
4177 maxcode = ascii_range ? 0x80 : SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!;
4178 r = 0;
4179 switch (ctype) {
4180 case ONIGENC_CTYPE_ALPHAcxx . . $ `vendor/onigmo-source/onigmo.h:295:9`!:
4181 case ONIGENC_CTYPE_BLANKcxx . . $ `vendor/onigmo-source/onigmo.h:296:9`!:
4182 case ONIGENC_CTYPE_CNTRLcxx . . $ `vendor/onigmo-source/onigmo.h:297:9`!:
4183 case ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!:
4184 case ONIGENC_CTYPE_LOWERcxx . . $ `vendor/onigmo-source/onigmo.h:300:9`!:
4185 case ONIGENC_CTYPE_PUNCTcxx . . $ `vendor/onigmo-source/onigmo.h:302:9`!:
4186 case ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!:
4187 case ONIGENC_CTYPE_UPPERcxx . . $ `vendor/onigmo-source/onigmo.h:304:9`!:
4188 case ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!:
4189 case ONIGENC_CTYPE_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:308:9`!:
4190 case ONIGENC_CTYPE_ALNUMcxx . . $ `vendor/onigmo-source/onigmo.h:307:9`!:
4191 if (not != 0) {
4192 for (c = 0; c < SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!; c++) {
4193 if (! ONIGENC_IS_CODE_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:372:9`!(enc, (OnigCodePoint )c, ctype))
4194 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, c);
4195 }
4196 ADD_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:168:9`!(enc, cc->mbuf);
4197 }
4198 else {
4199 for (c = 0; c < SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!; c++) {
4200 if (ONIGENC_IS_CODE_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:372:9`!(enc, (OnigCodePoint )c, ctype))
4201 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, c);
4202 }
4203 }
4204 break;
4205
4206 case ONIGENC_CTYPE_GRAPHcxx . . $ `vendor/onigmo-source/onigmo.h:299:9`!:
4207 case ONIGENC_CTYPE_PRINTcxx . . $ `vendor/onigmo-source/onigmo.h:301:9`!:
4208 if (not != 0) {
4209 for (c = 0; c < SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!; c++) {
4210 if (! ONIGENC_IS_CODE_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:372:9`!(enc, (OnigCodePoint )c, ctype)
4211 || c >= maxcode)
4212 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, c);
4213 }
4214 if (ascii_range)
4215 ADD_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:168:9`!(enc, cc->mbuf);
4216 }
4217 else {
4218 for (c = 0; c < maxcode; c++) {
4219 if (ONIGENC_IS_CODE_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:372:9`!(enc, (OnigCodePoint )c, ctype))
4220 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, c);
4221 }
4222 if (! ascii_range)
4223 ADD_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:168:9`!(enc, cc->mbuf);
4224 }
4225 break;
4226
4227 case ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!:
4228 if (not == 0) {
4229 for (c = 0; c < maxcode; c++) {
4230 if (ONIGENC_IS_CODE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:400:9`!(enc, c)) BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, c);
4231 }
4232 if (! ascii_range)
4233 ADD_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:168:9`!(enc, cc->mbuf);
4234 }
4235 else {
4236 for (c = 0; c < SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!; c++) {
4237 if ((ONIGENC_CODE_TO_MBCLENcxx . . $ `vendor/onigmo-source/onigmo.h:367:9`!(enc, c) > 0) /* check invalid code point */
4238 && (! ONIGENC_IS_CODE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:400:9`!(enc, c) || c >= maxcode))
4239 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, c);
4240 }
4241 if (ascii_range)
4242 ADD_ALL_MULTI_BYTE_RANGEcxx . . $ `vendor/onigmo-source/regparse.c:168:9`!(enc, cc->mbuf);
4243 }
4244 break;
4245
4246 default:
4247 return ONIGERR_PARSER_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:631:9`!;
4248 break;
4249 }
4250
4251 return r;
4252 }
4253
4254 static int
4255 parse_posix_bracketcxx . . $ parse_posix_bracket(99d39b8de7b8cc56).(CClassNodecxx . . $ CClassNode#* cc, CClassNodecxx . . $ CClassNode#* asc_cc,
4256 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
4257 {
4258 #define POSIX_BRACKET_CHECK_LIMIT_LENGTHcxx . . $ `vendor/onigmo-source/regparse.c:4258:9`! 20
4259 #define POSIX_BRACKET_NAME_MIN_LENcxx . . $ `vendor/onigmo-source/regparse.c:4259:9`! 4
4260
4261 static const PosixBracketEntryTypecxx . . $ PosixBracketEntryType# PBS[] = {
4262 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("alnum", ONIGENC_CTYPE_ALNUMcxx . . $ `vendor/onigmo-source/onigmo.h:307:9`!),
4263 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("alpha", ONIGENC_CTYPE_ALPHAcxx . . $ `vendor/onigmo-source/onigmo.h:295:9`!),
4264 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("blank", ONIGENC_CTYPE_BLANKcxx . . $ `vendor/onigmo-source/onigmo.h:296:9`!),
4265 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("cntrl", ONIGENC_CTYPE_CNTRLcxx . . $ `vendor/onigmo-source/onigmo.h:297:9`!),
4266 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("digit", ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!),
4267 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("graph", ONIGENC_CTYPE_GRAPHcxx . . $ `vendor/onigmo-source/onigmo.h:299:9`!),
4268 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("lower", ONIGENC_CTYPE_LOWERcxx . . $ `vendor/onigmo-source/onigmo.h:300:9`!),
4269 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("print", ONIGENC_CTYPE_PRINTcxx . . $ `vendor/onigmo-source/onigmo.h:301:9`!),
4270 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("punct", ONIGENC_CTYPE_PUNCTcxx . . $ `vendor/onigmo-source/onigmo.h:302:9`!),
4271 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("space", ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!),
4272 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("upper", ONIGENC_CTYPE_UPPERcxx . . $ `vendor/onigmo-source/onigmo.h:304:9`!),
4273 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("xdigit", ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!),
4274 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("ascii", ONIGENC_CTYPE_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:308:9`!),
4275 POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("word", ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!),
4276 };
4277
4278 const PosixBracketEntryTypecxx . . $ PosixBracketEntryType# *pb;
4279 int not, i, r;
4280 int ascii_range;
4281 OnigCodePointcxx . . $ OnigCodePoint# c;
4282 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
4283 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = *src;
4284
4285 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('^')) {
4286 PINC_Scxx . . $ `vendor/onigmo-source/regparse.c:311:9`!;
4287 not = 1;
4288 }
4289 else
4290 not = 0;
4291
4292 if (onigenc_strlencxx . . $ onigenc_strlen(fb2245aa60ebfd32).(enc, p, end) < POSIX_BRACKET_NAME_MIN_LENcxx . . $ `vendor/onigmo-source/regparse.c:4259:9`! + 3)
4293 goto not_posix_bracket;
4294
4295 ascii_range = IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option) &&
4296 ! IS_POSIX_BRACKET_ALL_RANGEcxx . . $ `vendor/onigmo-source/regint.h:394:9`!(env->option);
4297 for (pb = PBS; pb < PBS + numberofcxx . . $ `vendor/onigmo-source/regenc.h:128:10`!(PBS); pb++) {
4298 if (onigenc_with_ascii_strncmpcxx . . $ onigenc_with_ascii_strncmp(85c57096c253fb5a).(enc, p, end, pb->namecxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#name., pb->lencxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#len.) == 0) {
4299 p = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )onigenc_stepcxx . . $ onigenc_step(d83499827e84afc2).(enc, p, end, pb->lencxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#len.);
4300 if (onigenc_with_ascii_strncmpcxx . . $ onigenc_with_ascii_strncmp(85c57096c253fb5a).(enc, p, end, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )":]", 2) != 0)
4301 return ONIGERR_INVALID_POSIX_BRACKET_TYPEcxx . . $ `vendor/onigmo-source/onigmo.h:661:9`!;
4302
4303 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, pb->ctypecxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#ctype., not, ascii_range, env);
4304 if (r != 0) return r;
4305
4306 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4307 if (pb->ctypecxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#ctype. != ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`! &&
4308 pb->ctypecxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#ctype. != ONIGENC_CTYPE_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:308:9`! &&
4309 !ascii_range)
4310 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(asc_cc, pb->ctypecxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#ctype., not, ascii_range, env);
4311 if (r != 0) return r;
4312 }
4313
4314 PINC_Scxx . . $ `vendor/onigmo-source/regparse.c:311:9`!; PINC_Scxx . . $ `vendor/onigmo-source/regparse.c:311:9`!;
4315 *src = p;
4316 return 0;
4317 }
4318 }
4319
4320 not_posix_bracket:
4321 c = 0;
4322 i = 0;
4323 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && ((c = PPEEKcxx . . $ `vendor/onigmo-source/regparse.c:319:9`!) != ':') && c != ']') {
4324 PINC_Scxx . . $ `vendor/onigmo-source/regparse.c:311:9`!;
4325 if (++i > POSIX_BRACKET_CHECK_LIMIT_LENGTHcxx . . $ `vendor/onigmo-source/regparse.c:4258:9`!) break;
4326 }
4327 if (c == ':' && ! PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
4328 PINC_Scxx . . $ `vendor/onigmo-source/regparse.c:311:9`!;
4329 if (! PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
4330 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
4331 if (c == ']')
4332 return ONIGERR_INVALID_POSIX_BRACKET_TYPEcxx . . $ `vendor/onigmo-source/onigmo.h:661:9`!;
4333 }
4334 }
4335
4336 return 1; /* 1: is not POSIX bracket, but no error. */
4337 }
4338
4339 static int
4340 fetch_char_property_to_ctypecxx . . $ fetch_char_property_to_ctype(aec2ed51b8afb2f7).(UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
4341 {
4342 int r;
4343 OnigCodePointcxx . . $ OnigCodePoint# c;
4344 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
4345 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *prev, *start, *p = *src;
4346
4347 r = 0;
4348 start = prev = p;
4349
4350 while (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
4351 prev = p;
4352 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(c);
4353 if (c == '}') {
4354 r = ONIGENC_PROPERTY_NAME_TO_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:369:9`!(enc, start, prev);
4355 if (r < 0) break;
4356
4357 *src = p;
4358 return r;
4359 }
4360 else if (c == '(' || c == ')' || c == '{' || c == '|') {
4361 r = ONIGERR_INVALID_CHAR_PROPERTY_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:688:9`!;
4362 break;
4363 }
4364 }
4365
4366 onig_scan_env_set_error_stringcxx . . $ onig_scan_env_set_error_string(c0cd2a0033022035).(env, r, *src, prev);
4367 return r;
4368 }
4369
4370 static int cclass_case_foldcxx . . $ cclass_case_fold(3716fe709b96542e).(Nodecxx . . $ Node#** np, CClassNodecxx . . $ CClassNode#* cc, CClassNodecxx . . $ CClassNode#* asc_cc, ScanEnvcxx . . $ ScanEnv#* env);
4371
4372 static int
4373 parse_char_propertycxx . . $ parse_char_property(184e4938daada91e).(Nodecxx . . $ Node#** np, OnigTokencxx . . $ OnigToken#* tok, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end,
4374 ScanEnvcxx . . $ ScanEnv#* env)
4375 {
4376 int r, ctype;
4377 CClassNodecxx . . $ CClassNode#* cc;
4378
4379 ctype = fetch_char_property_to_ctypecxx . . $ fetch_char_property_to_ctype(aec2ed51b8afb2f7).(src, end, env);
4380 if (ctype < 0) return ctype;
4381
4382 *np = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
4383 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
4384 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(*np);
4385 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, ctype, 0, 0, env);
4386 if (r != 0) return r;
4387 if (tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. != 0) NCCLASS_SET_NOTcxx . . $ `vendor/onigmo-source/regint.h:794:9`!(cc);
4388
4389 if (IS_IGNORECASEcxx . . $ `vendor/onigmo-source/regint.h:383:9`!(env->option)) {
4390 if (ctype != ONIGENC_CTYPE_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:308:9`!)
4391 r = cclass_case_foldcxx . . $ cclass_case_fold(3716fe709b96542e).(np, cc, cc, env);
4392 }
4393 return r;
4394 }
4395
4396
4397 enum CCSTATEcxx . . $ CCSTATE# {
4398 CCS_VALUEcxx . . $ CCS_VALUE.,
4399 CCS_RANGEcxx . . $ CCS_RANGE.,
4400 CCS_COMPLETEcxx . . $ CCS_COMPLETE.,
4401 CCS_STARTcxx . . $ CCS_START.
4402 };
4403
4404 enum CCVALTYPEcxx . . $ CCVALTYPE# {
4405 CCV_SBcxx . . $ CCV_SB.,
4406 CCV_CODE_POINTcxx . . $ CCV_CODE_POINT.,
4407 CCV_CLASScxx . . $ CCV_CLASS.
4408 };
4409
4410 static int
4411 next_state_classcxx . . $ next_state_class(52b0df3bb769b188).(CClassNodecxx . . $ CClassNode#* cc, CClassNodecxx . . $ CClassNode#* asc_cc,
4412 OnigCodePointcxx . . $ OnigCodePoint#* vs, enum CCVALTYPEcxx . . $ CCVALTYPE#* type,
4413 enum CCSTATEcxx . . $ CCSTATE#* state, ScanEnvcxx . . $ ScanEnv#* env)
4414 {
4415 int r;
4416
4417 if (*state == CCS_RANGEcxx . . $ CCS_RANGE.)
4418 return ONIGERR_CHAR_CLASS_VALUE_AT_END_OF_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:651:9`!;
4419
4420 if (*state == CCS_VALUEcxx . . $ CCS_VALUE. && *type != CCV_CLASScxx . . $ CCV_CLASS.) {
4421 if (*type == CCV_SBcxx . . $ CCV_SB.) {
4422 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, (int )(*vs));
4423 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc))
4424 BITSET_SET_BITcxx . . $ `vendor/onigmo-source/regint.h:436:9`!(asc_cc->bs, (int )(*vs));
4425 }
4426 else if (*type == CCV_CODE_POINTcxx . . $ CCV_CODE_POINT.) {
4427 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, *vs, *vs);
4428 if (r < 0) return r;
4429 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4430 r = add_code_range0cxx . . $ add_code_range0(81ced504ee905dae).(&(asc_cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, *vs, *vs, 0);
4431 if (r < 0) return r;
4432 }
4433 }
4434 }
4435
4436 *state = CCS_VALUEcxx . . $ CCS_VALUE.;
4437 *type = CCV_CLASScxx . . $ CCV_CLASS.;
4438 return 0;
4439 }
4440
4441 static int
4442 next_state_valcxx . . $ next_state_val(bfc98f8becc2551c).(CClassNodecxx . . $ CClassNode#* cc, CClassNodecxx . . $ CClassNode#* asc_cc,
4443 OnigCodePointcxx . . $ OnigCodePoint# *vs, OnigCodePointcxx . . $ OnigCodePoint# v,
4444 int* vs_israw, int v_israw,
4445 enum CCVALTYPEcxx . . $ CCVALTYPE# intype, enum CCVALTYPEcxx . . $ CCVALTYPE#* type,
4446 enum CCSTATEcxx . . $ CCSTATE#* state, ScanEnvcxx . . $ ScanEnv#* env)
4447 {
4448 int r;
4449
4450 switch (*state) {
4451 case CCS_VALUEcxx . . $ CCS_VALUE.:
4452 if (*type == CCV_SBcxx . . $ CCV_SB.) {
4453 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, (int )(*vs));
4454 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc))
4455 BITSET_SET_BITcxx . . $ `vendor/onigmo-source/regint.h:436:9`!(asc_cc->bs, (int )(*vs));
4456 }
4457 else if (*type == CCV_CODE_POINTcxx . . $ CCV_CODE_POINT.) {
4458 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, *vs, *vs);
4459 if (r < 0) return r;
4460 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4461 r = add_code_range0cxx . . $ add_code_range0(81ced504ee905dae).(&(asc_cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, *vs, *vs, 0);
4462 if (r < 0) return r;
4463 }
4464 }
4465 break;
4466
4467 case CCS_RANGEcxx . . $ CCS_RANGE.:
4468 if (intype == *type) {
4469 if (intype == CCV_SBcxx . . $ CCV_SB.) {
4470 if (*vs > 0xff || v > 0xff)
4471 return ONIGERR_INVALID_CODE_POINT_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:689:9`!;
4472
4473 if (*vs > v) {
4474 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CCcxx . . $ `vendor/onigmo-source/onigmo.h:604:9`!))
4475 goto ccs_range_end;
4476 else
4477 return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASScxx . . $ `vendor/onigmo-source/onigmo.h:669:9`!;
4478 }
4479 bitset_set_rangecxx . . $ bitset_set_range(9e779080813d5c55).(env, cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., (int )*vs, (int )v);
4480 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc))
4481 bitset_set_rangecxx . . $ bitset_set_range(9e779080813d5c55).(env, asc_cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., (int )*vs, (int )v);
4482 }
4483 else {
4484 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, *vs, v);
4485 if (r < 0) return r;
4486 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4487 r = add_code_range0cxx . . $ add_code_range0(81ced504ee905dae).(&(asc_cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, *vs, v, 0);
4488 if (r < 0) return r;
4489 }
4490 }
4491 }
4492 else {
4493 #if 0
4494 if (intype == CCV_CODE_POINT && *type == CCV_SB) {
4495 #endif
4496 if (*vs > v) {
4497 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CCcxx . . $ `vendor/onigmo-source/onigmo.h:604:9`!))
4498 goto ccs_range_end;
4499 else
4500 return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASScxx . . $ `vendor/onigmo-source/onigmo.h:669:9`!;
4501 }
4502 bitset_set_rangecxx . . $ bitset_set_range(9e779080813d5c55).(env, cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., (int )*vs, (int )(v < 0xff ? v : 0xff));
4503 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, (OnigCodePointcxx . . $ OnigCodePoint# )*vs, v);
4504 if (r < 0) return r;
4505 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4506 bitset_set_rangecxx . . $ bitset_set_range(9e779080813d5c55).(env, asc_cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., (int )*vs, (int )(v < 0xff ? v : 0xff));
4507 r = add_code_range0cxx . . $ add_code_range0(81ced504ee905dae).(&(asc_cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, (OnigCodePointcxx . . $ OnigCodePoint# )*vs, v, 0);
4508 if (r < 0) return r;
4509 }
4510 #if 0
4511 }
4512 else
4513 return ONIGERR_MISMATCH_CODE_LENGTH_IN_CLASS_RANGE;
4514 #endif
4515 }
4516 ccs_range_end:
4517 *state = CCS_COMPLETEcxx . . $ CCS_COMPLETE.;
4518 break;
4519
4520 case CCS_COMPLETEcxx . . $ CCS_COMPLETE.:
4521 case CCS_STARTcxx . . $ CCS_START.:
4522 *state = CCS_VALUEcxx . . $ CCS_VALUE.;
4523 break;
4524
4525 default:
4526 break;
4527 }
4528
4529 *vs_israw = v_israw;
4530 *vs = v;
4531 *type = intype;
4532 return 0;
4533 }
4534
4535 static int
4536 code_exist_checkcxx . . $ code_exist_check(1a308f5a42ebe26e).(OnigCodePointcxx . . $ OnigCodePoint# c, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* from, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, int ignore_escaped,
4537 ScanEnvcxx . . $ ScanEnv#* env)
4538 {
4539 int in_esc;
4540 OnigCodePointcxx . . $ OnigCodePoint# code;
4541 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
4542 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = from;
4543
4544 in_esc = 0;
4545 while (! PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) {
4546 if (ignore_escaped && in_esc) {
4547 in_esc = 0;
4548 }
4549 else {
4550 PFETCH_Scxx . . $ `vendor/onigmo-source/regparse.c:314:9`!(code);
4551 if (code == c) return 1;
4552 if (code == MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(env->syntax)) in_esc = 1;
4553 }
4554 }
4555 return 0;
4556 }
4557
4558 static int
4559 parse_char_classcxx . . $ parse_char_class(e5be2277c15ad540).(Nodecxx . . $ Node#** np, Nodecxx . . $ Node#** asc_np, OnigTokencxx . . $ OnigToken#* tok, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end,
4560 ScanEnvcxx . . $ ScanEnv#* env)
4561 {
4562 int r, neg, len, fetched, and_start;
4563 OnigCodePointcxx . . $ OnigCodePoint# v, vs;
4564 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p;
4565 Nodecxx . . $ Node#* node;
4566 Nodecxx . . $ Node#* asc_node;
4567 CClassNodecxx . . $ CClassNode# *cc, *prev_cc;
4568 CClassNodecxx . . $ CClassNode# *asc_cc, *asc_prev_cc;
4569 CClassNodecxx . . $ CClassNode# work_cc, asc_work_cc;
4570
4571 enum CCSTATEcxx . . $ CCSTATE# state;
4572 enum CCVALTYPEcxx . . $ CCVALTYPE# val_type, in_type;
4573 int val_israw, in_israw;
4574
4575 env->parse_depthcxx . . $ $anonymous_type_d68713db57daa8f0_11#parse_depth.++;
4576 if (env->parse_depthcxx . . $ $anonymous_type_d68713db57daa8f0_11#parse_depth. > ParseDepthLimitcxx . . $ ParseDepthLimit.)
4577 return ONIGERR_PARSE_DEPTH_LIMIT_OVERcxx . . $ `vendor/onigmo-source/onigmo.h:636:9`!;
4578 prev_cc = asc_prev_cc = (CClassNodecxx . . $ CClassNode#* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
4579 *np = *asc_np = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
4580 r = fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, src, end, env);
4581 if (r == TK_CHARcxx . . $ TK_CHAR. && tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c. == '^' && tok->escapedcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#escaped. == 0) {
4582 neg = 1;
4583 r = fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, src, end, env);
4584 }
4585 else {
4586 neg = 0;
4587 }
4588
4589 if (r < 0) return r;
4590 if (r == TK_CC_CLOSEcxx . . $ TK_CC_CLOSE.) {
4591 if (! code_exist_checkcxx . . $ code_exist_check(1a308f5a42ebe26e).((OnigCodePointcxx . . $ OnigCodePoint# )']',
4592 *src, env->pattern_endcxx . . $ $anonymous_type_d68713db57daa8f0_11#pattern_end., 1, env))
4593 return ONIGERR_EMPTY_CHAR_CLASScxx . . $ `vendor/onigmo-source/onigmo.h:644:9`!;
4594
4595 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"]");
4596 r = tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. = TK_CHARcxx . . $ TK_CHAR.; /* allow []...] */
4597 }
4598
4599 *np = node = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
4600 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(node);
4601 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(node);
4602
4603 if (IS_IGNORECASEcxx . . $ `vendor/onigmo-source/regint.h:383:9`!(env->option)) {
4604 *asc_np = asc_node = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
4605 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(asc_node);
4606 asc_cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(asc_node);
4607 }
4608 else {
4609 asc_node = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
4610 asc_cc = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
4611 }
4612
4613 and_start = 0;
4614 state = CCS_STARTcxx . . $ CCS_START.;
4615 p = *src;
4616 while (r != TK_CC_CLOSEcxx . . $ TK_CC_CLOSE.) {
4617 fetched = 0;
4618 switch (r) {
4619 case TK_CHARcxx . . $ TK_CHAR.:
4620 if ((tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code. >= SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!) ||
4621 (len = ONIGENC_CODE_TO_MBCLENcxx . . $ `vendor/onigmo-source/onigmo.h:367:9`!(env->enc, tok->u.c)) > 1) {
4622 in_type = CCV_CODE_POINTcxx . . $ CCV_CODE_POINT.;
4623 }
4624 else if (len < 0) {
4625 r = len;
4626 goto err;
4627 }
4628 else {
4629 sb_char:
4630 in_type = CCV_SBcxx . . $ CCV_SB.;
4631 }
4632 v = (OnigCodePointcxx . . $ OnigCodePoint# )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.;
4633 in_israw = 0;
4634 goto val_entry2;
4635 break;
4636
4637 case TK_RAW_BYTEcxx . . $ TK_RAW_BYTE.:
4638 /* tok->base != 0 : octal or hexadec. */
4639 if (! ONIGENC_IS_SINGLEBYTEcxx . . $ `vendor/onigmo-source/onigmo.h:318:9`!(env->enc) && tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. != 0) {
4640 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[ONIGENC_CODE_TO_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:289:9`!];
4641 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* bufe = buf + ONIGENC_CODE_TO_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:289:9`!;
4642 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* psave = p;
4643 int i, base = tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base.;
4644
4645 buf[0] = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.;
4646 for (i = 1; i < ONIGENC_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:362:9`!(env->enc); i++) {
4647 r = fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, &p, end, env);
4648 if (r < 0) goto err;
4649 if (r != TK_RAW_BYTEcxx . . $ TK_RAW_BYTE. || tok->basecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#base. != base) {
4650 fetched = 1;
4651 break;
4652 }
4653 buf[i] = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.;
4654 }
4655
4656 if (i < ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(env->enc)) {
4657 r = ONIGERR_TOO_SHORT_MULTI_BYTE_STRINGcxx . . $ `vendor/onigmo-source/onigmo.h:672:9`!;
4658 goto err;
4659 }
4660
4661 len = enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(env->enc, buf, buf + i);
4662 if (i < len) {
4663 r = ONIGERR_TOO_SHORT_MULTI_BYTE_STRINGcxx . . $ `vendor/onigmo-source/onigmo.h:672:9`!;
4664 goto err;
4665 }
4666 else if (i > len) { /* fetch back */
4667 p = psave;
4668 for (i = 1; i < len; i++) {
4669 (void)fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, &p, end, env);
4670 /* no need to check the retun value (already checked above) */
4671 }
4672 fetched = 0;
4673 }
4674
4675 if (i == 1) {
4676 v = (OnigCodePointcxx . . $ OnigCodePoint# )buf[0];
4677 goto raw_single;
4678 }
4679 else {
4680 v = ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(env->enc, buf, bufe);
4681 in_type = CCV_CODE_POINTcxx . . $ CCV_CODE_POINT.;
4682 }
4683 }
4684 else {
4685 v = (OnigCodePointcxx . . $ OnigCodePoint# )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.;
4686 raw_single:
4687 in_type = CCV_SBcxx . . $ CCV_SB.;
4688 }
4689 in_israw = 1;
4690 goto val_entry2;
4691 break;
4692
4693 case TK_CODE_POINTcxx . . $ TK_CODE_POINT.:
4694 v = tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code.;
4695 in_israw = 1;
4696 val_entry:
4697 len = ONIGENC_CODE_TO_MBCLENcxx . . $ `vendor/onigmo-source/onigmo.h:367:9`!(env->enc, v);
4698 if (len < 0) {
4699 r = len;
4700 goto err;
4701 }
4702 in_type = (len == 1 ? CCV_SBcxx . . $ CCV_SB. : CCV_CODE_POINTcxx . . $ CCV_CODE_POINT.);
4703 val_entry2:
4704 r = next_state_valcxx . . $ next_state_val(bfc98f8becc2551c).(cc, asc_cc, &vs, v, &val_israw, in_israw, in_type, &val_type,
4705 &state, env);
4706 if (r != 0) goto err;
4707 break;
4708
4709 case TK_POSIX_BRACKET_OPENcxx . . $ TK_POSIX_BRACKET_OPEN.:
4710 r = parse_posix_bracketcxx . . $ parse_posix_bracket(99d39b8de7b8cc56).(cc, asc_cc, &p, end, env);
4711 if (r < 0) goto err;
4712 if (r == 1) { /* is not POSIX bracket */
4713 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"[");
4714 p = tok->backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp.;
4715 v = (OnigCodePointcxx . . $ OnigCodePoint# )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.;
4716 in_israw = 0;
4717 goto val_entry;
4718 }
4719 goto next_class;
4720 break;
4721
4722 case TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.:
4723 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype., tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not.,
4724 IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option), env);
4725 if (r != 0) return r;
4726 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4727 if (tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype. != ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!)
4728 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(asc_cc, tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype., tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not.,
4729 IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option), env);
4730 if (r != 0) return r;
4731 }
4732
4733 next_class:
4734 r = next_state_classcxx . . $ next_state_class(52b0df3bb769b188).(cc, asc_cc, &vs, &val_type, &state, env);
4735 if (r != 0) goto err;
4736 break;
4737
4738 case TK_CHAR_PROPERTYcxx . . $ TK_CHAR_PROPERTY.:
4739 {
4740 int ctype;
4741
4742 ctype = fetch_char_property_to_ctypecxx . . $ fetch_char_property_to_ctype(aec2ed51b8afb2f7).(&p, end, env);
4743 if (ctype < 0) return ctype;
4744 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, ctype, tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not., 0, env);
4745 if (r != 0) return r;
4746 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4747 if (ctype != ONIGENC_CTYPE_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:308:9`!)
4748 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(asc_cc, ctype, tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not., 0, env);
4749 if (r != 0) return r;
4750 }
4751 goto next_class;
4752 }
4753 break;
4754
4755 case TK_CC_RANGEcxx . . $ TK_CC_RANGE.:
4756 if (state == CCS_VALUEcxx . . $ CCS_VALUE.) {
4757 r = fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, &p, end, env);
4758 if (r < 0) goto err;
4759 fetched = 1;
4760 if (r == TK_CC_CLOSEcxx . . $ TK_CC_CLOSE.) { /* allow [x-] */
4761 range_end_val:
4762 v = (OnigCodePointcxx . . $ OnigCodePoint# )'-';
4763 in_israw = 0;
4764 goto val_entry;
4765 }
4766 else if (r == TK_CC_ANDcxx . . $ TK_CC_AND.) {
4767 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"-");
4768 goto range_end_val;
4769 }
4770 state = CCS_RANGEcxx . . $ CCS_RANGE.;
4771 }
4772 else if (state == CCS_STARTcxx . . $ CCS_START.) {
4773 /* [-xa] is allowed */
4774 v = (OnigCodePointcxx . . $ OnigCodePoint# )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.;
4775 in_israw = 0;
4776
4777 r = fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, &p, end, env);
4778 if (r < 0) goto err;
4779 fetched = 1;
4780 /* [--x] or [a&&-x] is warned. */
4781 if (r == TK_CC_RANGEcxx . . $ TK_CC_RANGE. || and_start != 0)
4782 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"-");
4783
4784 goto val_entry;
4785 }
4786 else if (state == CCS_RANGEcxx . . $ CCS_RANGE.) {
4787 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"-");
4788 goto sb_char; /* [!--x] is allowed */
4789 }
4790 else { /* CCS_COMPLETE */
4791 r = fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, &p, end, env);
4792 if (r < 0) goto err;
4793 fetched = 1;
4794 if (r == TK_CC_CLOSEcxx . . $ TK_CC_CLOSE.) goto range_end_val; /* allow [a-b-] */
4795 else if (r == TK_CC_ANDcxx . . $ TK_CC_AND.) {
4796 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"-");
4797 goto range_end_val;
4798 }
4799
4800 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CCcxx . . $ `vendor/onigmo-source/onigmo.h:605:9`!)) {
4801 CC_ESC_WARNcxx . . $ CC_ESC_WARN(4019c3b822e7a577).(env, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )"-");
4802 goto range_end_val; /* [0-9-a] is allowed as [0-9\-a] */
4803 }
4804 r = ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASScxx . . $ `vendor/onigmo-source/onigmo.h:653:9`!;
4805 goto err;
4806 }
4807 break;
4808
4809 case TK_CC_CC_OPENcxx . . $ TK_CC_CC_OPEN.: /* [ */
4810 {
4811 Nodecxx . . $ Node# *anode, *aasc_node;
4812 CClassNodecxx . . $ CClassNode#* acc;
4813
4814 r = parse_char_classcxx . . $ parse_char_class(e5be2277c15ad540).(&anode, &aasc_node, tok, &p, end, env);
4815 if (r == 0) {
4816 acc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(anode);
4817 r = or_cclasscxx . . $ or_cclass(824806be7b3d2b69).(cc, acc, env);
4818 }
4819 if (r == 0 && IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(aasc_node)) {
4820 acc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(aasc_node);
4821 r = or_cclasscxx . . $ or_cclass(824806be7b3d2b69).(asc_cc, acc, env);
4822 }
4823 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(anode);
4824 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(aasc_node);
4825 if (r != 0) goto err;
4826 }
4827 break;
4828
4829 case TK_CC_ANDcxx . . $ TK_CC_AND.: /* && */
4830 {
4831 if (state == CCS_VALUEcxx . . $ CCS_VALUE.) {
4832 r = next_state_valcxx . . $ next_state_val(bfc98f8becc2551c).(cc, asc_cc, &vs, 0, &val_israw, 0, val_type,
4833 &val_type, &state, env);
4834 if (r != 0) goto err;
4835 }
4836 /* initialize local variables */
4837 and_start = 1;
4838 state = CCS_STARTcxx . . $ CCS_START.;
4839
4840 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(prev_cc)) {
4841 r = and_cclasscxx . . $ and_cclass(824806be7b3d2b69).(prev_cc, cc, env);
4842 if (r != 0) goto err;
4843 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4844 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4845 r = and_cclasscxx . . $ and_cclass(824806be7b3d2b69).(asc_prev_cc, asc_cc, env);
4846 if (r != 0) goto err;
4847 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(asc_cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4848 }
4849 }
4850 else {
4851 prev_cc = cc;
4852 cc = &work_cc;
4853 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4854 asc_prev_cc = asc_cc;
4855 asc_cc = &asc_work_cc;
4856 }
4857 }
4858 initialize_cclasscxx . . $ initialize_cclass(c938e001dc161a33).(cc);
4859 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc))
4860 initialize_cclasscxx . . $ initialize_cclass(c938e001dc161a33).(asc_cc);
4861 }
4862 break;
4863
4864 case TK_EOTcxx . . $ TK_EOT.:
4865 r = ONIGERR_PREMATURE_END_OF_CHAR_CLASScxx . . $ `vendor/onigmo-source/onigmo.h:645:9`!;
4866 goto err;
4867 break;
4868 default:
4869 r = ONIGERR_PARSER_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:631:9`!;
4870 goto err;
4871 break;
4872 }
4873
4874 if (fetched)
4875 r = tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
4876 else {
4877 r = fetch_token_in_cccxx . . $ fetch_token_in_cc(de72a1a7a5477f35).(tok, &p, end, env);
4878 if (r < 0) goto err;
4879 }
4880 }
4881
4882 if (state == CCS_VALUEcxx . . $ CCS_VALUE.) {
4883 r = next_state_valcxx . . $ next_state_val(bfc98f8becc2551c).(cc, asc_cc, &vs, 0, &val_israw, 0, val_type,
4884 &val_type, &state, env);
4885 if (r != 0) goto err;
4886 }
4887
4888 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(prev_cc)) {
4889 r = and_cclasscxx . . $ and_cclass(824806be7b3d2b69).(prev_cc, cc, env);
4890 if (r != 0) goto err;
4891 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4892 cc = prev_cc;
4893 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc)) {
4894 r = and_cclasscxx . . $ and_cclass(824806be7b3d2b69).(asc_prev_cc, asc_cc, env);
4895 if (r != 0) goto err;
4896 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(asc_cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4897 asc_cc = asc_prev_cc;
4898 }
4899 }
4900
4901 if (neg != 0) {
4902 NCCLASS_SET_NOTcxx . . $ `vendor/onigmo-source/regint.h:794:9`!(cc);
4903 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc))
4904 NCCLASS_SET_NOTcxx . . $ `vendor/onigmo-source/regint.h:794:9`!(asc_cc);
4905 }
4906 else {
4907 NCCLASS_CLEAR_NOTcxx . . $ `vendor/onigmo-source/regint.h:795:9`!(cc);
4908 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc))
4909 NCCLASS_CLEAR_NOTcxx . . $ `vendor/onigmo-source/regint.h:795:9`!(asc_cc);
4910 }
4911 if (IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(cc) &&
4912 IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CCcxx . . $ `vendor/onigmo-source/onigmo.h:602:9`!)) {
4913 int is_empty;
4914
4915 is_empty = (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(cc->mbuf) ? 1 : 0);
4916 if (is_empty != 0)
4917 BITSET_IS_EMPTYcxx . . $ `vendor/onigmo-source/regparse.c:181:9`!(cc->bs, is_empty);
4918
4919 if (is_empty == 0) {
4920 #define NEWLINE_CODEcxx . . $ `vendor/onigmo-source/regparse.c:4920:9`! 0x0a
4921
4922 if (ONIGENC_IS_CODE_NEWLINEcxx . . $ `vendor/onigmo-source/onigmo.h:374:9`!(env->enc, NEWLINE_CODEcxx . . $ `vendor/onigmo-source/regparse.c:4920:9`!)) {
4923 if (ONIGENC_CODE_TO_MBCLENcxx . . $ `vendor/onigmo-source/onigmo.h:367:9`!(env->enc, NEWLINE_CODEcxx . . $ `vendor/onigmo-source/regparse.c:4920:9`!) == 1)
4924 BITSET_SET_BIT_CHKDUPcxx . . $ `vendor/onigmo-source/regparse.c:176:9`!(cc->bs, NEWLINE_CODEcxx . . $ `vendor/onigmo-source/regparse.c:4920:9`!);
4925 else {
4926 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, NEWLINE_CODEcxx . . $ `vendor/onigmo-source/regparse.c:4920:9`!, NEWLINE_CODEcxx . . $ `vendor/onigmo-source/regparse.c:4920:9`!);
4927 if (r < 0) goto err;
4928 }
4929 }
4930 }
4931 }
4932 *src = p;
4933 env->parse_depthcxx . . $ $anonymous_type_d68713db57daa8f0_11#parse_depth.--;
4934 return 0;
4935
4936 err:
4937 if (cc != NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(*np))
4938 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4939 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(asc_cc) && (asc_cc != NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(*asc_np)))
4940 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(asc_cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
4941 return r;
4942 }
4943
4944 static int parse_subexpcxx . . $ parse_subexp(93dd89945eafe610).(Nodecxx . . $ Node#** top, OnigTokencxx . . $ OnigToken#* tok, int term,
4945 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env);
4946
4947 static int
4948 parse_enclosecxx . . $ parse_enclose(93dd89945eafe610).(Nodecxx . . $ Node#** np, OnigTokencxx . . $ OnigToken#* tok, int term, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end,
4949 ScanEnvcxx . . $ ScanEnv#* env)
4950 {
4951 int r = 0, num;
4952 Nodecxx . . $ Node# *target, *work1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, *work2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
4953 OnigOptionTypecxx . . $ OnigOptionType# option;
4954 OnigCodePointcxx . . $ OnigCodePoint# c;
4955 OnigEncodingcxx . . $ OnigEncoding# enc = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.;
4956
4957 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
4958 int list_capture;
4959 #endif
4960
4961 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *src;
4962 PFETCH_READYcxx . . $ `vendor/onigmo-source/regparse.c:295:10`!;
4963
4964 *np = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
4965 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIScxx . . $ `vendor/onigmo-source/onigmo.h:658:9`!;
4966
4967 option = env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option.;
4968 if (PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!('?') &&
4969 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_GROUP_EFFECTcxx . . $ `vendor/onigmo-source/onigmo.h:553:9`!)) {
4970 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
4971 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_IN_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:659:9`!;
4972
4973 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
4974 switch (c) {
4975 case ':': /* (?:...) grouping only */
4976 group:
4977 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, &p, end, env);
4978 if (r < 0) return r;
4979 r = parse_subexpcxx . . $ parse_subexp(93dd89945eafe610).(np, tok, term, &p, end, env);
4980 if (r < 0) return r;
4981 *src = p;
4982 return 1; /* group */
4983 break;
4984
4985 case '=':
4986 *np = onig_node_new_anchorcxx . . $ onig_node_new_anchor(27164cd17c3dc213).(ANCHOR_PREC_READcxx . . $ `vendor/onigmo-source/regint.h:538:9`!);
4987 break;
4988 case '!': /* preceding read */
4989 *np = onig_node_new_anchorcxx . . $ onig_node_new_anchor(27164cd17c3dc213).(ANCHOR_PREC_READ_NOTcxx . . $ `vendor/onigmo-source/regint.h:539:9`!);
4990 break;
4991 case '>': /* (?>...) stop backtrack */
4992 *np = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_STOP_BACKTRACKcxx . . $ `vendor/onigmo-source/regparse.h:96:9`!);
4993 break;
4994 case '~': /* (?~...) absent operator */
4995 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_TILDE_ABSENTcxx . . $ `vendor/onigmo-source/onigmo.h:583:9`!)) {
4996 *np = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_ABSENTcxx . . $ `vendor/onigmo-source/regparse.h:98:9`!);
4997 }
4998 else {
4999 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5000 }
5001 break;
5002
5003 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
5004 case '\'':
5005 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:559:9`!)) {
5006 goto named_group1;
5007 }
5008 else
5009 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5010 break;
5011
5012 # ifdef USE_CAPITAL_P_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:72:9`!
5013 case 'P': /* (?P<name>...) */
5014 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! &&
5015 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_CAPITAL_P_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:582:9`!)) {
5016 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
5017 if (c == '<') goto named_group1;
5018 }
5019 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5020 break;
5021 # endif
5022 #endif
5023
5024 case '<': /* look behind (?<=...), (?<!...) */
5025 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIScxx . . $ `vendor/onigmo-source/onigmo.h:658:9`!;
5026 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
5027 if (c == '=')
5028 *np = onig_node_new_anchorcxx . . $ onig_node_new_anchor(27164cd17c3dc213).(ANCHOR_LOOK_BEHINDcxx . . $ `vendor/onigmo-source/regint.h:540:9`!);
5029 else if (c == '!')
5030 *np = onig_node_new_anchorcxx . . $ onig_node_new_anchor(27164cd17c3dc213).(ANCHOR_LOOK_BEHIND_NOTcxx . . $ `vendor/onigmo-source/regint.h:541:9`!);
5031 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
5032 else { /* (?<name>...) */
5033 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:559:9`!)) {
5034 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name;
5035 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name_end;
5036
5037 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
5038 c = '<';
5039
5040 named_group1:
5041 list_capture = 0;
5042
5043 # ifdef USE_CAPTURE_HISTORYcxx . . $ `vendor/onigmo-source/regint.h:135:10`!
5044 named_group2:
5045 # endif
5046 name = p;
5047 r = fetch_namecxx . . $ fetch_name(245574cfb1388599).((OnigCodePointcxx . . $ OnigCodePoint# )c, &p, end, &name_end, env, &num, 0);
5048 if (r < 0) return r;
5049
5050 num = scan_env_add_mem_entrycxx . . $ scan_env_add_mem_entry(eca7cc003a536110).(env);
5051 if (num < 0) return num;
5052 if (list_capture != 0 && num >= (int )BIT_STATUS_BITS_NUMcxx . . $ `vendor/onigmo-source/regint.h:354:9`!)
5053 return ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORYcxx . . $ `vendor/onigmo-source/onigmo.h:687:9`!;
5054
5055 r = name_addcxx . . $ name_add(610c9a6cd8dae63d).(env->regcxx . . $ $anonymous_type_d68713db57daa8f0_11#reg., name, name_end, num, env);
5056 if (r != 0) return r;
5057 *np = node_new_enclose_memorycxx . . $ node_new_enclose_memory(b76236d99bedb036).(env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option., 1);
5058 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
5059 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->regnumcxx . . $ $anonymous_type_d68713db57daa8f0_2#regnum. = num;
5060 if (list_capture != 0)
5061 BIT_STATUS_ON_AT_SIMPLEcxx . . $ `vendor/onigmo-source/regint.h:367:9`!(env->capture_history, num);
5062 env->num_namedcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_named.++;
5063 }
5064 else {
5065 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5066 }
5067 }
5068 #else
5069 else {
5070 return ONIGERR_UNDEFINED_GROUP_OPTION;
5071 }
5072 #endif
5073 break;
5074
5075 #ifdef USE_CAPTURE_HISTORYcxx . . $ `vendor/onigmo-source/regint.h:135:10`!
5076 case '@':
5077 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORYcxx . . $ `vendor/onigmo-source/onigmo.h:562:9`!)) {
5078 # ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
5079 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! &&
5080 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_LT_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:559:9`!)) {
5081 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
5082 if (c == '<' || c == '\'') {
5083 list_capture = 1;
5084 goto named_group2; /* (?@<name>...) */
5085 }
5086 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
5087 }
5088 # endif
5089 *np = node_new_enclose_memorycxx . . $ node_new_enclose_memory(b76236d99bedb036).(env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option., 0);
5090 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
5091 num = scan_env_add_mem_entrycxx . . $ scan_env_add_mem_entry(eca7cc003a536110).(env);
5092 if (num < 0) return num;
5093 if (num >= (int )BIT_STATUS_BITS_NUMcxx . . $ `vendor/onigmo-source/regint.h:354:9`!)
5094 return ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORYcxx . . $ `vendor/onigmo-source/onigmo.h:687:9`!;
5095
5096 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->regnumcxx . . $ $anonymous_type_d68713db57daa8f0_2#regnum. = num;
5097 BIT_STATUS_ON_AT_SIMPLEcxx . . $ `vendor/onigmo-source/regint.h:367:9`!(env->capture_history, num);
5098 }
5099 else {
5100 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5101 }
5102 break;
5103 #endif /* USE_CAPTURE_HISTORY */
5104
5105 case '(': /* conditional expression: (?(cond)yes), (?(cond)yes|no) */
5106 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! &&
5107 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_QMARK_LPAREN_CONDITIONcxx . . $ `vendor/onigmo-source/onigmo.h:581:9`!)) {
5108 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5109 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *name_end;
5110 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
5111 if (ONIGENC_IS_CODE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:396:9`!(enc, c)) { /* (n) */
5112 PUNFETCHcxx . . $ `vendor/onigmo-source/regparse.c:300:9`!;
5113 r = fetch_namecxx . . $ fetch_name(245574cfb1388599).((OnigCodePointcxx . . $ OnigCodePoint# )'(', &p, end, &name_end, env, &num, 1);
5114 if (r < 0) return r;
5115 #if 0
5116 /* Relative number is not currently supported. (same as Perl) */
5117 if (num < 0) {
5118 num = BACKREF_REL_TO_ABS(num, env);
5119 if (num <= 0)
5120 return ONIGERR_INVALID_BACKREF;
5121 }
5122 #endif
5123 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_STRICT_CHECK_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:593:9`!)) {
5124 if (num > env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem. ||
5125 IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(SCANENV_MEM_NODEScxx . . $ `vendor/onigmo-source/regparse.h:286:9`!(env)[num]))
5126 return ONIGERR_INVALID_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:674:9`!;
5127 }
5128 }
5129 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
5130 else if (c == '<' || c == '\'') { /* (<name>), ('name') */
5131 name = p;
5132 r = fetch_named_backref_tokencxx . . $ fetch_named_backref_token(bf162c5da8df9ce6).(c, tok, &p, end, env);
5133 if (r < 0) return r;
5134 if (!PPEEK_IScxx . . $ `vendor/onigmo-source/regparse.c:320:9`!(')')) return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5135 PINCcxx . . $ `vendor/onigmo-source/regparse.c:301:9`!;
5136
5137 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_USE_LEFT_MOST_NAMED_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:599:9`!)) {
5138 num = tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#ref1.;
5139 }
5140 else {
5141 /* FIXME:
5142 * Use left most named group for now. This is the same as Perl.
5143 * However this should use the same strategy as normal back-
5144 * references on Ruby syntax; search right to left. */
5145 int len = tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#num.;
5146 num = len > 1 ? tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#refs.[0] : tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#ref1.;
5147 }
5148 }
5149 #endif
5150 else
5151 return ONIGERR_INVALID_CONDITION_PATTERNcxx . . $ `vendor/onigmo-source/onigmo.h:664:9`!;
5152 *np = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_CONDITIONcxx . . $ `vendor/onigmo-source/regparse.h:97:9`!);
5153 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
5154 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->regnumcxx . . $ $anonymous_type_d68713db57daa8f0_2#regnum. = num;
5155 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(name)) NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->statecxx . . $ $anonymous_type_d68713db57daa8f0_2#state. |= NST_NAME_REFcxx . . $ `vendor/onigmo-source/regparse.h:139:9`!;
5156 }
5157 else
5158 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5159 break;
5160
5161 #if 0
5162 case '|': /* branch reset: (?|...) */
5163 if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_QMARK_VBAR_BRANCH_RESET)) {
5164 /* TODO */
5165 }
5166 else
5167 return ONIGERR_UNDEFINED_GROUP_OPTION;
5168 break;
5169 #endif
5170
5171 case '^': /* loads default options */
5172 if (!PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`! && IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_PERLcxx . . $ `vendor/onigmo-source/onigmo.h:554:9`!)) {
5173 /* d-imsx */
5174 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_ASCII_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:467:9`!, 1);
5175 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_IGNORECASEcxx . . $ `vendor/onigmo-source/onigmo.h:451:9`!, 1);
5176 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_SINGLELINEcxx . . $ `vendor/onigmo-source/onigmo.h:455:9`!, 0);
5177 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_MULTILINEcxx . . $ `vendor/onigmo-source/onigmo.h:453:9`!, 1);
5178 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_EXTENDcxx . . $ `vendor/onigmo-source/onigmo.h:452:9`!, 1);
5179 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
5180 }
5181 #if 0
5182 else if (!PEND && IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_OPTION_RUBY)) {
5183 /* d-imx */
5184 ONOFF(option, ONIG_OPTION_ASCII_RANGE, 0);
5185 ONOFF(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGE, 0);
5186 ONOFF(option, ONIG_OPTION_WORD_BOUND_ALL_RANGE, 0);
5187 ONOFF(option, ONIG_OPTION_IGNORECASE, 1);
5188 ONOFF(option, ONIG_OPTION_MULTILINE, 1);
5189 ONOFF(option, ONIG_OPTION_EXTEND, 1);
5190 PFETCH(c);
5191 }
5192 #endif
5193 else {
5194 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5195 }
5196 /* fall through */
5197 #ifdef USE_POSIXLINE_OPTION
5198 case 'p':
5199 #endif
5200 case '-': case 'i': case 'm': case 's': case 'x':
5201 case 'a': case 'd': case 'l': case 'u':
5202 {
5203 int neg = 0;
5204
5205 while (1) {
5206 switch (c) {
5207 case ':':
5208 case ')':
5209 break;
5210
5211 case '-': neg = 1; break;
5212 case 'x': ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_EXTENDcxx . . $ `vendor/onigmo-source/onigmo.h:452:9`!, neg); break;
5213 case 'i': ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_IGNORECASEcxx . . $ `vendor/onigmo-source/onigmo.h:451:9`!, neg); break;
5214 case 's':
5215 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_PERLcxx . . $ `vendor/onigmo-source/onigmo.h:554:9`!)) {
5216 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_MULTILINEcxx . . $ `vendor/onigmo-source/onigmo.h:453:9`!, neg);
5217 }
5218 else
5219 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5220 break;
5221
5222 case 'm':
5223 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_PERLcxx . . $ `vendor/onigmo-source/onigmo.h:554:9`!)) {
5224 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_SINGLELINEcxx . . $ `vendor/onigmo-source/onigmo.h:455:9`!, (neg == 0 ? 1 : 0));
5225 }
5226 else if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_RUBYcxx . . $ `vendor/onigmo-source/onigmo.h:555:9`!)) {
5227 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_MULTILINEcxx . . $ `vendor/onigmo-source/onigmo.h:453:9`!, neg);
5228 }
5229 else
5230 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5231 break;
5232 #ifdef USE_POSIXLINE_OPTION
5233 case 'p':
5234 ONOFF(option, ONIG_OPTION_MULTILINE|ONIG_OPTION_SINGLELINE, neg);
5235 break;
5236 #endif
5237
5238 case 'a': /* limits \d, \s, \w and POSIX brackets to ASCII range */
5239 if ((IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_PERLcxx . . $ `vendor/onigmo-source/onigmo.h:554:9`!) ||
5240 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_RUBYcxx . . $ `vendor/onigmo-source/onigmo.h:555:9`!)) &&
5241 (neg == 0)) {
5242 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_ASCII_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:467:9`!, 0);
5243 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:468:9`!, 1);
5244 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_WORD_BOUND_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:469:9`!, 1);
5245 }
5246 else
5247 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5248 break;
5249
5250 case 'u':
5251 if ((IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_PERLcxx . . $ `vendor/onigmo-source/onigmo.h:554:9`!) ||
5252 IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_RUBYcxx . . $ `vendor/onigmo-source/onigmo.h:555:9`!)) &&
5253 (neg == 0)) {
5254 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_ASCII_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:467:9`!, 1);
5255 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:468:9`!, 1);
5256 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_WORD_BOUND_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:469:9`!, 1);
5257 }
5258 else
5259 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5260 break;
5261
5262 case 'd':
5263 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_PERLcxx . . $ `vendor/onigmo-source/onigmo.h:554:9`!) &&
5264 (neg == 0)) {
5265 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_ASCII_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:467:9`!, 1);
5266 }
5267 else if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_RUBYcxx . . $ `vendor/onigmo-source/onigmo.h:555:9`!) &&
5268 (neg == 0)) {
5269 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_ASCII_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:467:9`!, 0);
5270 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_POSIX_BRACKET_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:468:9`!, 0);
5271 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_WORD_BOUND_ALL_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:469:9`!, 0);
5272 }
5273 else
5274 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5275 break;
5276
5277 case 'l':
5278 if (IS_SYNTAX_OP2cxx . . $ `vendor/onigmo-source/regparse.h:331:9`!(env->syntax, ONIG_SYN_OP2_OPTION_PERLcxx . . $ `vendor/onigmo-source/onigmo.h:554:9`!) && (neg == 0)) {
5279 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_ASCII_RANGEcxx . . $ `vendor/onigmo-source/onigmo.h:467:9`!, 1);
5280 }
5281 else
5282 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5283 break;
5284
5285 default:
5286 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5287 }
5288
5289 if (c == ')') {
5290 *np = node_new_optioncxx . . $ node_new_option(a7b11e1078c974b).(option);
5291 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
5292 *src = p;
5293 return 2; /* option only */
5294 }
5295 else if (c == ':') {
5296 OnigOptionTypecxx . . $ OnigOptionType# prev = env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option.;
5297
5298 env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option. = option;
5299 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, &p, end, env);
5300 if (r < 0) {
5301 env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option. = prev;
5302 return r;
5303 }
5304 r = parse_subexpcxx . . $ parse_subexp(93dd89945eafe610).(&target, tok, term, &p, end, env);
5305 env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option. = prev;
5306 if (r < 0) return r;
5307 *np = node_new_optioncxx . . $ node_new_option(a7b11e1078c974b).(option);
5308 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
5309 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = target;
5310 *src = p;
5311 return 0;
5312 }
5313
5314 if (PENDcxx . . $ `vendor/onigmo-source/regparse.c:299:9`!) return ONIGERR_END_PATTERN_IN_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:659:9`!;
5315 PFETCHcxx . . $ `vendor/onigmo-source/regparse.c:305:9`!(c);
5316 }
5317 }
5318 break;
5319
5320 default:
5321 return ONIGERR_UNDEFINED_GROUP_OPTIONcxx . . $ `vendor/onigmo-source/onigmo.h:660:9`!;
5322 }
5323 }
5324 else {
5325 if (ONIG_IS_OPTION_ONcxx . . $ `vendor/onigmo-source/onigmo.h:476:9`!(env->option, ONIG_OPTION_DONT_CAPTURE_GROUPcxx . . $ `vendor/onigmo-source/onigmo.h:459:9`!))
5326 goto group;
5327
5328 *np = node_new_enclose_memorycxx . . $ node_new_enclose_memory(b76236d99bedb036).(env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option., 0);
5329 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
5330 num = scan_env_add_mem_entrycxx . . $ scan_env_add_mem_entry(eca7cc003a536110).(env);
5331 if (num < 0) return num;
5332 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->regnumcxx . . $ $anonymous_type_d68713db57daa8f0_2#regnum. = num;
5333 }
5334
5335 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
5336 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, &p, end, env);
5337 if (r < 0) return r;
5338 r = parse_subexpcxx . . $ parse_subexp(93dd89945eafe610).(&target, tok, term, &p, end, env);
5339 if (r < 0) {
5340 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(target);
5341 return r;
5342 }
5343
5344 if (NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:69:9`!(*np) == NT_ANCHORcxx . . $ `vendor/onigmo-source/regparse.h:45:9`!)
5345 NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(*np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_7#target. = target;
5346 else {
5347 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = target;
5348 if (NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->typecxx . . $ $anonymous_type_d68713db57daa8f0_2#type. == ENCLOSE_MEMORYcxx . . $ `vendor/onigmo-source/regparse.h:94:9`!) {
5349 /* Don't move this to previous of parse_subexp() */
5350 r = scan_env_set_mem_nodecxx . . $ scan_env_set_mem_node(5f4f4d6b3eb89ac3).(env, NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->regnumcxx . . $ $anonymous_type_d68713db57daa8f0_2#regnum., *np);
5351 if (r != 0) return r;
5352 }
5353 else if (NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->typecxx . . $ $anonymous_type_d68713db57daa8f0_2#type. == ENCLOSE_CONDITIONcxx . . $ `vendor/onigmo-source/regparse.h:97:9`!) {
5354 if (NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:69:9`!(target) != NT_ALTcxx . . $ `vendor/onigmo-source/regparse.h:47:9`!) {
5355 /* convert (?(cond)yes) to (?(cond)yes|empty) */
5356 work1 = node_new_emptycxx . . $ node_new_empty(22adfc593233ebb9).();
5357 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(work1)) goto err;
5358 work2 = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(work1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5359 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(work2)) goto err;
5360 work1 = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(target, work2);
5361 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(work1)) goto err;
5362 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = work1;
5363 }
5364 }
5365 }
5366
5367 *src = p;
5368 return 0;
5369
5370 err:
5371 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(work1);
5372 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(work2);
5373 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(*np);
5374 *np = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5375 return ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`!;
5376 }
5377
5378 static const char* const PopularQStrcxx . . $ PopularQStr.[] = {
5379 "?", "*", "+", "??", "*?", "+?"
5380 };
5381
5382 static const char* const ReduceQStrcxx . . $ ReduceQStr.[] = {
5383 "", "", "*", "*?", "??", "+ and ??", "+? and ?"
5384 };
5385
5386 static int
5387 set_quantifiercxx . . $ set_quantifier(bddc198ef2d96bb1).(Nodecxx . . $ Node#* qnode, Nodecxx . . $ Node#* target, int group, ScanEnvcxx . . $ ScanEnv#* env)
5388 {
5389 QtfrNodecxx . . $ QtfrNode#* qn;
5390
5391 qn = NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(qnode);
5392 if (qn->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. == 1 && qn->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. == 1) {
5393 return 1;
5394 }
5395
5396 switch (NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:69:9`!(target)) {
5397 case NT_STRcxx . . $ `vendor/onigmo-source/regparse.h:38:9`!:
5398 if (! group) {
5399 StrNodecxx . . $ StrNode#* sn = NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(target);
5400 if (str_node_can_be_splitcxx . . $ str_node_can_be_split(774587a5c868a14a).(sn, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.)) {
5401 Nodecxx . . $ Node#* n = str_node_split_last_charcxx . . $ str_node_split_last_char(247334a6e4aed973).(sn, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.);
5402 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(n)) {
5403 qn->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = n;
5404 return 2;
5405 }
5406 }
5407 }
5408 break;
5409
5410 case NT_QTFRcxx . . $ `vendor/onigmo-source/regparse.h:43:9`!:
5411 { /* check redundant double repeat. */
5412 /* verbose warn (?:.?)? etc... but not warn (.?)? etc... */
5413 QtfrNodecxx . . $ QtfrNode#* qnt = NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(target);
5414 int nestq_num = popular_quantifier_numcxx . . $ popular_quantifier_num(344c3a666c915fb9).(qn);
5415 int targetq_num = popular_quantifier_numcxx . . $ popular_quantifier_num(344c3a666c915fb9).(qnt);
5416
5417 #ifdef USE_WARNING_REDUNDANT_NESTED_REPEAT_OPERATORcxx . . $ `vendor/onigmo-source/regint.h:76:9`!
5418 if (nestq_num >= 0 && targetq_num >= 0 &&
5419 IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_WARN_REDUNDANT_NESTED_REPEATcxx . . $ `vendor/onigmo-source/onigmo.h:608:9`!)) {
5420 switch (ReduceTypeTablecxx . . $ ReduceTypeTable.[targetq_num][nestq_num]) {
5421 case RQ_ASIScxx . . $ RQ_ASIS.:
5422 break;
5423
5424 case RQ_DELcxx . . $ RQ_DEL.:
5425 if (onig_warncxx . . $ onig_warn. != onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9).) {
5426 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "regular expression has redundant nested repeat operator '%s'",
5427 PopularQStrcxx . . $ PopularQStr.[targetq_num]);
5428 }
5429 goto warn_exit;
5430 break;
5431
5432 default:
5433 if (onig_warncxx . . $ onig_warn. != onig_null_warncxx . . $ onig_null_warn(85c52e162fed56f9).) {
5434 onig_syntax_warncxx . . $ onig_syntax_warn(841ec45fb07d6698).(env, "nested repeat operator '%s' and '%s' was replaced with '%s' in regular expression",
5435 PopularQStrcxx . . $ PopularQStr.[targetq_num], PopularQStrcxx . . $ PopularQStr.[nestq_num],
5436 ReduceQStrcxx . . $ ReduceQStr.[ReduceTypeTablecxx . . $ ReduceTypeTable.[targetq_num][nestq_num]]);
5437 }
5438 goto warn_exit;
5439 break;
5440 }
5441 }
5442
5443 warn_exit:
5444 #endif
5445 if (targetq_num >= 0) {
5446 if (nestq_num >= 0) {
5447 onig_reduce_nested_quantifiercxx . . $ onig_reduce_nested_quantifier(f138c132e3508262).(qnode, target);
5448 goto q_exit;
5449 }
5450 else if (targetq_num == 1 || targetq_num == 2) { /* * or + */
5451 /* (?:a*){n,m}, (?:a+){n,m} => (?:a*){n,n}, (?:a+){n,n} */
5452 if (! IS_REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:409:9`!(qn->upper) && qn->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. > 1 && qn->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy.) {
5453 qn->uppercxx . . $ $anonymous_type_d68713db57daa8f0_1#upper. = (qn->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower. == 0 ? 1 : qn->lowercxx . . $ $anonymous_type_d68713db57daa8f0_1#lower.);
5454 }
5455 }
5456 }
5457 }
5458 break;
5459
5460 default:
5461 break;
5462 }
5463
5464 qn->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = target;
5465 q_exit:
5466 return 0;
5467 }
5468
5469
5470 #ifndef CASE_FOLD_IS_APPLIED_INSIDE_NEGATIVE_CCLASScxx . . $ `vendor/onigmo-source/regparse.c:36:9`!
5471 static int
5472 clear_not_flag_cclass(CClassNode* cc, OnigEncoding enc)
5473 {
5474 BBuf *tbuf;
5475 int r;
5476
5477 if (IS_NCCLASS_NOT(cc)) {
5478 bitset_invert(cc->bs);
5479
5480 if (! ONIGENC_IS_SINGLEBYTE(enc)) {
5481 r = not_code_range_buf(enc, cc->mbuf, &tbuf);
5482 if (r != 0) return r;
5483
5484 bbuf_free(cc->mbuf);
5485 cc->mbuf = tbuf;
5486 }
5487
5488 NCCLASS_CLEAR_NOT(cc);
5489 }
5490
5491 return 0;
5492 }
5493 #endif /* CASE_FOLD_IS_APPLIED_INSIDE_NEGATIVE_CCLASS */
5494
5495 typedef structcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10# {
5496 ScanEnvcxx . . $ ScanEnv#* envcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#env.;
5497 CClassNodecxx . . $ CClassNode#* cccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#cc.;
5498 CClassNodecxx . . $ CClassNode#* asc_cccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#asc_cc.;
5499 Nodecxx . . $ Node#* alt_rootcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#alt_root.;
5500 Nodecxx . . $ Node#** ptailcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#ptail.;
5501 } IApplyCaseFoldArgcxx . . $ IApplyCaseFoldArg#;
5502
5503 static int
5504 i_apply_case_foldcxx . . $ i_apply_case_fold(5e7a6570d67cb9f8).(OnigCodePointcxx . . $ OnigCodePoint# from, OnigCodePointcxx . . $ OnigCodePoint# to[],
5505 int to_len, void* arg)
5506 {
5507 IApplyCaseFoldArgcxx . . $ IApplyCaseFoldArg#* iarg;
5508 ScanEnvcxx . . $ ScanEnv#* env;
5509 CClassNodecxx . . $ CClassNode#* cc;
5510 CClassNodecxx . . $ CClassNode#* asc_cc;
5511 BitSetRefcxx . . $ BitSetRef# bs;
5512 int add_flag, r;
5513
5514 iarg = (IApplyCaseFoldArgcxx . . $ IApplyCaseFoldArg#* )arg;
5515 env = iarg->envcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#env.;
5516 cc = iarg->cccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#cc.;
5517 asc_cc = iarg->asc_cccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#asc_cc.;
5518 bs = cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.;
5519
5520 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(asc_cc)) {
5521 add_flag = 0;
5522 }
5523 else if (ONIGENC_IS_ASCII_CODEcxx . . $ `vendor/onigmo-source/regenc.h:213:9`!(from) == ONIGENC_IS_ASCII_CODEcxx . . $ `vendor/onigmo-source/regenc.h:213:9`!(*to)) {
5524 add_flag = 1;
5525 }
5526 else {
5527 add_flag = onig_is_code_in_cccxx . . $ onig_is_code_in_cc(62b7a72f8ee47e53).(env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc., from, asc_cc);
5528 if (IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(asc_cc))
5529 add_flag = !add_flag;
5530 }
5531
5532 if (to_len == 1) {
5533 int is_in = onig_is_code_in_cccxx . . $ onig_is_code_in_cc(62b7a72f8ee47e53).(env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc., from, cc);
5534 #ifdef CASE_FOLD_IS_APPLIED_INSIDE_NEGATIVE_CCLASScxx . . $ `vendor/onigmo-source/regparse.c:36:9`!
5535 if ((is_in != 0 && !IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(cc)) ||
5536 (is_in == 0 && IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(cc))) {
5537 if (add_flag) {
5538 if (ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(env->enc) > 1 || *to >= SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!) {
5539 r = add_code_range0cxx . . $ add_code_range0(81ced504ee905dae).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, *to, *to, 0);
5540 if (r < 0) return r;
5541 }
5542 else {
5543 BITSET_SET_BITcxx . . $ `vendor/onigmo-source/regint.h:436:9`!(bs, *to);
5544 }
5545 }
5546 }
5547 #else
5548 if (is_in != 0) {
5549 if (add_flag) {
5550 if (ONIGENC_MBC_MINLEN(env->enc) > 1 || *to >= SINGLE_BYTE_SIZE) {
5551 if (IS_NCCLASS_NOT(cc)) clear_not_flag_cclass(cc, env->enc);
5552 r = add_code_range0(&(cc->mbuf), env, *to, *to, 0);
5553 if (r < 0) return r;
5554 }
5555 else {
5556 if (IS_NCCLASS_NOT(cc)) {
5557 BITSET_CLEAR_BIT(bs, *to);
5558 }
5559 else {
5560 BITSET_SET_BIT(bs, *to);
5561 }
5562 }
5563 }
5564 }
5565 #endif /* CASE_FOLD_IS_APPLIED_INSIDE_NEGATIVE_CCLASS */
5566 }
5567 else {
5568 int r, i, len;
5569 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[ONIGENC_CODE_TO_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:289:9`!];
5570 Nodecxx . . $ Node# *snode = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
5571
5572 if (onig_is_code_in_cccxx . . $ onig_is_code_in_cc(62b7a72f8ee47e53).(env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc., from, cc)
5573 #ifdef CASE_FOLD_IS_APPLIED_INSIDE_NEGATIVE_CCLASScxx . . $ `vendor/onigmo-source/regparse.c:36:9`!
5574 && !IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(cc)
5575 #endif
5576 ) {
5577 for (i = 0; i < to_len; i++) {
5578 len = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, to[i], buf);
5579 if (i == 0) {
5580 snode = onig_node_new_strcxx . . $ onig_node_new_str(623c155944b20cb6).(buf, buf + len);
5581 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(snode);
5582
5583 /* char-class expanded multi-char only
5584 compare with string folded at match time. */
5585 NSTRING_SET_AMBIGcxx . . $ `vendor/onigmo-source/regparse.h:111:9`!(snode);
5586 }
5587 else {
5588 r = onig_node_str_catcxx . . $ onig_node_str_cat(7440c71141edaa30).(snode, buf, buf + len);
5589 if (r < 0) {
5590 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(snode);
5591 return r;
5592 }
5593 }
5594 }
5595
5596 *(iarg->ptailcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#ptail.) = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(snode, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5597 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*(iarg->ptail));
5598 iarg->ptailcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#ptail. = &(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!((*(iarg->ptail))));
5599 }
5600 }
5601
5602 return 0;
5603 }
5604
5605 static int
5606 cclass_case_foldcxx . . $ cclass_case_fold(3716fe709b96542e).(Nodecxx . . $ Node#** np, CClassNodecxx . . $ CClassNode#* cc, CClassNodecxx . . $ CClassNode#* asc_cc, ScanEnvcxx . . $ ScanEnv#* env)
5607 {
5608 int r;
5609 IApplyCaseFoldArgcxx . . $ IApplyCaseFoldArg# iarg;
5610
5611 iarg.envcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#env. = env;
5612 iarg.cccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#cc. = cc;
5613 iarg.asc_cccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#asc_cc. = asc_cc;
5614 iarg.alt_rootcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#alt_root. = NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!;
5615 iarg.ptailcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#ptail. = &(iarg.alt_rootcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#alt_root.);
5616
5617 r = ONIGENC_APPLY_ALL_CASE_FOLDcxx . . $ `vendor/onigmo-source/onigmo.h:338:9`!(env->enc, env->case_fold_flag,
5618 i_apply_case_fold, &iarg);
5619 if (r != 0) {
5620 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(iarg.alt_rootcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#alt_root.);
5621 return r;
5622 }
5623 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(iarg.alt_root)) {
5624 Nodecxx . . $ Node#* work = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(*np, iarg.alt_rootcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#alt_root.);
5625 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(work)) {
5626 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(iarg.alt_rootcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_10#alt_root.);
5627 return ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`!;
5628 }
5629 *np = work;
5630 }
5631 return r;
5632 }
5633
5634 static int
5635 node_linebreakcxx . . $ node_linebreak(e3c65d24faec4138).(Nodecxx . . $ Node#** np, ScanEnvcxx . . $ ScanEnv#* env)
5636 {
5637 /* same as (?>\x0D\x0A|[\x0A-\x0D\x{85}\x{2028}\x{2029}]) */
5638 Nodecxx . . $ Node#* left = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5639 Nodecxx . . $ Node#* right = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5640 Nodecxx . . $ Node#* target1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5641 Nodecxx . . $ Node#* target2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5642 CClassNodecxx . . $ CClassNode#* cc;
5643 int num1, num2, r;
5644 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[ONIGENC_CODE_TO_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:289:9`! * 2];
5645
5646 /* \x0D\x0A */
5647 num1 = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0x0D, buf);
5648 if (num1 < 0) return num1;
5649 num2 = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0x0A, buf + num1);
5650 if (num2 < 0) return num2;
5651 left = node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(buf, buf + num1 + num2);
5652 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(left)) goto err;
5653
5654 /* [\x0A-\x0D] or [\x0A-\x0D\x{85}\x{2028}\x{2029}] */
5655 right = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5656 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(right)) goto err;
5657 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(right);
5658 if (ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(env->enc) > 1) {
5659 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, 0x0A, 0x0D);
5660 if (r != 0) goto err;
5661 }
5662 else {
5663 bitset_set_rangecxx . . $ bitset_set_range(9e779080813d5c55).(env, cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs., 0x0A, 0x0D);
5664 }
5665
5666 /* TODO: move this block to enc/unicode.c */
5667 if (ONIGENC_IS_UNICODEcxx . . $ `vendor/onigmo-source/onigmo.h:327:9`!(env->enc)) {
5668 /* UTF-8, UTF-16BE/LE, UTF-32BE/LE */
5669 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, 0x85, 0x85);
5670 if (r != 0) goto err;
5671 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, 0x2028, 0x2029);
5672 if (r != 0) goto err;
5673 }
5674
5675 /* ...|... */
5676 target1 = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(right, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5677 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(target1)) goto err;
5678 right = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5679 target2 = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(left, target1);
5680 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(target2)) goto err;
5681 left = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5682 target1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5683
5684 /* (?>...) */
5685 *np = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_STOP_BACKTRACKcxx . . $ `vendor/onigmo-source/regparse.h:96:9`!);
5686 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(*np)) goto err;
5687 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = target2;
5688 return ONIG_NORMALcxx . . $ `vendor/onigmo-source/onigmo.h:624:9`!;
5689
5690 err:
5691 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(left);
5692 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(right);
5693 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(target1);
5694 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(target2);
5695 return ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`!;
5696 }
5697
5698 static int
5699 propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(ScanEnvcxx . . $ ScanEnv#* env, const char* propname)
5700 {
5701 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* name = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )propname;
5702 int ctype = env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.->property_name_to_ctypecxx . . $ OnigEncodingTypeST#property_name_to_ctype.(ONIG_ENCODING_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:225:9`!,
5703 name, name + strlencxx . . $ strlen(751346f8406fd082).(propname));
5704 return ctype;
5705 }
5706
5707 static int
5708 node_extended_grapheme_clustercxx . . $ node_extended_grapheme_cluster(e3c65d24faec4138).(Nodecxx . . $ Node#** np, ScanEnvcxx . . $ ScanEnv#* env)
5709 {
5710 Nodecxx . . $ Node#* tmp = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5711 Nodecxx . . $ Node#* np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5712 Nodecxx . . $ Node#* list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5713 Nodecxx . . $ Node#* list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5714 Nodecxx . . $ Node#* alt = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5715 Nodecxx . . $ Node#* alt2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5716 BBufcxx . . $ BBuf# *pbuf1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5717 int r = 0;
5718 int num1;
5719 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! buf[ONIGENC_CODE_TO_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:289:9`! * 2];
5720 OnigOptionTypecxx . . $ OnigOptionType# option;
5721
5722 #ifdef USE_UNICODE_PROPERTIEScxx . . $ `vendor/onigmo-source/regenc.h:133:9`!
5723 if (ONIGENC_IS_UNICODEcxx . . $ `vendor/onigmo-source/onigmo.h:327:9`!(env->enc)) {
5724 /* UTF-8, UTF-16BE/LE, UTF-32BE/LE */
5725 CClassNodecxx . . $ CClassNode#* cc;
5726 OnigCodePointcxx . . $ OnigCodePoint# sb_out = (ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(env->enc) > 1) ? 0x00 : 0x80;
5727 int extend = propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=Extend");
5728
5729 /* Prepend*
5730 * ( RI-sequence | Hangul-Syllable | !Control )
5731 * ( Grapheme_Extend | SpacingMark )* */
5732
5733 /* ( Grapheme_Extend | SpacingMark )* */
5734 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5735 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5736 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5737 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, extend, 0, 0, env);
5738 if (r != 0) goto err;
5739 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=SpacingMark"), 0, 0, env);
5740 if (r != 0) goto err;
5741 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, 0x200D, 0x200D);
5742 if (r != 0) goto err;
5743
5744 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5745 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5746 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5747 np1 = tmp;
5748
5749 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5750 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5751 list = tmp;
5752 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5753
5754 /* ( RI-sequence | Hangul-Syllable | !Control ) */
5755 /* !Control */
5756 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5757 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5758 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5759 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=Control"), 1, 0, env);
5760 if (r != 0) goto err;
5761 if (ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(env->enc) > 1) {
5762 BBufcxx . . $ BBuf# *pbuf2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5763 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&pbuf1, env, 0x0a, 0x0a);
5764 if (r != 0) goto err;
5765 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&pbuf1, env, 0x0d, 0x0d);
5766 if (r != 0) goto err;
5767 r = and_code_range_bufcxx . . $ and_code_range_buf(6326c5ae58512969).(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf., 0, pbuf1, 1, &pbuf2, env);
5768 if (r != 0) {
5769 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(pbuf2);
5770 goto err;
5771 }
5772 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(pbuf1);
5773 pbuf1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5774 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.);
5775 cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf. = pbuf2;
5776 }
5777 else {
5778 BITSET_CLEAR_BITcxx . . $ `vendor/onigmo-source/regint.h:437:9`!(cc->bs, 0x0a);
5779 BITSET_CLEAR_BITcxx . . $ `vendor/onigmo-source/regint.h:437:9`!(cc->bs, 0x0d);
5780 }
5781
5782 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5783 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5784 alt = tmp;
5785 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5786
5787 /* Hangul-Syllable
5788 * := L* V+ T*
5789 * | L* LV V* T*
5790 * | L* LVT T*
5791 * | L+
5792 * | T+ */
5793
5794 /* T+ */
5795 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5796 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5797 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5798 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=T"), 0, 0, env);
5799 if (r != 0) goto err;
5800
5801 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(1, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5802 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5803 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5804 np1 = tmp;
5805
5806 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(np1, alt);
5807 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5808 alt = tmp;
5809 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5810
5811 /* L+ */
5812 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5813 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5814 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5815 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=L"), 0, 0, env);
5816 if (r != 0) goto err;
5817
5818 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(1, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5819 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5820 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5821 np1 = tmp;
5822
5823 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(np1, alt);
5824 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5825 alt = tmp;
5826 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5827
5828 /* L* LVT T* */
5829 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5830 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5831 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5832 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=T"), 0, 0, env);
5833 if (r != 0) goto err;
5834
5835 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5836 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5837 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5838 np1 = tmp;
5839
5840 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5841 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5842 list2 = tmp;
5843 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5844
5845 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5846 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5847 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5848 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=LVT"), 0, 0, env);
5849 if (r != 0) goto err;
5850
5851 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
5852 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5853 list2 = tmp;
5854 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5855
5856 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5857 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5858 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5859 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=L"), 0, 0, env);
5860 if (r != 0) goto err;
5861
5862 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5863 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5864 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5865 np1 = tmp;
5866
5867 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
5868 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5869 list2 = tmp;
5870 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5871
5872 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt);
5873 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5874 alt = tmp;
5875 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5876
5877 /* L* LV V* T* */
5878 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5879 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5880 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5881 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=T"), 0, 0, env);
5882 if (r != 0) goto err;
5883
5884 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5885 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5886 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5887 np1 = tmp;
5888
5889 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5890 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5891 list2 = tmp;
5892 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5893
5894 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5895 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5896 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5897 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=V"), 0, 0, env);
5898 if (r != 0) goto err;
5899
5900 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5901 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5902 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5903 np1 = tmp;
5904
5905 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
5906 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5907 list2 = tmp;
5908 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5909
5910 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5911 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5912 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5913 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=LV"), 0, 0, env);
5914 if (r != 0) goto err;
5915
5916 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
5917 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5918 list2 = tmp;
5919 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5920
5921 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5922 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5923 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5924 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=L"), 0, 0, env);
5925 if (r != 0) goto err;
5926
5927 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5928 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5929 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5930 np1 = tmp;
5931
5932 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
5933 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5934 list2 = tmp;
5935 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5936
5937 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt);
5938 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5939 alt = tmp;
5940 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5941
5942 /* L* V+ T* */
5943 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5944 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5945 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5946 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=T"), 0, 0, env);
5947 if (r != 0) goto err;
5948
5949 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5950 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5951 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5952 np1 = tmp;
5953
5954 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
5955 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5956 list2 = tmp;
5957 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5958
5959 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5960 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5961 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5962 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=V"), 0, 0, env);
5963 if (r != 0) goto err;
5964
5965 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(1, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5966 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5967 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5968 np1 = tmp;
5969
5970 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
5971 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5972 list2 = tmp;
5973 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5974
5975 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
5976 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
5977 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
5978 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=L"), 0, 0, env);
5979 if (r != 0) goto err;
5980
5981 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
5982 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5983 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
5984 np1 = tmp;
5985
5986 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
5987 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5988 list2 = tmp;
5989 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5990
5991 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt);
5992 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
5993 alt = tmp;
5994 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
5995
5996 /* Emoji sequence := (E_Base | EBG) Extend* E_Modifier?
5997 * (ZWJ (Glue_After_Zwj | EBG Extend* E_Modifier?) )* */
5998
5999 /* ZWJ (Glue_After_Zwj | E_Base_GAZ Extend* E_Modifier?) */
6000 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6001 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6002 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6003 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=E_Modifier"), 0, 0, env);
6004 if (r != 0) goto err;
6005
6006 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, 1, 0);
6007 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6008 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6009 np1 = tmp;
6010
6011 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6012 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6013 list2 = tmp;
6014 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6015
6016 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6017 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6018 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6019 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, extend, 0, 0, env);
6020 if (r != 0) goto err;
6021
6022 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
6023 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6024 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6025 np1 = tmp;
6026
6027 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6028 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6029 list2 = tmp;
6030 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6031
6032 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6033 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6034 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6035 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=E_Base_GAZ"), 0, 0, env);
6036 if (r != 0) goto err;
6037
6038 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6039 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6040 list2 = tmp;
6041 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6042
6043 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6044 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6045 alt2 = tmp;
6046 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6047
6048 /* Glue_After_Zwj */
6049 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6050 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6051 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6052 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, extend, 0, 0, env);
6053 if (r != 0) goto err;
6054
6055 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
6056 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6057 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6058 np1 = tmp;
6059
6060 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6061 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6062 list2 = tmp;
6063 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6064
6065 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6066 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6067 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6068 {
6069 static const OnigCodePointcxx . . $ OnigCodePoint# ranges[] = {
6070 13,
6071 0x1F308, 0x1F308,
6072 0x1F33E, 0x1F33E,
6073 0x1F373, 0x1F373,
6074 0x1F393, 0x1F393,
6075 0x1F3A4, 0x1F3A4,
6076 0x1F3A8, 0x1F3A8,
6077 0x1F3EB, 0x1F3EB,
6078 0x1F3ED, 0x1F3ED,
6079 0x1F4BB, 0x1F4BC,
6080 0x1F527, 0x1F527,
6081 0x1F52C, 0x1F52C,
6082 0x1F680, 0x1F680,
6083 0x1F692, 0x1F692,
6084 };
6085 r = add_ctype_to_cc_by_rangecxx . . $ add_ctype_to_cc_by_range(1e07d7064ce7cf9a).(cc, -1, 0, env, sb_out, ranges);
6086 if (r != 0) goto err;
6087 }
6088 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=Glue_After_Zwj"), 0, 0, env);
6089 if (r != 0) goto err;
6090
6091 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6092 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6093 list2 = tmp;
6094 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6095
6096 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt2);
6097 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6098 alt2 = tmp;
6099 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6100
6101 /* Emoji variation sequence
6102 * http://unicode.org/Public/emoji/4.0/emoji-zwj-sequences.txt
6103 */
6104 r = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0xfe0f, buf);
6105 if (r < 0) goto err;
6106 np1 = node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(buf, buf + r);
6107 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6108
6109 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, 1, 0);
6110 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6111 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6112 np1 = tmp;
6113
6114 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6115 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6116 list2 = tmp;
6117 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6118
6119 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6120 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6121 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6122 {
6123 static const OnigCodePointcxx . . $ OnigCodePoint# ranges[] = {
6124 4,
6125 0x2640, 0x2640,
6126 0x2642, 0x2642,
6127 0x2695, 0x2696,
6128 0x2708, 0x2708,
6129 };
6130 r = add_ctype_to_cc_by_rangecxx . . $ add_ctype_to_cc_by_range(1e07d7064ce7cf9a).(cc, -1, 0, env, sb_out, ranges);
6131 if (r != 0) goto err;
6132 }
6133
6134 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6135 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6136 list2 = tmp;
6137 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6138
6139 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt2);
6140 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6141 alt2 = tmp;
6142 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6143
6144 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(alt2, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6145 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6146 list2 = tmp;
6147 alt2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6148
6149 /* ZWJ */
6150 r = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0x200D, buf);
6151 if (r < 0) goto err;
6152 np1 = node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(buf, buf + r);
6153 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6154
6155 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6156 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6157 list2 = tmp;
6158 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6159
6160 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
6161 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6162 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = list2;
6163 np1 = tmp;
6164 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6165
6166 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6167 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6168 list2 = tmp;
6169 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6170
6171 /* E_Modifier? */
6172 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6173 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6174 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6175 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=E_Modifier"), 0, 0, env);
6176 if (r != 0) goto err;
6177
6178 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, 1, 0);
6179 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6180 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6181 np1 = tmp;
6182
6183 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6184 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6185 list2 = tmp;
6186 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6187
6188 /* Extend* */
6189 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6190 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6191 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6192 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, extend, 0, 0, env);
6193 if (r != 0) goto err;
6194
6195 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
6196 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6197 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6198 np1 = tmp;
6199
6200 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6201 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6202 list2 = tmp;
6203 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6204
6205 /* (E_Base | EBG) */
6206 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6207 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6208 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6209 {
6210 static const OnigCodePointcxx . . $ OnigCodePoint# ranges[] = {
6211 8,
6212 0x1F3C2, 0x1F3C2,
6213 0x1F3C7, 0x1F3C7,
6214 0x1F3CC, 0x1F3CC,
6215 0x1F3F3, 0x1F3F3,
6216 0x1F441, 0x1F441,
6217 0x1F46F, 0x1F46F,
6218 0x1F574, 0x1F574,
6219 0x1F6CC, 0x1F6CC,
6220 };
6221 r = add_ctype_to_cc_by_rangecxx . . $ add_ctype_to_cc_by_range(1e07d7064ce7cf9a).(cc, -1, 0, env, sb_out, ranges);
6222 if (r != 0) goto err;
6223 }
6224 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=E_Base"), 0, 0, env);
6225 if (r != 0) goto err;
6226 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=E_Base_GAZ"), 0, 0, env);
6227 if (r != 0) goto err;
6228
6229 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6230 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6231 list2 = tmp;
6232 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6233
6234 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt);
6235 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6236 alt = tmp;
6237 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6238
6239 /* ZWJ (E_Base_GAZ | Glue_After_Zwj) E_Modifier? */
6240 /* a sequence starting with ZWJ seems artificial, but GraphemeBreakTest
6241 * has such examples.
6242 * http://www.unicode.org/Public/9.0.0/ucd/auxiliary/GraphemeBreakTest.html
6243 */
6244 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6245 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6246 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6247 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=E_Modifier"), 0, 0, env);
6248 if (r != 0) goto err;
6249
6250 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, 1, 0);
6251 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6252 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6253 np1 = tmp;
6254
6255 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6256 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6257 list2 = tmp;
6258 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6259
6260 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6261 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6262 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6263 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=Glue_After_Zwj"), 0, 0, env);
6264 if (r != 0) goto err;
6265 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=E_Base_GAZ"), 0, 0, env);
6266 if (r != 0) goto err;
6267
6268 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6269 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6270 list2 = tmp;
6271 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6272
6273 r = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0x200D, buf);
6274 if (r < 0) goto err;
6275 np1 = node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(buf, buf + r);
6276 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6277
6278 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6279 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6280 list2 = tmp;
6281 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6282
6283 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt);
6284 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6285 alt = tmp;
6286 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6287
6288 /* RI-Sequence := Regional_Indicator{2} */
6289 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6290 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6291 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6292 r = add_code_rangecxx . . $ add_code_range(221586f2493b0010).(&(cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.), env, 0x1F1E6, 0x1F1FF);
6293 if (r != 0) goto err;
6294
6295 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(2, 2, 0);
6296 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6297 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6298 np1 = tmp;
6299
6300 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6301 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6302 list2 = tmp;
6303 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6304
6305 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt);
6306 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6307 alt = tmp;
6308 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6309
6310 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(alt, list);
6311 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6312 list = tmp;
6313 alt = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6314
6315 /* Prepend* */
6316 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6317 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6318 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6319 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=Prepend"), 0, 0, env);
6320 if (r != 0) goto err;
6321
6322 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
6323 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6324 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6325 np1 = tmp;
6326
6327 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list);
6328 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6329 list = tmp;
6330 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6331
6332 /* PerlSyntax: (?s:.), RubySyntax: (?m:.) */
6333 np1 = node_new_anycharcxx . . $ node_new_anychar(22adfc593233ebb9).();
6334 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6335
6336 option = env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option.;
6337 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_MULTILINEcxx . . $ `vendor/onigmo-source/onigmo.h:453:9`!, 0);
6338 tmp = node_new_optioncxx . . $ node_new_option(a7b11e1078c974b).(option);
6339 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6340 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = np1;
6341 np1 = tmp;
6342
6343 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6344 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6345 alt = tmp;
6346 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6347
6348 /* Prepend+ */
6349 r = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0x200D, buf);
6350 if (r < 0) goto err;
6351 np1 = node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(buf, buf + r);
6352 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6353
6354 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, 1, 0);
6355 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6356 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6357 np1 = tmp;
6358
6359 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6360 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6361 list2 = tmp;
6362 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6363
6364 np1 = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6365 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6366 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(np1);
6367 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, propname2ctypecxx . . $ propname2ctype(3ada3fd34e6ff57).(env, "Grapheme_Cluster_Break=Prepend"), 0, 0, env);
6368 if (r != 0) goto err;
6369
6370 tmp = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(1, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
6371 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6372 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = np1;
6373 np1 = tmp;
6374
6375 tmp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(np1, list2);
6376 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6377 list2 = tmp;
6378 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6379
6380 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list2, alt);
6381 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6382 alt = tmp;
6383 list2 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6384
6385 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(list, alt);
6386 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6387 alt = tmp;
6388 list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6389 }
6390 else
6391 #endif /* USE_UNICODE_PROPERTIES */
6392 {
6393 /* PerlSyntax: (?s:.), RubySyntax: (?m:.) */
6394 np1 = node_new_anycharcxx . . $ node_new_anychar(22adfc593233ebb9).();
6395 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6396
6397 option = env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option.;
6398 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_MULTILINEcxx . . $ `vendor/onigmo-source/onigmo.h:453:9`!, 0);
6399 tmp = node_new_optioncxx . . $ node_new_option(a7b11e1078c974b).(option);
6400 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6401 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = np1;
6402 np1 = tmp;
6403
6404 alt = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(np1, NULL_NODEcxx . . $ `vendor/onigmo-source/regparse.h:283:9`!);
6405 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(alt)) goto err;
6406 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6407 }
6408
6409 /* \x0D\x0A */
6410 r = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0x0D, buf);
6411 if (r < 0) goto err;
6412 num1 = r;
6413 r = ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(env->enc, 0x0A, buf + num1);
6414 if (r < 0) goto err;
6415 np1 = node_new_str_rawcxx . . $ node_new_str_raw(1eca8c12dae02d7a).(buf, buf + num1 + r);
6416 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(np1)) goto err;
6417
6418 tmp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(np1, alt);
6419 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6420 alt = tmp;
6421 np1 = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6422
6423 /* (?>\x0D\x0A|...) */
6424 tmp = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_STOP_BACKTRACKcxx . . $ `vendor/onigmo-source/regparse.h:96:9`!);
6425 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) goto err;
6426 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(tmp)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = alt;
6427 np1 = tmp;
6428
6429 #ifdef USE_UNICODE_PROPERTIEScxx . . $ `vendor/onigmo-source/regenc.h:133:9`!
6430 if (ONIGENC_IS_UNICODEcxx . . $ `vendor/onigmo-source/onigmo.h:327:9`!(env->enc)) {
6431 /* Don't ignore case. */
6432 option = env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option.;
6433 ONOFFcxx . . $ `vendor/onigmo-source/regparse.c:160:9`!(option, ONIG_OPTION_IGNORECASEcxx . . $ `vendor/onigmo-source/onigmo.h:451:9`!, 1);
6434 *np = node_new_optioncxx . . $ node_new_option(a7b11e1078c974b).(option);
6435 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(*np)) goto err;
6436 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = np1;
6437 }
6438 else
6439 #endif
6440 {
6441 *np = np1;
6442 }
6443 return ONIG_NORMALcxx . . $ `vendor/onigmo-source/onigmo.h:624:9`!;
6444
6445 err:
6446 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(np1);
6447 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(list);
6448 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(list2);
6449 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(alt);
6450 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(alt2);
6451 bbuf_freecxx . . $ bbuf_free(879f502eccacbe57).(pbuf1);
6452 return (r == 0) ? ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`! : r;
6453 }
6454
6455 static int
6456 countbitscxx . . $ countbits(4c679297bf94b9eb).(unsigned int bits)
6457 {
6458 bits = (bits & 0x55555555) + ((bits >> 1) & 0x55555555);
6459 bits = (bits & 0x33333333) + ((bits >> 2) & 0x33333333);
6460 bits = (bits & 0x0f0f0f0f) + ((bits >> 4) & 0x0f0f0f0f);
6461 bits = (bits & 0x00ff00ff) + ((bits >> 8) & 0x00ff00ff);
6462 return (bits & 0x0000ffff) + ((bits >>16) & 0x0000ffff);
6463 }
6464
6465 static int
6466 is_onechar_cclasscxx . . $ is_onechar_cclass(355f7668d30eb7ba).(CClassNodecxx . . $ CClassNode#* cc, OnigCodePointcxx . . $ OnigCodePoint#* code)
6467 {
6468 const OnigCodePointcxx . . $ OnigCodePoint# not_found = ONIG_LAST_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:304:9`!;
6469 OnigCodePointcxx . . $ OnigCodePoint# c = not_found;
6470 int i;
6471 BBufcxx . . $ BBuf# *bbuf = cc->mbufcxx . . $ $anonymous_type_8d70aa7b33683daf_1#mbuf.;
6472
6473 if (IS_NCCLASS_NOTcxx . . $ `vendor/onigmo-source/regint.h:796:9`!(cc)) return 0;
6474
6475 /* check bbuf */
6476 if (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(bbuf)) {
6477 OnigCodePointcxx . . $ OnigCodePoint# n, *data;
6478 GET_CODE_POINTcxx . . $ `vendor/onigmo-source/regint.h:697:9`!(n, bbuf->p);
6479 data = (OnigCodePointcxx . . $ OnigCodePoint#* )(bbuf->pcxx . . $ _BBuf#p.) + 1;
6480 if ((n == 1) && (data[0] == data[1])) {
6481 /* only one char found in the bbuf, save the code point. */
6482 c = data[0];
6483 if (((c < SINGLE_BYTE_SIZEcxx . . $ `vendor/onigmo-source/regint.h:413:9`!) && BITSET_ATcxx . . $ `vendor/onigmo-source/regint.h:435:9`!(cc->bs, c))) {
6484 /* skip if c is included in the bitset */
6485 c = not_found;
6486 }
6487 }
6488 else {
6489 return 0; /* the bbuf contains multiple chars */
6490 }
6491 }
6492
6493 /* check bitset */
6494 for (i = 0; i < BITSET_SIZEcxx . . $ `vendor/onigmo-source/regint.h:415:9`!; i++) {
6495 Bitscxx . . $ Bits# b1 = cc->bscxx . . $ $anonymous_type_8d70aa7b33683daf_1#bs.[i];
6496 if (b1 != 0) {
6497 if (((b1 & (b1 - 1)) == 0) && (c == not_found)) {
6498 c = BITS_IN_ROOMcxx . . $ `vendor/onigmo-source/regint.h:414:9`! * i + countbitscxx . . $ countbits(4c679297bf94b9eb).(b1 - 1);
6499 } else {
6500 return 0; /* the character class contains multiple chars */
6501 }
6502 }
6503 }
6504
6505 if (c != not_found) {
6506 *code = c;
6507 return 1;
6508 }
6509
6510 /* the character class contains no char. */
6511 return 0;
6512 }
6513
6514
6515 static int
6516 parse_expcxx . . $ parse_exp(93dd89945eafe610).(Nodecxx . . $ Node#** np, OnigTokencxx . . $ OnigToken#* tok, int term,
6517 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
6518 {
6519 int r, len, group = 0;
6520 Nodecxx . . $ Node#* qn;
6521 Nodecxx . . $ Node#** targetp;
6522
6523 *np = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6524 if (tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. == (enum TokenSymscxx . . $ TokenSyms# )term)
6525 goto end_of_token;
6526
6527 switch (tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.) {
6528 case TK_ALTcxx . . $ TK_ALT.:
6529 case TK_EOTcxx . . $ TK_EOT.:
6530 end_of_token:
6531 *np = node_new_emptycxx . . $ node_new_empty(22adfc593233ebb9).();
6532 return tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
6533 break;
6534
6535 case TK_SUBEXP_OPENcxx . . $ TK_SUBEXP_OPEN.:
6536 r = parse_enclosecxx . . $ parse_enclose(93dd89945eafe610).(np, tok, TK_SUBEXP_CLOSEcxx . . $ TK_SUBEXP_CLOSE., src, end, env);
6537 if (r < 0) return r;
6538 if (r == 1) group = 1;
6539 else if (r == 2) { /* option only */
6540 Nodecxx . . $ Node#* target;
6541 OnigOptionTypecxx . . $ OnigOptionType# prev = env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option.;
6542
6543 env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option. = NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->optioncxx . . $ $anonymous_type_d68713db57daa8f0_2#option.;
6544 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, src, end, env);
6545 if (r < 0) {
6546 env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option. = prev;
6547 return r;
6548 }
6549 r = parse_subexpcxx . . $ parse_subexp(93dd89945eafe610).(&target, tok, term, src, end, env);
6550 env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option. = prev;
6551 if (r < 0) {
6552 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(target);
6553 return r;
6554 }
6555 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(*np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = target;
6556 return tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type.;
6557 }
6558 break;
6559
6560 case TK_SUBEXP_CLOSEcxx . . $ TK_SUBEXP_CLOSE.:
6561 if (! IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXPcxx . . $ `vendor/onigmo-source/onigmo.h:590:9`!))
6562 return ONIGERR_UNMATCHED_CLOSE_PARENTHESIScxx . . $ `vendor/onigmo-source/onigmo.h:657:9`!;
6563
6564 if (tok->escapedcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#escaped.) goto tk_raw_byte;
6565 else goto tk_byte;
6566 break;
6567
6568 case TK_LINEBREAKcxx . . $ TK_LINEBREAK.:
6569 r = node_linebreakcxx . . $ node_linebreak(e3c65d24faec4138).(np, env);
6570 if (r < 0) return r;
6571 break;
6572
6573 case TK_EXTENDED_GRAPHEME_CLUSTERcxx . . $ TK_EXTENDED_GRAPHEME_CLUSTER.:
6574 r = node_extended_grapheme_clustercxx . . $ node_extended_grapheme_cluster(e3c65d24faec4138).(np, env);
6575 if (r < 0) return r;
6576 break;
6577
6578 case TK_KEEPcxx . . $ TK_KEEP.:
6579 *np = onig_node_new_anchorcxx . . $ onig_node_new_anchor(27164cd17c3dc213).(ANCHOR_KEEPcxx . . $ `vendor/onigmo-source/regint.h:546:9`!);
6580 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6581 break;
6582
6583 case TK_STRINGcxx . . $ TK_STRING.:
6584 tk_byte:
6585 {
6586 *np = node_new_strcxx . . $ node_new_str(623c155944b20cb6).(tok->backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp., *src);
6587 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6588
6589 string_loop:
6590 while (1) {
6591 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, src, end, env);
6592 if (r < 0) return r;
6593 if (r == TK_STRINGcxx . . $ TK_STRING.) {
6594 r = onig_node_str_catcxx . . $ onig_node_str_cat(7440c71141edaa30).(*np, tok->backpcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#backp., *src);
6595 }
6596 #ifndef NUMBERED_CHAR_IS_NOT_CASE_AMBIG
6597 else if (r == TK_CODE_POINTcxx . . $ TK_CODE_POINT.) {
6598 r = node_str_cat_codepointcxx . . $ node_str_cat_codepoint(67c90752e540c9a8).(*np, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc., tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code.);
6599 }
6600 #endif
6601 else {
6602 break;
6603 }
6604 if (r < 0) return r;
6605 }
6606
6607 string_end:
6608 targetp = np;
6609 goto repeat;
6610 }
6611 break;
6612
6613 case TK_RAW_BYTEcxx . . $ TK_RAW_BYTE.:
6614 tk_raw_byte:
6615 {
6616 *np = node_new_str_raw_charcxx . . $ node_new_str_raw_char(982638904e904a0f).((UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.);
6617 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6618 len = 1;
6619 while (1) {
6620 if (len >= ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(env->enc)) {
6621 if (len == enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(env->enc, NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(*np)->s, NSTRcxx . . $ `vendor/onigmo-source/regparse.h:76:9`!(*np)->end)) {
6622 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, src, end, env);
6623 NSTRING_CLEAR_RAWcxx . . $ `vendor/onigmo-source/regparse.h:110:9`!(*np);
6624 goto string_end;
6625 }
6626 }
6627
6628 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, src, end, env);
6629 if (r < 0) return r;
6630 if (r != TK_RAW_BYTEcxx . . $ TK_RAW_BYTE.) {
6631 /* Don't use this, it is wrong for little endian encodings. */
6632 #ifdef USE_PAD_TO_SHORT_BYTE_CHAR
6633 int rem;
6634 if (len < ONIGENC_MBC_MINLEN(env->enc)) {
6635 rem = ONIGENC_MBC_MINLEN(env->enc) - len;
6636 (void )node_str_head_pad(NSTR(*np), rem, (UChar )0);
6637 if (len + rem == enclen(env->enc, NSTR(*np)->s)) {
6638 NSTRING_CLEAR_RAW(*np);
6639 goto string_end;
6640 }
6641 }
6642 #endif
6643 return ONIGERR_TOO_SHORT_MULTI_BYTE_STRINGcxx . . $ `vendor/onigmo-source/onigmo.h:672:9`!;
6644 }
6645
6646 r = node_str_cat_charcxx . . $ node_str_cat_char(515f7b1c2c41202c).(*np, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..ccxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#c.);
6647 if (r < 0) return r;
6648
6649 len++;
6650 }
6651 }
6652 break;
6653
6654 case TK_CODE_POINTcxx . . $ TK_CODE_POINT.:
6655 {
6656 *np = node_new_emptycxx . . $ node_new_empty(22adfc593233ebb9).();
6657 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6658 r = node_str_cat_codepointcxx . . $ node_str_cat_codepoint(67c90752e540c9a8).(*np, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc., tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..codecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#code.);
6659 if (r != 0) return r;
6660 #ifdef NUMBERED_CHAR_IS_NOT_CASE_AMBIG
6661 NSTRING_SET_RAW(*np);
6662 #else
6663 goto string_loop;
6664 #endif
6665 }
6666 break;
6667
6668 case TK_QUOTE_OPENcxx . . $ TK_QUOTE_OPEN.:
6669 {
6670 OnigCodePointcxx . . $ OnigCodePoint# end_op[2];
6671 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *qstart, *qend, *nextp;
6672
6673 end_op[0] = (OnigCodePointcxx . . $ OnigCodePoint# )MC_ESCcxx . . $ `vendor/onigmo-source/regint.h:748:9`!(env->syntax);
6674 end_op[1] = (OnigCodePointcxx . . $ OnigCodePoint# )'E';
6675 qstart = *src;
6676 qend = find_str_positioncxx . . $ find_str_position(fef164d05bdb22ab).(end_op, 2, qstart, end, &nextp, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc.);
6677 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(qend)) {
6678 nextp = qend = end;
6679 }
6680 *np = node_new_strcxx . . $ node_new_str(623c155944b20cb6).(qstart, qend);
6681 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6682 *src = nextp;
6683 }
6684 break;
6685
6686 case TK_CHAR_TYPEcxx . . $ TK_CHAR_TYPE.:
6687 {
6688 switch (tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype.) {
6689 case ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!:
6690 *np = node_new_ctypecxx . . $ node_new_ctype(d325c0554dd8ad24).(tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype., tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not.,
6691 IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option));
6692 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6693 break;
6694
6695 case ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!:
6696 case ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!:
6697 case ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!:
6698 {
6699 CClassNodecxx . . $ CClassNode#* cc;
6700
6701 *np = node_new_cclasscxx . . $ node_new_cclass(22adfc593233ebb9).();
6702 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6703 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(*np);
6704 r = add_ctype_to_cccxx . . $ add_ctype_to_cc(2d1d5374078e3cdb).(cc, tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..ctypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#ctype., 0,
6705 IS_ASCII_RANGEcxx . . $ `vendor/onigmo-source/regint.h:393:9`!(env->option), env);
6706 if (r != 0) return r;
6707 if (tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..propcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#prop..notcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_9#not. != 0) NCCLASS_SET_NOTcxx . . $ `vendor/onigmo-source/regint.h:794:9`!(cc);
6708 }
6709 break;
6710
6711 default:
6712 return ONIGERR_PARSER_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:631:9`!;
6713 break;
6714 }
6715 }
6716 break;
6717
6718 case TK_CHAR_PROPERTYcxx . . $ TK_CHAR_PROPERTY.:
6719 r = parse_char_propertycxx . . $ parse_char_property(184e4938daada91e).(np, tok, src, end, env);
6720 if (r != 0) return r;
6721 break;
6722
6723 case TK_CC_OPENcxx . . $ TK_CC_OPEN.:
6724 {
6725 Nodecxx . . $ Node# *asc_node;
6726 CClassNodecxx . . $ CClassNode#* cc;
6727 OnigCodePointcxx . . $ OnigCodePoint# code;
6728
6729 r = parse_char_classcxx . . $ parse_char_class(e5be2277c15ad540).(np, &asc_node, tok, src, end, env);
6730 if (r != 0) {
6731 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(asc_node);
6732 return r;
6733 }
6734
6735 cc = NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(*np);
6736 if (is_onechar_cclasscxx . . $ is_onechar_cclass(355f7668d30eb7ba).(cc, &code)) {
6737 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(*np);
6738 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(asc_node);
6739 *np = node_new_emptycxx . . $ node_new_empty(22adfc593233ebb9).();
6740 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6741 r = node_str_cat_codepointcxx . . $ node_str_cat_codepoint(67c90752e540c9a8).(*np, env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc., code);
6742 if (r != 0) return r;
6743 goto string_loop;
6744 }
6745 if (IS_IGNORECASEcxx . . $ `vendor/onigmo-source/regint.h:383:9`!(env->option)) {
6746 r = cclass_case_foldcxx . . $ cclass_case_fold(3716fe709b96542e).(np, cc, NCCLASScxx . . $ `vendor/onigmo-source/regparse.h:77:9`!(asc_node), env);
6747 if (r != 0) {
6748 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(asc_node);
6749 return r;
6750 }
6751 }
6752 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(asc_node);
6753 }
6754 break;
6755
6756 case TK_ANYCHARcxx . . $ TK_ANYCHAR.:
6757 *np = node_new_anycharcxx . . $ node_new_anychar(22adfc593233ebb9).();
6758 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6759 break;
6760
6761 case TK_ANYCHAR_ANYTIMEcxx . . $ TK_ANYCHAR_ANYTIME.:
6762 *np = node_new_anycharcxx . . $ node_new_anychar(22adfc593233ebb9).();
6763 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6764 qn = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(0, REPEAT_INFINITEcxx . . $ `vendor/onigmo-source/regint.h:408:9`!, 0);
6765 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(qn);
6766 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(qn)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_1#target. = *np;
6767 *np = qn;
6768 break;
6769
6770 case TK_BACKREFcxx . . $ TK_BACKREF.:
6771 len = tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..numcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#num.;
6772 *np = node_new_backrefcxx . . $ node_new_backref(fa479dc9e14eaa4e).(len,
6773 (len > 1 ? tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..refscxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#refs. : &(tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..ref1cxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#ref1.)),
6774 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..by_namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#by_name.,
6775 #ifdef USE_BACKREF_WITH_LEVELcxx . . $ `vendor/onigmo-source/regint.h:73:9`!
6776 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..exist_levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#exist_level.,
6777 tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..backrefcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#backref..levelcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_7#level.,
6778 #endif
6779 env);
6780 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6781 break;
6782
6783 #ifdef USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!
6784 case TK_CALLcxx . . $ TK_CALL.:
6785 {
6786 int gnum = tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..gnumcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#gnum.;
6787
6788 if (gnum < 0 || tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..relcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#rel. != 0) {
6789 if (gnum > 0) gnum--;
6790 gnum = BACKREF_REL_TO_ABScxx . . $ `vendor/onigmo-source/regparse.c:157:9`!(gnum, env);
6791 if (gnum <= 0)
6792 return ONIGERR_INVALID_BACKREFcxx . . $ `vendor/onigmo-source/onigmo.h:674:9`!;
6793 }
6794 *np = node_new_callcxx . . $ node_new_call(e24ceb718c3ec826).(tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..namecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name., tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..callcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#call..name_endcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_8#name_end., gnum);
6795 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6796 env->num_callcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_call.++;
6797 }
6798 break;
6799 #endif
6800
6801 case TK_ANCHORcxx . . $ TK_ANCHOR.:
6802 *np = onig_node_new_anchorcxx . . $ onig_node_new_anchor(27164cd17c3dc213).(tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..subtypecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#subtype.);
6803 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(*np);
6804 NANCHORcxx . . $ `vendor/onigmo-source/regparse.h:82:9`!(*np)->ascii_rangecxx . . $ $anonymous_type_d68713db57daa8f0_7#ascii_range. = tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..anchorcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#anchor..ascii_rangecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_5#ascii_range.;
6805 break;
6806
6807 case TK_OP_REPEATcxx . . $ TK_OP_REPEAT.:
6808 case TK_INTERVALcxx . . $ TK_INTERVAL.:
6809 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_CONTEXT_INDEP_REPEAT_OPScxx . . $ `vendor/onigmo-source/onigmo.h:588:9`!)) {
6810 if (IS_SYNTAX_BVcxx . . $ `vendor/onigmo-source/regparse.h:332:9`!(env->syntax, ONIG_SYN_CONTEXT_INVALID_REPEAT_OPScxx . . $ `vendor/onigmo-source/onigmo.h:589:9`!))
6811 return ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIEDcxx . . $ `vendor/onigmo-source/onigmo.h:654:9`!;
6812 else
6813 *np = node_new_emptycxx . . $ node_new_empty(22adfc593233ebb9).();
6814 }
6815 else {
6816 goto tk_byte;
6817 }
6818 break;
6819
6820 default:
6821 return ONIGERR_PARSER_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:631:9`!;
6822 break;
6823 }
6824
6825 {
6826 targetp = np;
6827
6828 re_entry:
6829 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, src, end, env);
6830 if (r < 0) return r;
6831
6832 repeat:
6833 if (r == TK_OP_REPEATcxx . . $ TK_OP_REPEAT. || r == TK_INTERVALcxx . . $ TK_INTERVAL.) {
6834 if (is_invalid_quantifier_targetcxx . . $ `vendor/onigmo-source/regparse.c:2122:10`!(*targetp))
6835 return ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALIDcxx . . $ `vendor/onigmo-source/onigmo.h:655:9`!;
6836
6837 qn = node_new_quantifiercxx . . $ node_new_quantifier(d325c0554dd8ad24).(tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..lowercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#lower., tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..uppercxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#upper.,
6838 (r == TK_INTERVALcxx . . $ TK_INTERVAL. ? 1 : 0));
6839 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(qn);
6840 NQTFRcxx . . $ `vendor/onigmo-source/regparse.h:80:9`!(qn)->greedycxx . . $ $anonymous_type_d68713db57daa8f0_1#greedy. = tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..greedycxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#greedy.;
6841 r = set_quantifiercxx . . $ set_quantifier(bddc198ef2d96bb1).(qn, *targetp, group, env);
6842 if (r < 0) {
6843 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(qn);
6844 return r;
6845 }
6846
6847 if (tok->ucxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#u..repeatcxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#repeat..possessivecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#$anonymous_type_4#$anonymous_type_6#possessive. != 0) {
6848 Nodecxx . . $ Node#* en;
6849 en = node_new_enclosecxx . . $ node_new_enclose(27164cd17c3dc213).(ENCLOSE_STOP_BACKTRACKcxx . . $ `vendor/onigmo-source/regparse.h:96:9`!);
6850 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(en)) {
6851 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(qn);
6852 return ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`!;
6853 }
6854 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(en)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = qn;
6855 qn = en;
6856 }
6857
6858 if (r == 0) {
6859 *targetp = qn;
6860 }
6861 else if (r == 1) {
6862 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(qn);
6863 }
6864 else if (r == 2) { /* split case: /abc+/ */
6865 Nodecxx . . $ Node# *tmp;
6866
6867 *targetp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(*targetp, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
6868 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(*targetp)) {
6869 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(qn);
6870 return ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`!;
6871 }
6872 tmp = NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(*targetp) = node_new_listcxx . . $ node_new_list(9672171f92575b29).(qn, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
6873 if (IS_NULLcxx . . $ `vendor/onigmo-source/regint.h:298:9`!(tmp)) {
6874 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(qn);
6875 return ONIGERR_MEMORYcxx . . $ `vendor/onigmo-source/onigmo.h:629:9`!;
6876 }
6877 targetp = &(NCARcxx . . $ `vendor/onigmo-source/regparse.h:86:9`!(tmp));
6878 }
6879 goto re_entry;
6880 }
6881 }
6882
6883 return r;
6884 }
6885
6886 static int
6887 parse_branchcxx . . $ parse_branch(93dd89945eafe610).(Nodecxx . . $ Node#** top, OnigTokencxx . . $ OnigToken#* tok, int term,
6888 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
6889 {
6890 int r;
6891 Nodecxx . . $ Node# *node, **headp;
6892
6893 *top = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6894 r = parse_expcxx . . $ parse_exp(93dd89945eafe610).(&node, tok, term, src, end, env);
6895 if (r < 0) {
6896 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(node);
6897 return r;
6898 }
6899
6900 if (r == TK_EOTcxx . . $ TK_EOT. || r == term || r == TK_ALTcxx . . $ TK_ALT.) {
6901 *top = node;
6902 }
6903 else {
6904 *top = node_new_listcxx . . $ node_new_list(9672171f92575b29).(node, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
6905 headp = &(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(*top));
6906 while (r != TK_EOTcxx . . $ TK_EOT. && r != term && r != TK_ALTcxx . . $ TK_ALT.) {
6907 r = parse_expcxx . . $ parse_exp(93dd89945eafe610).(&node, tok, term, src, end, env);
6908 if (r < 0) {
6909 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(node);
6910 return r;
6911 }
6912
6913 if (NTYPEcxx . . $ `vendor/onigmo-source/regparse.h:69:9`!(node) == NT_LISTcxx . . $ `vendor/onigmo-source/regparse.h:46:9`!) {
6914 *headp = node;
6915 while (IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regint.h:299:9`!(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(node))) node = NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(node);
6916 headp = &(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(node));
6917 }
6918 else {
6919 *headp = node_new_listcxx . . $ node_new_list(9672171f92575b29).(node, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
6920 headp = &(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(*headp));
6921 }
6922 }
6923 }
6924
6925 return r;
6926 }
6927
6928 /* term_tok: TK_EOT or TK_SUBEXP_CLOSE */
6929 static int
6930 parse_subexpcxx . . $ parse_subexp(93dd89945eafe610).(Nodecxx . . $ Node#** top, OnigTokencxx . . $ OnigToken#* tok, int term,
6931 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
6932 {
6933 int r;
6934 Nodecxx . . $ Node# *node, **headp;
6935
6936 *top = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
6937 env->parse_depthcxx . . $ $anonymous_type_d68713db57daa8f0_11#parse_depth.++;
6938 if (env->parse_depthcxx . . $ $anonymous_type_d68713db57daa8f0_11#parse_depth. > ParseDepthLimitcxx . . $ ParseDepthLimit.)
6939 return ONIGERR_PARSE_DEPTH_LIMIT_OVERcxx . . $ `vendor/onigmo-source/onigmo.h:636:9`!;
6940 r = parse_branchcxx . . $ parse_branch(93dd89945eafe610).(&node, tok, term, src, end, env);
6941 if (r < 0) {
6942 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(node);
6943 return r;
6944 }
6945
6946 if (r == term) {
6947 *top = node;
6948 }
6949 else if (r == TK_ALTcxx . . $ TK_ALT.) {
6950 *top = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(node, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
6951 headp = &(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(*top));
6952 while (r == TK_ALTcxx . . $ TK_ALT.) {
6953 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(tok, src, end, env);
6954 if (r < 0) return r;
6955 r = parse_branchcxx . . $ parse_branch(93dd89945eafe610).(&node, tok, term, src, end, env);
6956 if (r < 0) {
6957 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(node);
6958 return r;
6959 }
6960
6961 *headp = onig_node_new_altcxx . . $ onig_node_new_alt(9672171f92575b29).(node, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
6962 headp = &(NCDRcxx . . $ `vendor/onigmo-source/regparse.h:87:9`!(*headp));
6963 }
6964
6965 if (tok->typecxx . . $ $anonymous_type_37a8ae11dfe1d9f1_3#type. != (enum TokenSymscxx . . $ TokenSyms# )term)
6966 goto err;
6967 }
6968 else {
6969 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(node);
6970 err:
6971 if (term == TK_SUBEXP_CLOSEcxx . . $ TK_SUBEXP_CLOSE.)
6972 return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIScxx . . $ `vendor/onigmo-source/onigmo.h:658:9`!;
6973 else
6974 return ONIGERR_PARSER_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:631:9`!;
6975 }
6976
6977 env->parse_depthcxx . . $ $anonymous_type_d68713db57daa8f0_11#parse_depth.--;
6978 return r;
6979 }
6980
6981 static int
6982 parse_regexpcxx . . $ parse_regexp(fc4ae3c4302a8566).(Nodecxx . . $ Node#** top, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** src, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, ScanEnvcxx . . $ ScanEnv#* env)
6983 {
6984 int r;
6985 OnigTokencxx . . $ OnigToken# tok;
6986
6987 r = fetch_tokencxx . . $ fetch_token(de72a1a7a5477f35).(&tok, src, end, env);
6988 if (r < 0) return r;
6989 r = parse_subexpcxx . . $ parse_subexp(93dd89945eafe610).(top, &tok, TK_EOTcxx . . $ TK_EOT., src, end, env);
6990 if (r < 0) return r;
6991
6992 #ifdef USE_SUBEXP_CALLcxx . . $ `vendor/onigmo-source/regint.h:70:9`!
6993 if (env->num_callcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_call. > 0) {
6994 /* Capture the pattern itself. It is used for (?R), (?0) and \g<0>. */
6995 const int num = 0;
6996 Nodecxx . . $ Node#* np;
6997 np = node_new_enclose_memorycxx . . $ node_new_enclose_memory(b76236d99bedb036).(env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option., 0);
6998 CHECK_NULL_RETURN_MEMERRcxx . . $ `vendor/onigmo-source/regint.h:301:9`!(np);
6999 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(np)->regnumcxx . . $ $anonymous_type_d68713db57daa8f0_2#regnum. = num;
7000 NENCLOSEcxx . . $ `vendor/onigmo-source/regparse.h:81:9`!(np)->targetcxx . . $ $anonymous_type_d68713db57daa8f0_2#target. = *top;
7001 r = scan_env_set_mem_nodecxx . . $ scan_env_set_mem_node(5f4f4d6b3eb89ac3).(env, num, np);
7002 if (r != 0) {
7003 onig_node_freecxx . . $ onig_node_free(92a4f0b7cd2782eb).(np);
7004 return r;
7005 }
7006 *top = np;
7007 }
7008 #endif
7009 return 0;
7010 }
7011
7012 extern int
7013 onig_parse_make_treecxx . . $ onig_parse_make_tree(f72d8c603aa416a7).(Nodecxx . . $ Node#** root, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* pattern, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end,
7014 regex_tcxx . . $ regex_t#* reg, ScanEnvcxx . . $ ScanEnv#* env)
7015 {
7016 int r;
7017 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p;
7018
7019 #ifdef USE_NAMED_GROUPcxx . . $ `vendor/onigmo-source/regint.h:69:9`!
7020 names_clearcxx . . $ names_clear(db681f3d53a24e05).(reg);
7021 #endif
7022
7023 scan_env_clearcxx . . $ scan_env_clear(5e95567f993df0d4).(env);
7024 env->optioncxx . . $ $anonymous_type_d68713db57daa8f0_11#option. = reg->optionscxx . . $ re_pattern_buffer#options.;
7025 env->case_fold_flagcxx . . $ $anonymous_type_d68713db57daa8f0_11#case_fold_flag. = reg->case_fold_flagcxx . . $ re_pattern_buffer#case_fold_flag.;
7026 env->enccxx . . $ $anonymous_type_d68713db57daa8f0_11#enc. = reg->enccxx . . $ re_pattern_buffer#enc.;
7027 env->syntaxcxx . . $ $anonymous_type_d68713db57daa8f0_11#syntax. = reg->syntaxcxx . . $ re_pattern_buffer#syntax.;
7028 env->patterncxx . . $ $anonymous_type_d68713db57daa8f0_11#pattern. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )pattern;
7029 env->pattern_endcxx . . $ $anonymous_type_d68713db57daa8f0_11#pattern_end. = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )end;
7030 env->regcxx . . $ $anonymous_type_d68713db57daa8f0_11#reg. = reg;
7031
7032 *root = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
7033 p = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )pattern;
7034 r = parse_regexpcxx . . $ parse_regexp(fc4ae3c4302a8566).(root, &p, (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )end, env);
7035 reg->num_memcxx . . $ re_pattern_buffer#num_mem. = env->num_memcxx . . $ $anonymous_type_d68713db57daa8f0_11#num_mem.;
7036 return r;
7037 }
7038
7039 extern void
7040 onig_scan_env_set_error_stringcxx . . $ onig_scan_env_set_error_string(c0cd2a0033022035).(ScanEnvcxx . . $ ScanEnv#* env, int ecode ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!,
7041 UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* arg, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* arg_end)
7042 {
7043 env->errorcxx . . $ $anonymous_type_d68713db57daa8f0_11#error. = arg;
7044 env->error_endcxx . . $ $anonymous_type_d68713db57daa8f0_11#error_end. = arg_end;
7045 }