| 1 | /********************************************************************** |
| 2 | regenc.c - Onigmo (Oniguruma-mod) (regular expression library) |
| 3 | **********************************************************************/ |
| 4 | /*- |
| 5 | * Copyright (c) 2002-2007 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 "regint.h"cxx . . $ `<file>/vendor/onigmo-source/regint.h`/ |
| 32 | |
| 33 | OnigEncodingcxx . . $ OnigEncoding# OnigEncDefaultCharEncodingcxx . . $ OnigEncDefaultCharEncoding. = ONIG_ENCODING_INIT_DEFAULTcxx . . $ `vendor/onigmo-source/regenc.h:139:9`!; |
| 34 | |
| 35 | extern int |
| 36 | onigenc_initcxx . . $ onigenc_init(b126dc7c1de90089).(void) |
| 37 | { |
| 38 | return 0; |
| 39 | } |
| 40 | |
| 41 | extern OnigEncodingcxx . . $ OnigEncoding# |
| 42 | onigenc_get_default_encodingcxx . . $ onigenc_get_default_encoding(5fbf128380eb001a).(void) |
| 43 | { |
| 44 | return OnigEncDefaultCharEncodingcxx . . $ OnigEncDefaultCharEncoding.; |
| 45 | } |
| 46 | |
| 47 | extern int |
| 48 | onigenc_set_default_encodingcxx . . $ onigenc_set_default_encoding(33f7db2cc2653896).(OnigEncodingcxx . . $ OnigEncoding# enc) |
| 49 | { |
| 50 | OnigEncDefaultCharEncodingcxx . . $ OnigEncDefaultCharEncoding. = enc; |
| 51 | return 0; |
| 52 | } |
| 53 | |
| 54 | extern int |
| 55 | onigenc_mbclen_approximatecxx . . $ onigenc_mbclen_approximate(d6816dd497b890ca).(const OnigUCharcxx . . $ OnigUChar#* p,const OnigUCharcxx . . $ OnigUChar#* e, OnigEncodingcxx . . $ OnigEncoding# enc) |
| 56 | { |
| 57 | int ret = ONIGENC_PRECISE_MBC_ENC_LENcxx . . $ `vendor/onigmo-source/onigmo.h:356:9`!(enc, p, e); |
| 58 | if (ONIGENC_MBCLEN_CHARFOUND_Pcxx . . $ `vendor/onigmo-source/onigmo.h:346:9`!(ret)) |
| 59 | return ONIGENC_MBCLEN_CHARFOUND_LENcxx . . $ `vendor/onigmo-source/onigmo.h:347:9`!(ret); |
| 60 | else if (ONIGENC_MBCLEN_NEEDMORE_Pcxx . . $ `vendor/onigmo-source/onigmo.h:353:9`!(ret)) |
| 61 | return (int )(e - p) + ONIGENC_MBCLEN_NEEDMORE_LENcxx . . $ `vendor/onigmo-source/onigmo.h:354:9`!(ret); |
| 62 | return 1; |
| 63 | } |
| 64 | |
| 65 | extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* |
| 66 | onigenc_get_right_adjust_char_headcxx . . $ onigenc_get_right_adjust_char_head(6f287267fc382c80).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end) |
| 67 | { |
| 68 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = ONIGENC_LEFT_ADJUST_CHAR_HEADcxx . . $ `vendor/onigmo-source/onigmo.h:336:9`!(enc, start, s, end); |
| 69 | if (p < s) { |
| 70 | p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); |
| 71 | } |
| 72 | return p; |
| 73 | } |
| 74 | |
| 75 | extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* |
| 76 | onigenc_get_right_adjust_char_head_with_prevcxx . . $ onigenc_get_right_adjust_char_head_with_prev(74af02b2ffcb348a).(OnigEncodingcxx . . $ OnigEncoding# enc, |
| 77 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** prev) |
| 78 | { |
| 79 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = ONIGENC_LEFT_ADJUST_CHAR_HEADcxx . . $ `vendor/onigmo-source/onigmo.h:336:9`!(enc, start, s, end); |
| 80 | |
| 81 | if (p < s) { |
| 82 | if (prev) *prev = (const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )p; |
| 83 | p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); |
| 84 | } |
| 85 | else { |
| 86 | if (prev) *prev = (const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; /* Sorry */ |
| 87 | } |
| 88 | return p; |
| 89 | } |
| 90 | |
| 91 | extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* |
| 92 | onigenc_get_prev_char_headcxx . . $ onigenc_get_prev_char_head(6f287267fc382c80).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end) |
| 93 | { |
| 94 | if (s <= start) |
| 95 | return (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 96 | |
| 97 | return ONIGENC_LEFT_ADJUST_CHAR_HEADcxx . . $ `vendor/onigmo-source/onigmo.h:336:9`!(enc, start, s - 1, end); |
| 98 | } |
| 99 | |
| 100 | extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* |
| 101 | onigenc_step_backcxx . . $ onigenc_step_back(87569f26104294ea).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, int n) |
| 102 | { |
| 103 | while (ONIG_IS_NOT_NULLcxx . . $ `vendor/onigmo-source/regenc.h:89:9`!(s) && n-- > 0) { |
| 104 | if (s <= start) |
| 105 | return (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 106 | |
| 107 | s = ONIGENC_LEFT_ADJUST_CHAR_HEADcxx . . $ `vendor/onigmo-source/onigmo.h:336:9`!(enc, start, s - 1, end); |
| 108 | } |
| 109 | return (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )s; |
| 110 | } |
| 111 | |
| 112 | extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* |
| 113 | onigenc_stepcxx . . $ onigenc_step(d83499827e84afc2).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, int n) |
| 114 | { |
| 115 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* q = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )p; |
| 116 | while (n-- > 0) { |
| 117 | q += ONIGENC_MBC_ENC_LENcxx . . $ `vendor/onigmo-source/onigmo.h:361:9`!(enc, q, end); |
| 118 | } |
| 119 | return (q <= end ? q : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 120 | } |
| 121 | |
| 122 | extern int |
| 123 | onigenc_strlencxx . . $ onigenc_strlen(fb2245aa60ebfd32).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end) |
| 124 | { |
| 125 | int n = 0; |
| 126 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* q = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )p; |
| 127 | |
| 128 | while (q < end) { |
| 129 | q += ONIGENC_MBC_ENC_LENcxx . . $ `vendor/onigmo-source/onigmo.h:361:9`!(enc, q, end); |
| 130 | n++; |
| 131 | } |
| 132 | return n; |
| 133 | } |
| 134 | |
| 135 | extern int |
| 136 | onigenc_strlen_nullcxx . . $ onigenc_strlen_null(ece621ff5c5784bf).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s) |
| 137 | { |
| 138 | int n = 0; |
| 139 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )s; |
| 140 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* e; |
| 141 | |
| 142 | while (1) { |
| 143 | if (*p == '\0') { |
| 144 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* q; |
| 145 | int len = ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(enc); |
| 146 | |
| 147 | if (len == 1) return n; |
| 148 | q = p + 1; |
| 149 | while (len > 1) { |
| 150 | if (*q != '\0') break; |
| 151 | q++; |
| 152 | len--; |
| 153 | } |
| 154 | if (len == 1) return n; |
| 155 | } |
| 156 | e = p + ONIGENC_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:362:9`!(enc); |
| 157 | p += ONIGENC_MBC_ENC_LENcxx . . $ `vendor/onigmo-source/onigmo.h:361:9`!(enc, p, e); |
| 158 | n++; |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | extern int |
| 163 | onigenc_str_bytelen_nullcxx . . $ onigenc_str_bytelen_null(ece621ff5c5784bf).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s) |
| 164 | { |
| 165 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )s; |
| 166 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )s; |
| 167 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* e; |
| 168 | |
| 169 | while (1) { |
| 170 | if (*p == '\0') { |
| 171 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* q; |
| 172 | int len = ONIGENC_MBC_MINLENcxx . . $ `vendor/onigmo-source/onigmo.h:364:9`!(enc); |
| 173 | |
| 174 | if (len == 1) return (int )(p - start); |
| 175 | q = p + 1; |
| 176 | while (len > 1) { |
| 177 | if (*q != '\0') break; |
| 178 | q++; |
| 179 | len--; |
| 180 | } |
| 181 | if (len == 1) return (int )(p - start); |
| 182 | } |
| 183 | e = p + ONIGENC_MBC_MAXLENcxx . . $ `vendor/onigmo-source/onigmo.h:362:9`!(enc); |
| 184 | p += ONIGENC_MBC_ENC_LENcxx . . $ `vendor/onigmo-source/onigmo.h:361:9`!(enc, p, e); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! OnigEncAsciiToLowerCaseTablecxx . . $ OnigEncAsciiToLowerCaseTable.[] = { |
| 189 | '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007', |
| 190 | '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', |
| 191 | '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', |
| 192 | '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037', |
| 193 | '\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047', |
| 194 | '\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057', |
| 195 | '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067', |
| 196 | '\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077', |
| 197 | '\100', '\141', '\142', '\143', '\144', '\145', '\146', '\147', |
| 198 | '\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157', |
| 199 | '\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167', |
| 200 | '\170', '\171', '\172', '\133', '\134', '\135', '\136', '\137', |
| 201 | '\140', '\141', '\142', '\143', '\144', '\145', '\146', '\147', |
| 202 | '\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157', |
| 203 | '\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167', |
| 204 | '\170', '\171', '\172', '\173', '\174', '\175', '\176', '\177', |
| 205 | '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207', |
| 206 | '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217', |
| 207 | '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227', |
| 208 | '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237', |
| 209 | '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247', |
| 210 | '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257', |
| 211 | '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267', |
| 212 | '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277', |
| 213 | '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307', |
| 214 | '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317', |
| 215 | '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327', |
| 216 | '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337', |
| 217 | '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347', |
| 218 | '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357', |
| 219 | '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367', |
| 220 | '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377', |
| 221 | }; |
| 222 | |
| 223 | #ifdef USE_UPPER_CASE_TABLE |
| 224 | const UChar OnigEncAsciiToUpperCaseTable[256] = { |
| 225 | '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007', |
| 226 | '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', |
| 227 | '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', |
| 228 | '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037', |
| 229 | '\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047', |
| 230 | '\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057', |
| 231 | '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067', |
| 232 | '\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077', |
| 233 | '\100', '\101', '\102', '\103', '\104', '\105', '\106', '\107', |
| 234 | '\110', '\111', '\112', '\113', '\114', '\115', '\116', '\117', |
| 235 | '\120', '\121', '\122', '\123', '\124', '\125', '\126', '\127', |
| 236 | '\130', '\131', '\132', '\133', '\134', '\135', '\136', '\137', |
| 237 | '\140', '\101', '\102', '\103', '\104', '\105', '\106', '\107', |
| 238 | '\110', '\111', '\112', '\113', '\114', '\115', '\116', '\117', |
| 239 | '\120', '\121', '\122', '\123', '\124', '\125', '\126', '\127', |
| 240 | '\130', '\131', '\132', '\173', '\174', '\175', '\176', '\177', |
| 241 | '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207', |
| 242 | '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217', |
| 243 | '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227', |
| 244 | '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237', |
| 245 | '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247', |
| 246 | '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257', |
| 247 | '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267', |
| 248 | '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277', |
| 249 | '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307', |
| 250 | '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317', |
| 251 | '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327', |
| 252 | '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337', |
| 253 | '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347', |
| 254 | '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357', |
| 255 | '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367', |
| 256 | '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377', |
| 257 | }; |
| 258 | #endif |
| 259 | |
| 260 | const unsigned short OnigEncAsciiCtypeTablecxx . . $ OnigEncAsciiCtypeTable.[256] = { |
| 261 | 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, |
| 262 | 0x4008, 0x420c, 0x4209, 0x4208, 0x4208, 0x4208, 0x4008, 0x4008, |
| 263 | 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, |
| 264 | 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, 0x4008, |
| 265 | 0x4284, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, |
| 266 | 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, |
| 267 | 0x78b0, 0x78b0, 0x78b0, 0x78b0, 0x78b0, 0x78b0, 0x78b0, 0x78b0, |
| 268 | 0x78b0, 0x78b0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x41a0, |
| 269 | 0x41a0, 0x7ca2, 0x7ca2, 0x7ca2, 0x7ca2, 0x7ca2, 0x7ca2, 0x74a2, |
| 270 | 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, |
| 271 | 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, 0x74a2, |
| 272 | 0x74a2, 0x74a2, 0x74a2, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x51a0, |
| 273 | 0x41a0, 0x78e2, 0x78e2, 0x78e2, 0x78e2, 0x78e2, 0x78e2, 0x70e2, |
| 274 | 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, |
| 275 | 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, 0x70e2, |
| 276 | 0x70e2, 0x70e2, 0x70e2, 0x41a0, 0x41a0, 0x41a0, 0x41a0, 0x4008, |
| 277 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 278 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 279 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 280 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 281 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 282 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 283 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 284 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 285 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 286 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 287 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 288 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 289 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 290 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 291 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
| 292 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 |
| 293 | }; |
| 294 | |
| 295 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! OnigEncISO_8859_1_ToLowerCaseTablecxx . . $ OnigEncISO_8859_1_ToLowerCaseTable.[256] = { |
| 296 | '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007', |
| 297 | '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', |
| 298 | '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', |
| 299 | '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037', |
| 300 | '\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047', |
| 301 | '\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057', |
| 302 | '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067', |
| 303 | '\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077', |
| 304 | '\100', '\141', '\142', '\143', '\144', '\145', '\146', '\147', |
| 305 | '\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157', |
| 306 | '\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167', |
| 307 | '\170', '\171', '\172', '\133', '\134', '\135', '\136', '\137', |
| 308 | '\140', '\141', '\142', '\143', '\144', '\145', '\146', '\147', |
| 309 | '\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157', |
| 310 | '\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167', |
| 311 | '\170', '\171', '\172', '\173', '\174', '\175', '\176', '\177', |
| 312 | '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207', |
| 313 | '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217', |
| 314 | '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227', |
| 315 | '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237', |
| 316 | '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247', |
| 317 | '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257', |
| 318 | '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267', |
| 319 | '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277', |
| 320 | '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347', |
| 321 | '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357', |
| 322 | '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\327', |
| 323 | '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\337', |
| 324 | '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347', |
| 325 | '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357', |
| 326 | '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367', |
| 327 | '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377' |
| 328 | }; |
| 329 | |
| 330 | #ifdef USE_UPPER_CASE_TABLE |
| 331 | const UChar OnigEncISO_8859_1_ToUpperCaseTable[256] = { |
| 332 | '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007', |
| 333 | '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', |
| 334 | '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', |
| 335 | '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037', |
| 336 | '\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047', |
| 337 | '\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057', |
| 338 | '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067', |
| 339 | '\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077', |
| 340 | '\100', '\101', '\102', '\103', '\104', '\105', '\106', '\107', |
| 341 | '\110', '\111', '\112', '\113', '\114', '\115', '\116', '\117', |
| 342 | '\120', '\121', '\122', '\123', '\124', '\125', '\126', '\127', |
| 343 | '\130', '\131', '\132', '\133', '\134', '\135', '\136', '\137', |
| 344 | '\140', '\101', '\102', '\103', '\104', '\105', '\106', '\107', |
| 345 | '\110', '\111', '\112', '\113', '\114', '\115', '\116', '\117', |
| 346 | '\120', '\121', '\122', '\123', '\124', '\125', '\126', '\127', |
| 347 | '\130', '\131', '\132', '\173', '\174', '\175', '\176', '\177', |
| 348 | '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207', |
| 349 | '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217', |
| 350 | '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227', |
| 351 | '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237', |
| 352 | '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247', |
| 353 | '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257', |
| 354 | '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267', |
| 355 | '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277', |
| 356 | '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307', |
| 357 | '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317', |
| 358 | '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327', |
| 359 | '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337', |
| 360 | '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307', |
| 361 | '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317', |
| 362 | '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\367', |
| 363 | '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\377', |
| 364 | }; |
| 365 | #endif |
| 366 | |
| 367 | #if 0 |
| 368 | extern void |
| 369 | onigenc_set_default_caseconv_table(const UChar* table ARG_UNUSED) |
| 370 | { |
| 371 | /* nothing */ |
| 372 | /* obsoleted. */ |
| 373 | } |
| 374 | #endif |
| 375 | |
| 376 | extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* |
| 377 | onigenc_get_left_adjust_char_headcxx . . $ onigenc_get_left_adjust_char_head(6f287267fc382c80).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end) |
| 378 | { |
| 379 | return ONIGENC_LEFT_ADJUST_CHAR_HEADcxx . . $ `vendor/onigmo-source/onigmo.h:336:9`!(enc, start, s, end); |
| 380 | } |
| 381 | |
| 382 | const OnigPairCaseFoldCodescxx . . $ OnigPairCaseFoldCodes# OnigAsciiLowerMapcxx . . $ OnigAsciiLowerMap.[] = { |
| 383 | { 0x41, 0x61 }, |
| 384 | { 0x42, 0x62 }, |
| 385 | { 0x43, 0x63 }, |
| 386 | { 0x44, 0x64 }, |
| 387 | { 0x45, 0x65 }, |
| 388 | { 0x46, 0x66 }, |
| 389 | { 0x47, 0x67 }, |
| 390 | { 0x48, 0x68 }, |
| 391 | { 0x49, 0x69 }, |
| 392 | { 0x4a, 0x6a }, |
| 393 | { 0x4b, 0x6b }, |
| 394 | { 0x4c, 0x6c }, |
| 395 | { 0x4d, 0x6d }, |
| 396 | { 0x4e, 0x6e }, |
| 397 | { 0x4f, 0x6f }, |
| 398 | { 0x50, 0x70 }, |
| 399 | { 0x51, 0x71 }, |
| 400 | { 0x52, 0x72 }, |
| 401 | { 0x53, 0x73 }, |
| 402 | { 0x54, 0x74 }, |
| 403 | { 0x55, 0x75 }, |
| 404 | { 0x56, 0x76 }, |
| 405 | { 0x57, 0x77 }, |
| 406 | { 0x58, 0x78 }, |
| 407 | { 0x59, 0x79 }, |
| 408 | { 0x5a, 0x7a } |
| 409 | }; |
| 410 | |
| 411 | extern int |
| 412 | onigenc_ascii_apply_all_case_foldcxx . . $ onigenc_ascii_apply_all_case_fold(52943f35c546f971).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 413 | OnigApplyAllCaseFoldFunccxx . . $ OnigApplyAllCaseFoldFunc# f, void* arg, |
| 414 | OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 415 | { |
| 416 | OnigCodePointcxx . . $ OnigCodePoint# code; |
| 417 | int i, r; |
| 418 | |
| 419 | for (i = 0; i < numberofcxx . . $ `vendor/onigmo-source/regenc.h:128:10`!(OnigAsciiLowerMap); i++) { |
| 420 | code = OnigAsciiLowerMapcxx . . $ OnigAsciiLowerMap.[i].tocxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#to.; |
| 421 | r = (*f)(OnigAsciiLowerMapcxx . . $ OnigAsciiLowerMap.[i].fromcxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#from., &code, 1, arg); |
| 422 | if (r != 0) return r; |
| 423 | |
| 424 | code = OnigAsciiLowerMapcxx . . $ OnigAsciiLowerMap.[i].fromcxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#from.; |
| 425 | r = (*f)(OnigAsciiLowerMapcxx . . $ OnigAsciiLowerMap.[i].tocxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#to., &code, 1, arg); |
| 426 | if (r != 0) return r; |
| 427 | } |
| 428 | |
| 429 | return 0; |
| 430 | } |
| 431 | |
| 432 | extern int |
| 433 | onigenc_ascii_get_case_fold_codes_by_strcxx . . $ onigenc_ascii_get_case_fold_codes_by_str(915325dbff6e96ee).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 434 | const OnigUCharcxx . . $ OnigUChar#* p, const OnigUCharcxx . . $ OnigUChar#* end ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 435 | OnigCaseFoldCodeItemcxx . . $ OnigCaseFoldCodeItem# items[], OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 436 | { |
| 437 | if (0x41 <= *p && *p <= 0x5a) { |
| 438 | items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 439 | items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 440 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )(*p + 0x20); |
| 441 | return 1; |
| 442 | } |
| 443 | else if (0x61 <= *p && *p <= 0x7a) { |
| 444 | items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 445 | items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 446 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )(*p - 0x20); |
| 447 | return 1; |
| 448 | } |
| 449 | else |
| 450 | return 0; |
| 451 | } |
| 452 | |
| 453 | static int |
| 454 | ss_apply_all_case_foldcxx . . $ ss_apply_all_case_fold(2112d3186e86f6eb).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 455 | OnigApplyAllCaseFoldFunccxx . . $ OnigApplyAllCaseFoldFunc# f, void* arg) |
| 456 | { |
| 457 | OnigCodePointcxx . . $ OnigCodePoint# ss[] = { 0x73, 0x73 }; |
| 458 | |
| 459 | return (*f)((OnigCodePointcxx . . $ OnigCodePoint# )0xdf, ss, 2, arg); |
| 460 | } |
| 461 | |
| 462 | extern int |
| 463 | onigenc_apply_all_case_fold_with_mapcxx . . $ onigenc_apply_all_case_fold_with_map(32419d965c6747dc).(int map_size, |
| 464 | const OnigPairCaseFoldCodescxx . . $ OnigPairCaseFoldCodes# map[], |
| 465 | int ess_tsett_flag, OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag, |
| 466 | OnigApplyAllCaseFoldFunccxx . . $ OnigApplyAllCaseFoldFunc# f, void* arg) |
| 467 | { |
| 468 | OnigCodePointcxx . . $ OnigCodePoint# code; |
| 469 | int i, r; |
| 470 | |
| 471 | r = onigenc_ascii_apply_all_case_foldcxx . . $ onigenc_ascii_apply_all_case_fold(52943f35c546f971).(flag, f, arg, 0); |
| 472 | if (r != 0) return r; |
| 473 | |
| 474 | for (i = 0; i < map_size; i++) { |
| 475 | code = map[i].tocxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#to.; |
| 476 | r = (*f)(map[i].fromcxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#from., &code, 1, arg); |
| 477 | if (r != 0) return r; |
| 478 | |
| 479 | code = map[i].fromcxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#from.; |
| 480 | r = (*f)(map[i].tocxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#to., &code, 1, arg); |
| 481 | if (r != 0) return r; |
| 482 | } |
| 483 | |
| 484 | if (ess_tsett_flag != 0) |
| 485 | return ss_apply_all_case_foldcxx . . $ ss_apply_all_case_fold(2112d3186e86f6eb).(flag, f, arg); |
| 486 | |
| 487 | return 0; |
| 488 | } |
| 489 | |
| 490 | extern int |
| 491 | onigenc_get_case_fold_codes_by_str_with_mapcxx . . $ onigenc_get_case_fold_codes_by_str_with_map(e3dd3a97eb2ffc4f).(int map_size, |
| 492 | const OnigPairCaseFoldCodescxx . . $ OnigPairCaseFoldCodes# map[], |
| 493 | int ess_tsett_flag, OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 494 | const OnigUCharcxx . . $ OnigUChar#* p, const OnigUCharcxx . . $ OnigUChar#* end, OnigCaseFoldCodeItemcxx . . $ OnigCaseFoldCodeItem# items[]) |
| 495 | { |
| 496 | if (0x41 <= *p && *p <= 0x5a) { |
| 497 | items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 498 | items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 499 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )(*p + 0x20); |
| 500 | if (*p == 0x53 && ess_tsett_flag != 0 && end > p + 1 |
| 501 | && (*(p+1) == 0x53 || *(p+1) == 0x73)) { |
| 502 | /* SS */ |
| 503 | items[1].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 2; |
| 504 | items[1].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 505 | items[1].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )0xdf; |
| 506 | return 2; |
| 507 | } |
| 508 | else |
| 509 | return 1; |
| 510 | } |
| 511 | else if (0x61 <= *p && *p <= 0x7a) { |
| 512 | items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 513 | items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 514 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )(*p - 0x20); |
| 515 | if (*p == 0x73 && ess_tsett_flag != 0 && end > p + 1 |
| 516 | && (*(p+1) == 0x73 || *(p+1) == 0x53)) { |
| 517 | /* ss */ |
| 518 | items[1].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 2; |
| 519 | items[1].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 520 | items[1].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )0xdf; |
| 521 | return 2; |
| 522 | } |
| 523 | else |
| 524 | return 1; |
| 525 | } |
| 526 | else if (*p == 0xdf && ess_tsett_flag != 0) { |
| 527 | items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 528 | items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 2; |
| 529 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )'s'; |
| 530 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[1] = (OnigCodePointcxx . . $ OnigCodePoint# )'s'; |
| 531 | |
| 532 | items[1].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 533 | items[1].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 2; |
| 534 | items[1].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )'S'; |
| 535 | items[1].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[1] = (OnigCodePointcxx . . $ OnigCodePoint# )'S'; |
| 536 | |
| 537 | items[2].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 538 | items[2].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 2; |
| 539 | items[2].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )'s'; |
| 540 | items[2].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[1] = (OnigCodePointcxx . . $ OnigCodePoint# )'S'; |
| 541 | |
| 542 | items[3].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 543 | items[3].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 2; |
| 544 | items[3].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = (OnigCodePointcxx . . $ OnigCodePoint# )'S'; |
| 545 | items[3].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[1] = (OnigCodePointcxx . . $ OnigCodePoint# )'s'; |
| 546 | |
| 547 | return 4; |
| 548 | } |
| 549 | else { |
| 550 | int i; |
| 551 | |
| 552 | for (i = 0; i < map_size; i++) { |
| 553 | if (*p == map[i].fromcxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#from.) { |
| 554 | items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 555 | items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 556 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = map[i].tocxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#to.; |
| 557 | return 1; |
| 558 | } |
| 559 | else if (*p == map[i].tocxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#to.) { |
| 560 | items[0].byte_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#byte_len. = 1; |
| 561 | items[0].code_lencxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code_len. = 1; |
| 562 | items[0].codecxx . . $ $anonymous_type_d8a9e63ad63ca5ad_0#code.[0] = map[i].fromcxx . . $ $anonymous_type_6bfc92d54f7eb8fa_0#from.; |
| 563 | return 1; |
| 564 | } |
| 565 | } |
| 566 | } |
| 567 | |
| 568 | return 0; |
| 569 | } |
| 570 | |
| 571 | |
| 572 | extern int |
| 573 | onigenc_not_support_get_ctype_code_rangecxx . . $ onigenc_not_support_get_ctype_code_range(f3da0df4ba860021).(OnigCtypecxx . . $ OnigCtype# ctype ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 574 | OnigCodePointcxx . . $ OnigCodePoint#* sb_out ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 575 | const OnigCodePointcxx . . $ OnigCodePoint#* ranges[] ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 576 | OnigEncodingcxx . . $ OnigEncoding# enc) |
| 577 | { |
| 578 | return ONIG_NO_SUPPORT_CONFIGcxx . . $ `vendor/onigmo-source/onigmo.h:626:9`!; |
| 579 | } |
| 580 | |
| 581 | extern int |
| 582 | onigenc_is_mbc_newline_0x0acxx . . $ onigenc_is_mbc_newline_0x0a(d6816dd497b890ca).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 583 | { |
| 584 | if (p < end) { |
| 585 | if (*p == 0x0a) return 1; |
| 586 | } |
| 587 | return 0; |
| 588 | } |
| 589 | |
| 590 | /* for single byte encodings */ |
| 591 | extern int |
| 592 | onigenc_ascii_mbc_case_foldcxx . . $ onigenc_ascii_mbc_case_fold(c1ec0ee5809b8ef8).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** p, |
| 593 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* lower, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 594 | { |
| 595 | *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASEcxx . . $ `vendor/onigmo-source/regenc.h:214:9`!(**p); |
| 596 | |
| 597 | (*p)++; |
| 598 | return 1; /* return byte length of converted char to lower */ |
| 599 | } |
| 600 | |
| 601 | #if 0 |
| 602 | extern int |
| 603 | onigenc_ascii_is_mbc_ambiguous(OnigCaseFoldType flag ARG_UNUSED, |
| 604 | const UChar** pp, const UChar* end ARG_UNUSED) |
| 605 | { |
| 606 | const UChar* p = *pp; |
| 607 | |
| 608 | (*pp)++; |
| 609 | return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p); |
| 610 | } |
| 611 | #endif |
| 612 | |
| 613 | extern int |
| 614 | onigenc_single_byte_mbc_enc_lencxx . . $ onigenc_single_byte_mbc_enc_len(d6816dd497b890ca).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* e ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 615 | OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 616 | { |
| 617 | return 1; |
| 618 | } |
| 619 | |
| 620 | extern OnigCodePointcxx . . $ OnigCodePoint# |
| 621 | onigenc_single_byte_mbc_to_codecxx . . $ onigenc_single_byte_mbc_to_code(542d90b8bf35e660).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 622 | OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 623 | { |
| 624 | return (OnigCodePointcxx . . $ OnigCodePoint# )(*p); |
| 625 | } |
| 626 | |
| 627 | extern int |
| 628 | onigenc_single_byte_code_to_mbclencxx . . $ onigenc_single_byte_code_to_mbclen(ed1ebf883eff915d).(OnigCodePointcxx . . $ OnigCodePoint# code ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 629 | { |
| 630 | return 1; |
| 631 | } |
| 632 | |
| 633 | extern int |
| 634 | onigenc_single_byte_code_to_mbccxx . . $ onigenc_single_byte_code_to_mbc(cc36a00e84837546).(OnigCodePointcxx . . $ OnigCodePoint# code, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *buf, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 635 | { |
| 636 | #ifdef RUBY |
| 637 | if (code > 0xff) |
| 638 | rb_raise(rb_eRangeError, "%u out of char range", code); |
| 639 | #endif |
| 640 | *buf = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )(code & 0xff); |
| 641 | return 1; |
| 642 | } |
| 643 | |
| 644 | extern UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* |
| 645 | onigenc_single_byte_left_adjust_char_headcxx . . $ onigenc_single_byte_left_adjust_char_head(e837d4bf7cdd11f9).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* start ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 646 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s, |
| 647 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 648 | OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 649 | { |
| 650 | return (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* )s; |
| 651 | } |
| 652 | |
| 653 | extern int |
| 654 | onigenc_always_true_is_allowed_reverse_matchcxx . . $ onigenc_always_true_is_allowed_reverse_match(d6816dd497b890ca).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 655 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 656 | OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 657 | { |
| 658 | return TRUEcxx . . $ `vendor/onigmo-source/regenc.h:73:10`!; |
| 659 | } |
| 660 | |
| 661 | extern int |
| 662 | onigenc_always_false_is_allowed_reverse_matchcxx . . $ onigenc_always_false_is_allowed_reverse_match(d6816dd497b890ca).(const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* s ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 663 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 664 | OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 665 | { |
| 666 | return FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!; |
| 667 | } |
| 668 | |
| 669 | extern int |
| 670 | onigenc_ascii_is_code_ctypecxx . . $ onigenc_ascii_is_code_ctype(7f36058cb237933f).(OnigCodePointcxx . . $ OnigCodePoint# code, unsigned int ctype, |
| 671 | OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 672 | { |
| 673 | if (code < 128) |
| 674 | return ONIGENC_IS_ASCII_CODE_CTYPEcxx . . $ `vendor/onigmo-source/regenc.h:216:9`!(code, ctype); |
| 675 | else |
| 676 | return FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!; |
| 677 | } |
| 678 | |
| 679 | extern OnigCodePointcxx . . $ OnigCodePoint# |
| 680 | onigenc_mbn_mbc_to_codecxx . . $ onigenc_mbn_mbc_to_code(dfe5f68fa2f9fa88).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end) |
| 681 | { |
| 682 | int c, i, len; |
| 683 | OnigCodePointcxx . . $ OnigCodePoint# n; |
| 684 | |
| 685 | len = enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); |
| 686 | n = (OnigCodePointcxx . . $ OnigCodePoint# )(*p++); |
| 687 | if (len == 1) return n; |
| 688 | |
| 689 | for (i = 1; i < len; i++) { |
| 690 | if (p >= end) break; |
| 691 | c = *p++; |
| 692 | n <<= 8; n += c; |
| 693 | } |
| 694 | return n; |
| 695 | } |
| 696 | |
| 697 | extern int |
| 698 | onigenc_mbn_mbc_case_foldcxx . . $ onigenc_mbn_mbc_case_fold(971301441d819429).(OnigEncodingcxx . . $ OnigEncoding# enc, OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flag ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 699 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!** pp, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!, |
| 700 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* lower) |
| 701 | { |
| 702 | int len; |
| 703 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = *pp; |
| 704 | |
| 705 | if (ONIGENC_IS_MBC_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:320:9`!(p)) { |
| 706 | *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASEcxx . . $ `vendor/onigmo-source/regenc.h:214:9`!(*p); |
| 707 | (*pp)++; |
| 708 | return 1; |
| 709 | } |
| 710 | else { |
| 711 | int i; |
| 712 | |
| 713 | len = enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); |
| 714 | for (i = 0; i < len; i++) { |
| 715 | *lower++ = *p++; |
| 716 | } |
| 717 | (*pp) += len; |
| 718 | return len; /* return byte length of converted to lower char */ |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | #if 0 |
| 723 | extern int |
| 724 | onigenc_mbn_is_mbc_ambiguous(OnigEncoding enc, OnigCaseFoldType flag, |
| 725 | const UChar** pp, const UChar* end ARG_UNUSED) |
| 726 | { |
| 727 | const UChar* p = *pp; |
| 728 | |
| 729 | if (ONIGENC_IS_MBC_ASCII(p)) { |
| 730 | (*pp)++; |
| 731 | return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p); |
| 732 | } |
| 733 | |
| 734 | (*pp) += enclen(enc, p); |
| 735 | return FALSE; |
| 736 | } |
| 737 | #endif |
| 738 | |
| 739 | extern int |
| 740 | onigenc_mb2_code_to_mbclencxx . . $ onigenc_mb2_code_to_mbclen(ed1ebf883eff915d).(OnigCodePointcxx . . $ OnigCodePoint# code, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 741 | { |
| 742 | if (code <= 0xff) return 1; |
| 743 | if (code <= 0xffff) return 2; |
| 744 | return ONIGERR_TOO_BIG_WIDE_CHAR_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:691:9`!; |
| 745 | } |
| 746 | |
| 747 | extern int |
| 748 | onigenc_mb4_code_to_mbclencxx . . $ onigenc_mb4_code_to_mbclen(ed1ebf883eff915d).(OnigCodePointcxx . . $ OnigCodePoint# code, OnigEncodingcxx . . $ OnigEncoding# enc ARG_UNUSEDcxx . . $ `vendor/onigmo-source/regint.h:100:10`!) |
| 749 | { |
| 750 | if ((code & 0xff000000) != 0) return 4; |
| 751 | else if ((code & 0xff0000) != 0) return 3; |
| 752 | else if ((code & 0xff00) != 0) return 2; |
| 753 | else return 1; |
| 754 | } |
| 755 | |
| 756 | extern int |
| 757 | onigenc_mb2_code_to_mbccxx . . $ onigenc_mb2_code_to_mbc(4d6cf9f9f4096f77).(OnigEncodingcxx . . $ OnigEncoding# enc, OnigCodePointcxx . . $ OnigCodePoint# code, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *buf) |
| 758 | { |
| 759 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = buf; |
| 760 | |
| 761 | if ((code & 0xff00) != 0) { |
| 762 | *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )((code >> 8) & 0xff); |
| 763 | } |
| 764 | *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )(code & 0xff); |
| 765 | |
| 766 | #if 1 |
| 767 | if (enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, buf, p) != (p - buf)) |
| 768 | return ONIGERR_INVALID_CODE_POINT_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:689:9`!; |
| 769 | #endif |
| 770 | return (int )(p - buf); |
| 771 | } |
| 772 | |
| 773 | extern int |
| 774 | onigenc_mb4_code_to_mbccxx . . $ onigenc_mb4_code_to_mbc(4d6cf9f9f4096f77).(OnigEncodingcxx . . $ OnigEncoding# enc, OnigCodePointcxx . . $ OnigCodePoint# code, UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *buf) |
| 775 | { |
| 776 | UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! *p = buf; |
| 777 | |
| 778 | if ((code & 0xff000000) != 0) { |
| 779 | *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )((code >> 24) & 0xff); |
| 780 | } |
| 781 | if ((code & 0xff0000) != 0 || p != buf) { |
| 782 | *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )((code >> 16) & 0xff); |
| 783 | } |
| 784 | if ((code & 0xff00) != 0 || p != buf) { |
| 785 | *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )((code >> 8) & 0xff); |
| 786 | } |
| 787 | *p++ = (UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`! )(code & 0xff); |
| 788 | |
| 789 | #if 1 |
| 790 | if (enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, buf, p) != (p - buf)) |
| 791 | return ONIGERR_INVALID_CODE_POINT_VALUEcxx . . $ `vendor/onigmo-source/onigmo.h:689:9`!; |
| 792 | #endif |
| 793 | return (int )(p - buf); |
| 794 | } |
| 795 | |
| 796 | extern int |
| 797 | onigenc_minimum_property_name_to_ctypecxx . . $ onigenc_minimum_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) |
| 798 | { |
| 799 | static const PosixBracketEntryTypecxx . . $ PosixBracketEntryType# PBS[] = { |
| 800 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Alnum", ONIGENC_CTYPE_ALNUMcxx . . $ `vendor/onigmo-source/onigmo.h:307:9`!), |
| 801 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Alpha", ONIGENC_CTYPE_ALPHAcxx . . $ `vendor/onigmo-source/onigmo.h:295:9`!), |
| 802 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Blank", ONIGENC_CTYPE_BLANKcxx . . $ `vendor/onigmo-source/onigmo.h:296:9`!), |
| 803 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Cntrl", ONIGENC_CTYPE_CNTRLcxx . . $ `vendor/onigmo-source/onigmo.h:297:9`!), |
| 804 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Digit", ONIGENC_CTYPE_DIGITcxx . . $ `vendor/onigmo-source/onigmo.h:298:9`!), |
| 805 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Graph", ONIGENC_CTYPE_GRAPHcxx . . $ `vendor/onigmo-source/onigmo.h:299:9`!), |
| 806 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Lower", ONIGENC_CTYPE_LOWERcxx . . $ `vendor/onigmo-source/onigmo.h:300:9`!), |
| 807 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Print", ONIGENC_CTYPE_PRINTcxx . . $ `vendor/onigmo-source/onigmo.h:301:9`!), |
| 808 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Punct", ONIGENC_CTYPE_PUNCTcxx . . $ `vendor/onigmo-source/onigmo.h:302:9`!), |
| 809 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Space", ONIGENC_CTYPE_SPACEcxx . . $ `vendor/onigmo-source/onigmo.h:303:9`!), |
| 810 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Upper", ONIGENC_CTYPE_UPPERcxx . . $ `vendor/onigmo-source/onigmo.h:304:9`!), |
| 811 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("XDigit", ONIGENC_CTYPE_XDIGITcxx . . $ `vendor/onigmo-source/onigmo.h:305:9`!), |
| 812 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("ASCII", ONIGENC_CTYPE_ASCIIcxx . . $ `vendor/onigmo-source/onigmo.h:308:9`!), |
| 813 | POSIX_BRACKET_ENTRY_INITcxx . . $ `vendor/onigmo-source/regenc.h:124:9`!("Word", ONIGENC_CTYPE_WORDcxx . . $ `vendor/onigmo-source/onigmo.h:306:9`!), |
| 814 | }; |
| 815 | |
| 816 | const PosixBracketEntryTypecxx . . $ PosixBracketEntryType# *pb; |
| 817 | int len; |
| 818 | |
| 819 | len = onigenc_strlencxx . . $ onigenc_strlen(fb2245aa60ebfd32).(enc, p, end); |
| 820 | for (pb = PBS; pb < PBS + numberofcxx . . $ `vendor/onigmo-source/regenc.h:128:10`!(PBS); pb++) { |
| 821 | if (len == pb->lencxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#len. && |
| 822 | onigenc_with_ascii_strnicmpcxx . . $ onigenc_with_ascii_strnicmp(85c57096c253fb5a).(enc, p, end, pb->namecxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#name., pb->lencxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#len.) == 0) |
| 823 | return pb->ctypecxx . . $ $anonymous_type_6bfc92d54f7eb8fa_1#ctype.; |
| 824 | } |
| 825 | |
| 826 | return ONIGERR_INVALID_CHAR_PROPERTY_NAMEcxx . . $ `vendor/onigmo-source/onigmo.h:688:9`!; |
| 827 | } |
| 828 | |
| 829 | extern int |
| 830 | onigenc_mb2_is_code_ctypecxx . . $ onigenc_mb2_is_code_ctype(deb683be2a538f8a).(OnigEncodingcxx . . $ OnigEncoding# enc, OnigCodePointcxx . . $ OnigCodePoint# code, |
| 831 | unsigned int ctype) |
| 832 | { |
| 833 | if (code < 128) |
| 834 | return ONIGENC_IS_ASCII_CODE_CTYPEcxx . . $ `vendor/onigmo-source/regenc.h:216:9`!(code, ctype); |
| 835 | else { |
| 836 | if (CTYPE_IS_WORD_GRAPH_PRINTcxx . . $ `vendor/onigmo-source/regenc.h:113:9`!(ctype)) { |
| 837 | return (ONIGENC_CODE_TO_MBCLENcxx . . $ `vendor/onigmo-source/onigmo.h:367:9`!(enc, code) > 1 ? TRUEcxx . . $ `vendor/onigmo-source/regenc.h:73:10`! : FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!); |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | return FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!; |
| 842 | } |
| 843 | |
| 844 | extern int |
| 845 | onigenc_mb4_is_code_ctypecxx . . $ onigenc_mb4_is_code_ctype(deb683be2a538f8a).(OnigEncodingcxx . . $ OnigEncoding# enc, OnigCodePointcxx . . $ OnigCodePoint# code, |
| 846 | unsigned int ctype) |
| 847 | { |
| 848 | if (code < 128) |
| 849 | return ONIGENC_IS_ASCII_CODE_CTYPEcxx . . $ `vendor/onigmo-source/regenc.h:216:9`!(code, ctype); |
| 850 | else { |
| 851 | if (CTYPE_IS_WORD_GRAPH_PRINTcxx . . $ `vendor/onigmo-source/regenc.h:113:9`!(ctype)) { |
| 852 | return (ONIGENC_CODE_TO_MBCLENcxx . . $ `vendor/onigmo-source/onigmo.h:367:9`!(enc, code) > 1 ? TRUEcxx . . $ `vendor/onigmo-source/regenc.h:73:10`! : FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!); |
| 853 | } |
| 854 | } |
| 855 | |
| 856 | return FALSEcxx . . $ `vendor/onigmo-source/regenc.h:77:10`!; |
| 857 | } |
| 858 | |
| 859 | extern int |
| 860 | onigenc_with_ascii_strncmpcxx . . $ onigenc_with_ascii_strncmp(85c57096c253fb5a).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, |
| 861 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* sascii /* ascii */, int n) |
| 862 | { |
| 863 | int x, c; |
| 864 | |
| 865 | while (n-- > 0) { |
| 866 | if (p >= end) return (int )(*sascii); |
| 867 | |
| 868 | c = (int )ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, end); |
| 869 | x = *sascii - c; |
| 870 | if (x) return x; |
| 871 | |
| 872 | sascii++; |
| 873 | p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); |
| 874 | } |
| 875 | return 0; |
| 876 | } |
| 877 | |
| 878 | extern int |
| 879 | onigenc_with_ascii_strnicmpcxx . . $ onigenc_with_ascii_strnicmp(85c57096c253fb5a).(OnigEncodingcxx . . $ OnigEncoding# enc, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* p, const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* end, |
| 880 | const UCharcxx . . $ `vendor/onigmo-source/onigmo.h:76:10`!* sascii /* ascii */, int n) |
| 881 | { |
| 882 | int x, c; |
| 883 | |
| 884 | while (n-- > 0) { |
| 885 | if (p >= end) return (int )(*sascii); |
| 886 | |
| 887 | c = (int )ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, p, end); |
| 888 | if (ONIGENC_IS_ASCII_CODEcxx . . $ `vendor/onigmo-source/regenc.h:213:9`!(c)) |
| 889 | c = ONIGENC_ASCII_CODE_TO_LOWER_CASEcxx . . $ `vendor/onigmo-source/regenc.h:214:9`!(c); |
| 890 | x = ONIGENC_ASCII_CODE_TO_LOWER_CASEcxx . . $ `vendor/onigmo-source/regenc.h:214:9`!(*sascii) - c; |
| 891 | if (x) return x; |
| 892 | |
| 893 | sascii++; |
| 894 | p += enclencxx . . $ `vendor/onigmo-source/regenc.h:93:9`!(enc, p, end); |
| 895 | } |
| 896 | return 0; |
| 897 | } |
| 898 | |
| 899 | #if 0 |
| 900 | /* Property management */ |
| 901 | static int |
| 902 | resize_property_list(int new_size, const OnigCodePoint*** plist, int* psize) |
| 903 | { |
| 904 | size_t size; |
| 905 | const OnigCodePoint **list = *plist; |
| 906 | |
| 907 | size = sizeof(OnigCodePoint*) * new_size; |
| 908 | if (IS_NULL(list)) { |
| 909 | list = (const OnigCodePoint** )xmalloc(size); |
| 910 | if (IS_NULL(list)) return ONIGERR_MEMORY; |
| 911 | } |
| 912 | else { |
| 913 | const OnigCodePoint **tmp; |
| 914 | tmp = (const OnigCodePoint** )xrealloc((void* )list, size); |
| 915 | if (IS_NULL(tmp)) return ONIGERR_MEMORY; |
| 916 | list = tmp; |
| 917 | } |
| 918 | |
| 919 | *plist = list; |
| 920 | *psize = new_size; |
| 921 | |
| 922 | return 0; |
| 923 | } |
| 924 | |
| 925 | extern int |
| 926 | onigenc_property_list_add_property(UChar* name, const OnigCodePoint* prop, |
| 927 | hash_table_type **table, const OnigCodePoint*** plist, int *pnum, |
| 928 | int *psize) |
| 929 | { |
| 930 | #define PROP_INIT_SIZE 16 |
| 931 | |
| 932 | int r; |
| 933 | |
| 934 | if (*psize <= *pnum) { |
| 935 | int new_size = (*psize == 0 ? PROP_INIT_SIZE : *psize * 2); |
| 936 | r = resize_property_list(new_size, plist, psize); |
| 937 | if (r != 0) return r; |
| 938 | } |
| 939 | |
| 940 | (*plist)[*pnum] = prop; |
| 941 | |
| 942 | if (ONIG_IS_NULL(*table)) { |
| 943 | *table = onig_st_init_strend_table_with_size(PROP_INIT_SIZE); |
| 944 | if (ONIG_IS_NULL(*table)) return ONIGERR_MEMORY; |
| 945 | } |
| 946 | |
| 947 | *pnum = *pnum + 1; |
| 948 | onig_st_insert_strend(*table, name, name + strlen((char* )name), |
| 949 | (hash_data_type )(*pnum + ONIGENC_MAX_STD_CTYPE)); |
| 950 | return 0; |
| 951 | } |
| 952 | #endif |
| 953 | |
| 954 | extern int |
| 955 | onigenc_ascii_only_case_mapcxx . . $ onigenc_ascii_only_case_map(963ee2b6f1418456).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType#* flagP, const OnigUCharcxx . . $ OnigUChar#** pp, const OnigUCharcxx . . $ OnigUChar#* end, |
| 956 | OnigUCharcxx . . $ OnigUChar#* to, OnigUCharcxx . . $ OnigUChar#* to_end, const struct OnigEncodingTypeSTcxx . . $ OnigEncodingTypeST#* enc) |
| 957 | { |
| 958 | OnigCodePointcxx . . $ OnigCodePoint# code; |
| 959 | OnigUCharcxx . . $ OnigUChar# *to_start = to; |
| 960 | OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flags = *flagP; |
| 961 | int codepoint_length; |
| 962 | |
| 963 | while (*pp < end && to < to_end) { |
| 964 | codepoint_length = ONIGENC_PRECISE_MBC_ENC_LENcxx . . $ `vendor/onigmo-source/onigmo.h:356:9`!(enc, *pp, end); |
| 965 | if (codepoint_length < 0) |
| 966 | return codepoint_length; /* encoding invalid */ |
| 967 | code = ONIGENC_MBC_TO_CODEcxx . . $ `vendor/onigmo-source/onigmo.h:366:9`!(enc, *pp, end); |
| 968 | *pp += codepoint_length; |
| 969 | |
| 970 | if (code >= 'a' && code <= 'z' && (flags & ONIGENC_CASE_UPCASEcxx . . $ `vendor/onigmo-source/onigmo.h:113:9`!)) { |
| 971 | flags |= ONIGENC_CASE_MODIFIEDcxx . . $ `vendor/onigmo-source/onigmo.h:119:9`!; |
| 972 | code += 'A' - 'a'; |
| 973 | } else if (code >= 'A' && code <= 'Z' && |
| 974 | (flags & (ONIGENC_CASE_DOWNCASEcxx . . $ `vendor/onigmo-source/onigmo.h:114:9`! | ONIGENC_CASE_FOLDcxx . . $ `vendor/onigmo-source/onigmo.h:120:9`!))) { |
| 975 | flags |= ONIGENC_CASE_MODIFIEDcxx . . $ `vendor/onigmo-source/onigmo.h:119:9`!; |
| 976 | code += 'a' - 'A'; |
| 977 | } |
| 978 | to += ONIGENC_CODE_TO_MBCcxx . . $ `vendor/onigmo-source/onigmo.h:368:9`!(enc, code, to); |
| 979 | if (flags & ONIGENC_CASE_TITLECASEcxx . . $ `vendor/onigmo-source/onigmo.h:115:9`!) /* switch from titlecase to lowercase for capitalize */ |
| 980 | flags ^= (ONIGENC_CASE_UPCASEcxx . . $ `vendor/onigmo-source/onigmo.h:113:9`! | ONIGENC_CASE_DOWNCASEcxx . . $ `vendor/onigmo-source/onigmo.h:114:9`! | ONIGENC_CASE_TITLECASEcxx . . $ `vendor/onigmo-source/onigmo.h:115:9`!); |
| 981 | } |
| 982 | *flagP = flags; |
| 983 | return (int )(to - to_start); |
| 984 | } |
| 985 | |
| 986 | extern int |
| 987 | onigenc_single_byte_ascii_only_case_mapcxx . . $ onigenc_single_byte_ascii_only_case_map(963ee2b6f1418456).(OnigCaseFoldTypecxx . . $ OnigCaseFoldType#* flagP, const OnigUCharcxx . . $ OnigUChar#** pp, |
| 988 | const OnigUCharcxx . . $ OnigUChar#* end, OnigUCharcxx . . $ OnigUChar#* to, OnigUCharcxx . . $ OnigUChar#* to_end, |
| 989 | const struct OnigEncodingTypeSTcxx . . $ OnigEncodingTypeST#* enc) |
| 990 | { |
| 991 | OnigCodePointcxx . . $ OnigCodePoint# code; |
| 992 | OnigUCharcxx . . $ OnigUChar# *to_start = to; |
| 993 | OnigCaseFoldTypecxx . . $ OnigCaseFoldType# flags = *flagP; |
| 994 | |
| 995 | while (*pp < end && to < to_end) { |
| 996 | code = *(*pp)++; |
| 997 | |
| 998 | if (code >= 'a' && code <= 'z' && (flags & ONIGENC_CASE_UPCASEcxx . . $ `vendor/onigmo-source/onigmo.h:113:9`!)) { |
| 999 | flags |= ONIGENC_CASE_MODIFIEDcxx . . $ `vendor/onigmo-source/onigmo.h:119:9`!; |
| 1000 | code += 'A' - 'a'; |
| 1001 | } else if (code >= 'A' && code <= 'Z' && |
| 1002 | (flags & (ONIGENC_CASE_DOWNCASEcxx . . $ `vendor/onigmo-source/onigmo.h:114:9`! | ONIGENC_CASE_FOLDcxx . . $ `vendor/onigmo-source/onigmo.h:120:9`!))) { |
| 1003 | flags |= ONIGENC_CASE_MODIFIEDcxx . . $ `vendor/onigmo-source/onigmo.h:119:9`!; |
| 1004 | code += 'a' - 'A'; |
| 1005 | } |
| 1006 | *to++ = code; |
| 1007 | if (flags & ONIGENC_CASE_TITLECASEcxx . . $ `vendor/onigmo-source/onigmo.h:115:9`!) /* switch from titlecase to lowercase for capitalize */ |
| 1008 | flags ^= (ONIGENC_CASE_UPCASEcxx . . $ `vendor/onigmo-source/onigmo.h:113:9`! | ONIGENC_CASE_DOWNCASEcxx . . $ `vendor/onigmo-source/onigmo.h:114:9`! | ONIGENC_CASE_TITLECASEcxx . . $ `vendor/onigmo-source/onigmo.h:115:9`!); |
| 1009 | } |
| 1010 | *flagP = flags; |
| 1011 | return (int )(to - to_start); |
| 1012 | } |