Debian Codegraph @

vendor/onigmo-source/enc/shift_jis.c

raw symbols SCIP
1 /**********************************************************************
2 sjis.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 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 "regenc.h"cxx . . $ `<file>/vendor/onigmo-source/regenc.h`/
32
33 static const int EncLen_SJIScxx . . $ EncLen_SJIS.[] = {
34 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
35 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
36 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
37 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
38 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
39 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
40 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
41 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
42 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
43 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
44 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
45 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
46 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
47 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
48 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
49 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1
50 };
51
52 static const char SJIS_CAN_BE_TRAIL_TABLEcxx . . $ SJIS_CAN_BE_TRAIL_TABLE.[256] = {
53 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
54 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
55 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
56 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
57 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
58 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
59 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
60 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
61 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
62 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
63 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
64 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
65 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
66 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
67 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
68 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0
69 };
70
71 static const OnigPairCaseFoldCodescxx . . $ OnigPairCaseFoldCodes# CaseFoldMapcxx . . $ CaseFoldMap.[] = {
72 /* Fullwidth Alphabet */
73 { 0x8260, 0x8281 },
74 { 0x8261, 0x8282 },
75 { 0x8262, 0x8283 },
76 { 0x8263, 0x8284 },
77 { 0x8264, 0x8285 },
78 { 0x8265, 0x8286 },
79 { 0x8266, 0x8287 },
80 { 0x8267, 0x8288 },
81 { 0x8268, 0x8289 },
82 { 0x8269, 0x828a },
83 { 0x826a, 0x828b },
84 { 0x826b, 0x828c },
85 { 0x826c, 0x828d },
86 { 0x826d, 0x828e },
87 { 0x826e, 0x828f },
88 { 0x826f, 0x8290 },
89 { 0x8270, 0x8291 },
90 { 0x8271, 0x8292 },
91 { 0x8272, 0x8293 },
92 { 0x8273, 0x8294 },
93 { 0x8274, 0x8295 },
94 { 0x8275, 0x8296 },
95 { 0x8276, 0x8297 },
96 { 0x8277, 0x8298 },
97 { 0x8278, 0x8299 },
98 { 0x8279, 0x829a },
99
100 /* Greek */
101 { 0x839f, 0x83bf },
102 { 0x83a0, 0x83c0 },
103 { 0x83a1, 0x83c1 },
104 { 0x83a2, 0x83c2 },
105 { 0x83a3, 0x83c3 },
106 { 0x83a4, 0x83c4 },
107 { 0x83a5, 0x83c5 },
108 { 0x83a6, 0x83c6 },
109 { 0x83a7, 0x83c7 },
110 { 0x83a8, 0x83c8 },
111 { 0x83a9, 0x83c9 },
112 { 0x83aa, 0x83ca },
113 { 0x83ab, 0x83cb },
114 { 0x83ac, 0x83cc },
115 { 0x83ad, 0x83cd },
116 { 0x83ae, 0x83ce },
117 { 0x83af, 0x83cf },
118 { 0x83b0, 0x83d0 },
119 { 0x83b1, 0x83d1 },
120 { 0x83b2, 0x83d2 },
121 { 0x83b3, 0x83d3 },
122 { 0x83b4, 0x83d4 },
123 { 0x83b5, 0x83d5 },
124 { 0x83b6, 0x83d6 },
125
126 /* Cyrillic */
127 { 0x8440, 0x8470 },
128 { 0x8441, 0x8471 },
129 { 0x8442, 0x8472 },
130 { 0x8443, 0x8473 },
131 { 0x8444, 0x8474 },
132 { 0x8445, 0x8475 },
133 { 0x8446, 0x8476 },
134 { 0x8447, 0x8477 },
135 { 0x8448, 0x8478 },
136 { 0x8449, 0x8479 },
137 { 0x844a, 0x847a },
138 { 0x844b, 0x847b },
139 { 0x844c, 0x847c },
140 { 0x844d, 0x847d },
141 { 0x844e, 0x847e },
142 { 0x844f, 0x8480 },
143 { 0x8450, 0x8481 },
144 { 0x8451, 0x8482 },
145 { 0x8452, 0x8483 },
146 { 0x8453, 0x8484 },
147 { 0x8454, 0x8485 },
148 { 0x8455, 0x8486 },
149 { 0x8456, 0x8487 },
150 { 0x8457, 0x8488 },
151 { 0x8458, 0x8489 },
152 { 0x8459, 0x848a },
153 { 0x845a, 0x848b },
154 { 0x845b, 0x848c },
155 { 0x845c, 0x848d },
156 { 0x845d, 0x848e },
157 { 0x845e, 0x848f },
158 { 0x845f, 0x8490 },
159 { 0x8460, 0x8491 },
160 };
161
162 #define SJIS_ISMB_FIRSTcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:162:9`!(byte) (EncLen_SJIS[byte] > 1)
163 #define SJIS_ISMB_TRAILcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:163:9`!(byte) SJIS_CAN_BE_TRAIL_TABLE[(byte)]
164
165 typedef enumcxx . . $ $anonymous_type_71f8bfcb727d08c7_0# { FAILUREcxx . . $ FAILURE. = -2, ACCEPTcxx . . $ ACCEPT. = -1, S0cxx . . $ S0. = 0, S1cxx . . $ S1. } state_tcxx . . $ state_t#;
166 #define Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`! ACCEPT
167 #define Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`! FAILURE
168 static const signed char transcxx . . $ trans.[][0x100] = {
169 { /* S0 0 1 2 3 4 5 6 7 8 9 a b c d e f */
170 /* 0 */ Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT.,
171 /* 1 */ Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT.,
172 /* 2 */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT.,
173 /* 3 */ Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT.,
174 /* 4 */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT.,
175 /* 5 */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT.,
176 /* 6 */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
177 /* 7 */ Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT.,
178 /* 8 */ Fcxx . . $ FAILURE., 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
179 /* 9 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
180 /* a */ Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT.,
181 /* b */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
182 /* c */ Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
183 /* d */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT.,
184 /* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
185 /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE.
186 },
187 { /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
188 /* 0 */ Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE.,
189 /* 1 */ Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!,
190 /* 2 */ Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE.,
191 /* 3 */ Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE.,
192 /* 4 */ Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT.,
193 /* 5 */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT.,
194 /* 6 */ Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
195 /* 7 */ Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!,
196 /* 8 */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
197 /* 9 */ Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
198 /* a */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT.,
199 /* b */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
200 /* c */ Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
201 /* d */ Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
202 /* e */ Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!,
203 /* f */ Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!, Acxx . . $ ACCEPT., Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!, Fcxx . . $ FAILURE., Fcxx . . $ FAILURE.
204 }
205 };
206 #undef Acxx . . $ `vendor/onigmo-source/enc/shift_jis.c:166:9`!
207 #undef Fcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:167:9`!
208
209 static int
210 mbc_enc_lencxx . . $ mbc_enc_len(d6816dd497b890ca).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ OnigUChar#* e, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regenc.h:82:11`!)
211 {
212 int firstbyte = *p++;
213 state_tcxx . . $ state_t# s;
214 s = transcxx . . $ trans.[0][firstbyte];
215 if (s < 0) return s == ACCEPTcxx . . $ ACCEPT. ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUNDcxx . . $ `vendor/onigmo-source/onigmo.h:345:9`!(1) :
216 ONIGENC_CONSTRUCT_MBCLEN_INVALIDcxx . . $ `vendor/onigmo-source/onigmo.h:349:9`!();
217 if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMOREcxx . . $ `vendor/onigmo-source/onigmo.h:352:9`!(EncLen_SJIS[firstbyte]-1);
218 s = transcxx . . $ trans.[s][*p++];
219 return s == ACCEPTcxx . . $ ACCEPT. ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUNDcxx . . $ `vendor/onigmo-source/onigmo.h:345:9`!(2) :
220 ONIGENC_CONSTRUCT_MBCLEN_INVALIDcxx . . $ `vendor/onigmo-source/onigmo.h:349:9`!();
221 }
222
223 static int
224 code_to_mbclencxx . . $ code_to_mbclen(ed1ebf883eff915d).(OnigCodePointcxx . . $ OnigCodePoint# code, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regenc.h:82:11`!)
225 {
226 if (code < 256) {
227 if (EncLen_SJIScxx . . $ EncLen_SJIS.[(int )code] == 1)
228 return 1;
229 else
230 return ONIGERR_INVALID_CODE_POINT_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:689:9`!;
231 }
232 else if (code <= 0xffff) {
233 int low = code & 0xff;
234 if (! SJIS_ISMB_TRAILcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:163:9`!(low))
235 return ONIGERR_INVALID_CODE_POINT_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:689:9`!;
236 return 2;
237 }
238 else
239 return ONIGERR_TOO_BIG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:691:9`!;
240 }
241
242 static OnigCodePointcxx . . $ OnigCodePoint#
243 mbc_to_codecxx . . $ mbc_to_code(542d90b8bf35e660).(const UCharcxx . . $ OnigUChar#* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, OnigEncodingcxx . . $ OnigEncoding# enc)
244 {
245 int c, i, len;
246 OnigCodePointcxx . . $ OnigCodePoint# n;
247
248 len = mbc_enc_lencxx . . $ mbc_enc_len(d6816dd497b890ca).(p, end, enc);
249 c = *p++;
250 n = c;
251 if (len == 1) return n;
252
253 for (i = 1; i < len; i++) {
254 if (p >= end) break;
255 c = *p++;
256 n <<= 8; n += c;
257 }
258 return n;
259 }
260
261 static int
262 code_to_mbccxx . . $ code_to_mbc(cc36a00e84837546).(OnigCodePointcxx . . $ OnigCodePoint# code, UCharcxx . . $ OnigUChar# *buf, OnigEncodingcxx . . $ OnigEncoding# enc)
263 {
264 UCharcxx . . $ OnigUChar# *p = buf;
265
266 if ((code & 0xff00) != 0) *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )(((code >> 8) & 0xff));
267 *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )(code & 0xff);
268
269 #if 0
270 if (mbc_enc_len(buf, p, enc) != (p - buf))
271 return REGERR_INVALID_CODE_POINT_VALUE;
272 #endif
273 return (int )(p - buf);
274 }
275
276 static int
277 apply_all_case_foldcxx . . $ apply_all_case_fold(52943f35c546f971).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag,
278 OnigApplyAllCaseFoldFunccxx . . $ OnigApplyAllCaseFoldFunc# f, void* arg, OnigEncodingcxx . . $ OnigEncoding# enc)
279 {
280 return onigenc_apply_all_case_fold_with_mapcxx . . $ onigenc_apply_all_case_fold_with_map(32419d965c6747dc).(
281 numberofcxx . . $ `vendor/onigmo-source/regenc.h:128:10`!(CaseFoldMap), CaseFoldMapcxx . . $ CaseFoldMap., 0,
282 flag, f, arg);
283 }
284
285 static OnigCodePointcxx . . $ OnigCodePoint#
286 get_lower_casecxx . . $ get_lower_case(2141b656ce2cc063).(OnigCodePointcxx . . $ OnigCodePoint# code)
287 {
288 if (ONIGENC_IS_IN_RANGEcxx . . $ OnigCodePoint#(code, 0x8260, 0x8279)) {
289 /* Fullwidth Alphabet */
290 return (OnigCodePointcxx . . $ OnigCodePoint# )(code + 0x0021);
291 }
292 else if (ONIGENC_IS_IN_RANGEcxx . . $ OnigCodePoint#(code, 0x839f, 0x83b6)) {
293 /* Greek */
294 return (OnigCodePointcxx . . $ OnigCodePoint# )(code + 0x0020);
295 }
296 else if (ONIGENC_IS_IN_RANGEcxx . . $ `vendor/onigmo-source/regenc.h:223:9`!(code, 0x8440, 0x8460)) {
297 /* Cyrillic */
298 int d = (code >= 0x844f) ? 1 : 0;
299 return (OnigCodePointcxx . . $ OnigCodePoint# )(code + (0x0030 + d));
300 }
301 return code;
302 }
303
304 static OnigCodePointcxx . . $ OnigCodePoint#
305 get_upper_casecxx . . $ get_upper_case(2141b656ce2cc063).(OnigCodePointcxx . . $ OnigCodePoint# code)
306 {
307 if (ONIGENC_IS_IN_RANGEcxx . . $ `vendor/onigmo-source/regenc.h:223:9`!(code, 0x8281, 0x829a)) {
308 /* Fullwidth Alphabet */
309 return (OnigCodePointcxx . . $ OnigCodePoint# )(code - 0x0021);
310 }
311 else if (ONIGENC_IS_IN_RANGEcxx . . $ OnigCodePoint#(code, 0x83bf, 0x83d6)) {
312 /* Greek */
313 return (OnigCodePointcxx . . $ OnigCodePoint# )(code - 0x0020);
314 }
315 else if (ONIGENC_IS_IN_RANGEcxx . . $ `vendor/onigmo-source/regenc.h:223:9`!(code, 0x8470, 0x847e) ||
316 ONIGENC_IS_IN_RANGEcxx . . $ OnigCodePoint#(code, 0x8480, 0x8491)) {
317 /* Cyrillic */
318 int d = (code >= 0x8480) ? 1 : 0;
319 return (OnigCodePointcxx . . $ OnigCodePoint# )(code - (0x0030 - d));
320 }
321 return code;
322 }
323
324 static int
325 get_case_fold_codes_by_strcxx . . $ get_case_fold_codes_by_str(915325dbff6e96ee).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag,
326 const OnigUCharcxx . . $ OnigUChar#* p, const OnigUCharcxx . . $ OnigUChar#* end,
327 OnigCaseFoldCodeItemcxx . . $ OnigCaseFoldCodeItem# items[], OnigEncodingcxx . . $ OnigEncoding# enc)
328 {
329 int len;
330 OnigCodePointcxx . . $ OnigCodePoint# code, code_lo, code_up;
331
332 code = mbc_to_codecxx . . $ mbc_to_code(542d90b8bf35e660).(p, end, enc);
333 if (ONIGENC_IS_ASCII_CODEcxx . . $ `vendor/onigmo-source/regenc.h:213:9`!(code))
334 return onigenc_ascii_get_case_fold_codes_by_strcxx . . $ onigenc_ascii_get_case_fold_codes_by_str(915325dbff6e96ee).(flag, p, end, items, enc);
335
336 len = mbc_enc_lencxx . . $ mbc_enc_len(d6816dd497b890ca).(p, end, enc);
337 code_lo = get_lower_casecxx . . $ get_lower_case(2141b656ce2cc063).(code);
338 code_up = get_upper_casecxx . . $ get_upper_case(2141b656ce2cc063).(code);
339
340 if (code != code_lo) {
341 items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = len;
342 items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1;
343 items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = code_lo;
344 return 1;
345 }
346 else if (code != code_up) {
347 items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = len;
348 items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1;
349 items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = code_up;
350 return 1;
351 }
352
353 return 0;
354 }
355
356 static int
357 mbc_case_foldcxx . . $ mbc_case_fold(c1ec0ee5809b8ef8).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag,
358 const UCharcxx . . $ OnigUChar#** pp, const UCharcxx . . $ OnigUChar#* end, UCharcxx . . $ OnigUChar#* lower,
359 OnigEncodingcxx . . $ OnigEncoding# enc)
360 {
361 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = *pp;
362
363 if (ONIGENC_IS_MBC_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:320:9`!(p)) {
364 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASEcxx . . $ `vendor/onigmo-source/regenc.h:214:9`!(*p);
365 (*pp)++;
366 return 1;
367 }
368 else {
369 OnigCodePointcxx . . $ OnigCodePoint# code;
370 int len;
371
372 code = get_lower_casecxx . . $ get_lower_case(2141b656ce2cc063).(mbc_to_codecxx . . $ mbc_to_code(542d90b8bf35e660).(p, end, enc));
373 len = code_to_mbccxx . . $ code_to_mbc(cc36a00e84837546).(code, lower, enc);
374 (*pp) += len;
375 return len; /* return byte length of converted char to lower */
376 }
377 }
378
379 #if 0
380 static int
381 is_mbc_ambiguous(OnigCaseFoldType flag,
382 const UChar** pp, const UChar* end)
383 {
384 return onigenc_mbn_is_mbc_ambiguous(enc, flag, pp, end);
385
386 }
387 #endif
388
389 #if 0
390 static int
391 is_code_ctype(OnigCodePoint code, unsigned int ctype)
392 {
393 if (code < 128)
394 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype);
395 else {
396 if (CTYPE_IS_WORD_GRAPH_PRINT(ctype)) {
397 return (code_to_mbclen(code) > 1 ? TRUE : FALSE);
398 }
399 }
400
401 return FALSE;
402 }
403 #endif
404
405 static UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!*
406 left_adjust_char_headcxx . . $ left_adjust_char_head(e837d4bf7cdd11f9).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ OnigUChar#* end, OnigEncodingcxx . . $ OnigEncoding# enc)
407 {
408 const UCharcxx . . $ OnigUChar# *p;
409 int len;
410
411 if (s <= start) return (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )s;
412 p = s;
413
414 if (SJIS_ISMB_TRAILcxx . . $ `vendor/onigmo-source/enc/shift_jis.c:163:9`!(*p)) {
415 while (p > start) {
416 if (! SJIS_ISMB_FIRSTcxx . . $ EncLen_SJIS.(*--p)) {
417 p++;
418 break;
419 }
420 }
421 }
422 len = mbc_enc_lencxx . . $ mbc_enc_len(d6816dd497b890ca).(p, end, enc);
423 if (p + len > s) return (UCharcxx . . $ OnigUChar#* )p;
424 p += len;
425 return (UCharcxx . . $ OnigUChar#* )(p + ((s - p) & ~1));
426 }
427
428 static int
429 is_allowed_reverse_matchcxx . . $ is_allowed_reverse_match(d6816dd497b890ca).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regenc.h:82:11`!)
430 {
431 const UCharcxx . . $ OnigUChar# c = *s;
432 return (SJIS_ISMB_TRAILcxx . . $ SJIS_CAN_BE_TRAIL_TABLE.(c) ? FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`! : TRUEcxx . . $ `vendor/onigmo-source/regenc.h:73:10`!);
433 }
434
435
436 static const OnigCodePointcxx . . $ OnigCodePoint# CR_Hiraganacxx . . $ CR_Hiragana.[] = {
437 1,
438 0x829f, 0x82f1
439 }; /* CR_Hiragana */
440
441 static const OnigCodePointcxx . . $ OnigCodePoint# CR_Katakanacxx . . $ CR_Katakana.[] = {
442 4,
443 0x00a6, 0x00af,
444 0x00b1, 0x00dd,
445 0x8340, 0x837e,
446 0x8380, 0x8396,
447 }; /* CR_Katakana */
448
449 #ifdef ENC_CP932cxx . . $ `vendor/onigmo-source/enc/windows_31j.c:31:9`!
450 static const OnigCodePointcxx . . $ OnigCodePoint# CR_Hancxx . . $ CR_Han.[] = {
451 6,
452 0x8157, 0x8157,
453 0x889f, 0x9872, /* Kanji level 1 */
454 0x989f, 0x9ffc, /* Kanji level 2 */
455 0xe040, 0xeaa4, /* Kanji level 2 */
456 0xed40, 0xeeec, /* NEC-selected IBM extended characters (without symbols) */
457 0xfa5c, 0xfc4b, /* IBM extended characters (without symbols) */
458 }; /* CR_Han */
459 #else
460 static const OnigCodePointcxx . . $ OnigCodePoint# CR_Hancxx . . $ CR_Han.[] = {
461 4,
462 0x8157, 0x8157,
463 0x889f, 0x9872, /* Kanji level 1 */
464 0x989f, 0x9ffc, /* Kanji level 2 */
465 0xe040, 0xeaa4, /* Kanji level 2 */
466 }; /* CR_Han */
467 #endif
468
469 static const OnigCodePointcxx . . $ OnigCodePoint# CR_Latincxx . . $ CR_Latin.[] = {
470 4,
471 0x0041, 0x005a,
472 0x0061, 0x007a,
473 0x8260, 0x8279,
474 0x8281, 0x829a,
475 }; /* CR_Latin */
476
477 static const OnigCodePointcxx . . $ OnigCodePoint# CR_Greekcxx . . $ CR_Greek.[] = {
478 2,
479 0x839f, 0x83b6,
480 0x83bf, 0x83d6,
481 }; /* CR_Greek */
482
483 static const OnigCodePointcxx . . $ OnigCodePoint# CR_Cyrilliccxx . . $ CR_Cyrillic.[] = {
484 3,
485 0x8440, 0x8460,
486 0x8470, 0x847f,
487 0x8480, 0x8491,
488 }; /* CR_Cyrillic */
489
490 #include "enc/jis/props.h"cxx . . $ `<file>/vendor/onigmo-source/enc/jis/props.h`/
491
492 static int
493 property_name_to_ctypecxx . . $ property_name_to_ctype(fb2245aa60ebfd32).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end)
494 {
495 const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *s = p, *e = end;
496 const struct enc_propertycxx . . $ enc_property# *prop =
497 onig_jis_propertycxx . . $ onig_jis_property(29713784f43c6afe).((const char* )s, (unsigned int )(e - s));
498
499 if (!prop) {
500 return onigenc_minimum_property_name_to_ctypecxx . . $ onigenc_minimum_property_name_to_ctype(fb2245aa60ebfd32).(enc, s, e);
501 }
502
503 return (int )prop->ctypecxx . . $ enc_property#ctype.;
504 }
505
506 static int
507 is_code_ctypecxx . . $ is_code_ctype(7f36058cb237933f).(OnigCodePointcxx . . $ OnigCodePoint# code, unsigned int ctype, OnigEncodingcxx . . $ OnigEncoding# enc)
508 {
509 if (ctype <= ONIGENC_MAX_STD_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:309:9`!) {
510 if (code < 128)
511 return ONIGENC_IS_ASCII_CODE_CTYPEcxx . . $ `vendor/onigmo-source/regenc.h:216:9`!(code, ctype);
512 else {
513 if (CTYPE_IS_WORD_GRAPH_PRINTcxx . . $ `vendor/onigmo-source/regenc.h:113:9`!(ctype)) {
514 return TRUEcxx . . $ `vendor/onigmo-source/regenc.h:73:10`!;
515 }
516 }
517 }
518 else {
519 ctype -= (ONIGENC_MAX_STD_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:309:9`! + 1);
520 if (ctype >= (unsigned int )PropertyListNumcxx . . $ PropertyListNum.)
521 return ONIGERR_TYPE_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:630:9`!;
522
523 return onig_is_in_code_rangecxx . . $ onig_is_in_code_range(f360f2bcf3cfccb1).((UCharcxx . . $ OnigUChar#* )PropertyListcxx . . $ PropertyList.[ctype], code);
524 }
525
526 return FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!;
527 }
528
529 static int
530 get_ctype_code_rangecxx . . $ get_ctype_code_range(f3da0df4ba860021).(OnigCtypecxx . . $ OnigCtype# ctype, OnigCodePointcxx . . $ OnigCodePoint#* sb_out,
531 const OnigCodePointcxx . . $ OnigCodePoint#* ranges[], OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regenc.h:82:11`!)
532 {
533 if (ctype <= ONIGENC_MAX_STD_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:309:9`!) {
534 return ONIG_NO_SUPPORT_CONFIGcxx . . $ `vendor/onigmo-source/onigmo.h:626:9`!;
535 }
536 else {
537 *sb_out = 0x80;
538
539 ctype -= (ONIGENC_MAX_STD_CTYPEcxx . . $ `vendor/onigmo-source/onigmo.h:309:9`! + 1);
540 if (ctype >= (OnigCtypecxx . . $ OnigCtype# )PropertyListNumcxx . . $ PropertyListNum.)
541 return ONIGERR_TYPE_BUGcxx . . $ `vendor/onigmo-source/onigmo.h:630:9`!;
542
543 *ranges = PropertyListcxx . . $ PropertyList.[ctype];
544 return 0;
545 }
546 }
547
548 #ifndef ENC_CP932cxx . . $ `vendor/onigmo-source/enc/windows_31j.c:31:9`!
549 OnigEncodingDefinecxx . . $ OnigEncodingShift_JIS.(shift_jis, Shift_JIS) = {
550 mbc_enc_lencxx . . $ mbc_enc_len(d6816dd497b890ca).,
551 "Shift_JIS", /* name */
552 2, /* max byte length */
553 1, /* min byte length */
554 onigenc_is_mbc_newline_0x0acxx . . $ onigenc_is_mbc_newline_0x0a(d6816dd497b890ca).,
555 mbc_to_codecxx . . $ mbc_to_code(542d90b8bf35e660).,
556 code_to_mbclencxx . . $ code_to_mbclen(ed1ebf883eff915d).,
557 code_to_mbccxx . . $ code_to_mbc(cc36a00e84837546).,
558 mbc_case_foldcxx . . $ mbc_case_fold(c1ec0ee5809b8ef8).,
559 apply_all_case_foldcxx . . $ apply_all_case_fold(52943f35c546f971).,
560 get_case_fold_codes_by_strcxx . . $ get_case_fold_codes_by_str(915325dbff6e96ee).,
561 property_name_to_ctypecxx . . $ property_name_to_ctype(fb2245aa60ebfd32).,
562 is_code_ctypecxx . . $ is_code_ctype(7f36058cb237933f).,
563 get_ctype_code_rangecxx . . $ get_ctype_code_range(f3da0df4ba860021).,
564 left_adjust_char_headcxx . . $ left_adjust_char_head(e837d4bf7cdd11f9).,
565 is_allowed_reverse_matchcxx . . $ is_allowed_reverse_match(d6816dd497b890ca).,
566 onigenc_ascii_only_case_mapcxx . . $ onigenc_ascii_only_case_map(963ee2b6f1418456).,
567 0,
568 ONIGENC_FLAG_NONEcxx . . $ `vendor/onigmo-source/onigmo.h:312:9`!,
569 };
570 /*
571 * Name: Shift_JIS
572 * MIBenum: 17
573 * Link: http://www.iana.org/assignments/character-sets
574 * Link: http://ja.wikipedia.org/wiki/Shift_JIS
575 */
576
577 /*
578 * Name: MacJapanese
579 * Link: http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/JAPANESE.TXT
580 * Link: http://ja.wikipedia.org/wiki/MacJapanese
581 */
582 ENC_REPLICATEcxx . . $ `vendor/onigmo-source/regenc.h:245:9`!("MacJapanese", "Shift_JIS")
583 ENC_ALIAScxx . . $ `vendor/onigmo-source/regenc.h:246:9`!("MacJapan", "MacJapanese")
584 #endif