| /PHP_5_5/ext/json/ |
| H A D | utf8_decode.c | 146 int c1 = cont(utf8); local 147 if (c1 < 0) { 150 r = ((c & 0x1F) << 6) | c1; 157 int c1 = cont(utf8); local 159 if (c1 < 0 || c2 < 0) { 162 r = ((c & 0x0F) << 12) | (c1 << 6) | c2; 169 int c1 = cont(utf8); local 172 if (c1 < 0 || c2 < 0 || c3 < 0) { 175 r = ((c & 0x0F) << 18) | (c1 << 12) | (c2 << 6) | c3;
|
| /PHP_5_5/ext/mbstring/libmbfl/filters/ |
| H A D | mbfilter_big5.c | 148 int c1, w, c2; local 153 c1 = 0x80; 155 c1 = 0xa0; 162 } else if (c > c1 && c < 0xff) { /* dbcs lead byte */ 174 c1 = filter->cache; 177 w = (c1 - 0xa1)*157 + (c - 0x40); 179 w = (c1 - 0xa1)*157 + (c - 0xa1) + 0x3f; 190 (((c1 >= 0xfa && c1 <= 0xfe) || (c1 > 241 int c1, s, c2; local 321 int c1; local [all...] |
| H A D | mbfilter_cp51932.c | 101 #define sjistoidx(c1, c2) \ 102 (((c1) > 0x9f) \ 103 ? (((c1) - 0xc1) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)) \ 104 : (((c1) - 0x81) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40))) 114 int c1, s, w; local 134 c1 = filter->cache; 137 s = (c1 - 0xa1)*94 + c - 0xa1; 165 w = ((c1 & 0x7f) << 8) | (c & 0x7f); 173 w = (c1 << 8) | c; 209 int c1, c local [all...] |
| H A D | mbfilter_cp932.c | 99 #define SJIS_ENCODE(c1,c2,s1,s2) \ 101 s1 = c1; \ 104 if ((c1) < 0x5f) { \ 110 if ((c1) & 1) { \ 120 #define SJIS_DECODE(c1,c2,s1,s2) \ 122 s1 = c1; \ 149 int c1, s, s1, s2, w; local 169 c1 = filter->cache; 172 SJIS_DECODE(c1, c, s1, s2); 213 w = (c1 << 234 int c1, c2, s1, s2; local [all...] |
| H A D | mbfilter_cp936.c | 106 int c1, c2, w = -1; local 124 c1 = filter->cache; 126 if (((c1 >= 0xaa && c1 <= 0xaf) || (c1 >= 0xf8 && c1 <= 0xfe)) && 129 w = 94*(c1 >= 0xf8 ? c1 - 0xf2 : c1 - 0xaa) + (c - 0xa1) + 0xe000; 131 } else if (c1 > 194 int c1, s = 0; local [all...] |
| H A D | mbfilter_euc_cn.c | 104 int c1, w; local 122 c1 = filter->cache; 123 if (c1 > 0xa0 && c1 < 0xff && c > 0xa0 && c < 0xff) { 124 w = (c1 - 0x81)*192 + (c - 0x40); 131 w = (c1 << 8) | c; 139 w = (c1 << 8) | c; 160 int c1, c2, s; local 182 c1 = (s >> 8) & 0xff; 185 if (c1 < [all...] |
| H A D | mbfilter_euc_jp.c | 105 int c1, s, w; local 127 c1 = filter->cache; 129 s = (c1 - 0xa1)*94 + c - 0xa1; 136 w = ((c1 & 0x7f) << 8) | (c & 0x7f); 144 w = (c1 << 8) | c; 177 c1 = filter->cache; 178 if (c1 > 0xa0 && c1 < 0xff && c > 0xa0 && c < 0xff) { 179 s = (c1 - 0xa1)*94 + c - 0xa1; 186 w = ((c1 215 int c1, s; local [all...] |
| H A D | mbfilter_euc_jp_win.c | 108 int c1, s, w, n; local 130 c1 = filter->cache; 133 s = (c1 - 0xa1)*94 + c - 0xa1; 161 w = ((c1 & 0x7f) << 8) | (c & 0x7f); 169 w = (c1 << 8) | c; 202 c1 = filter->cache; 203 if (c1 > 0xa0 && c1 < 0xff && c > 0xa0 && c < 0xff) { 204 s = (c1 - 0xa1)*94 + c - 0xa1; 211 s = (c1<< 261 int c1, c2, s1; local [all...] |
| H A D | mbfilter_euc_kr.c | 104 int c1, w, flag; local 122 c1 = filter->cache; 124 if (c1 >= 0xa1 && c1 <= 0xc6) { 126 } else if (c1 >= 0xc7 && c1 <= 0xfe && c1 != 0xc9) { 131 w = (c1 - 0xa1)*190 + (c - 0x41); 138 w = (c1 - 0xc7)*94 + (c - 0xa1); 147 w = (c1 << 176 int c1, c2, s; local [all...] |
| H A D | mbfilter_euc_tw.c | 105 int c1, s, w, plane; local 126 c1 = filter->cache; 128 w = (c1 - 0xa1)*94 + (c - 0xa1); 135 w = (c1 << 8) | c; 143 w = (c1 << 8) | c; 151 c1 = filter->cache; 159 w = (c1 << 8) | c; 168 c1 = filter->cache; 174 filter->cache = (c1 << 8) + c - 0xa1; 176 w = (c1 << 228 int c1, s, plane; local [all...] |
| H A D | mbfilter_gb18030.c | 128 int c1, c2, c3, w = -1; local 149 c1 = filter->cache; 152 if (c1 >= 0x81 && c1 <= 0x84 && c >= 0x30 && c <= 0x39) { /* 4 byte range: Unicode BMP */ 154 filter->cache = (c1 << 8) | c; 156 } else if (c1 >= 0x90 && c1 <= 0xe3 && c >= 0x30 && c <= 0x39) { 159 filter->cache = (c1 << 8) | c; 161 } else if (((c1 >= 0xaa && c1 < 288 int c1, s = 0, s1 = 0; local 423 int c1; local [all...] |
| H A D | mbfilter_hz.c | 83 int c1, s, w; local 106 c1 = filter->cache; 107 if (c1 > 0x20 && c1 < 0x7f && c > 0x20 && c < 0x7f) { 108 s = (c1 - 1)*192 + c + 0x40; /* GB2312 */ 115 w = (c1 << 8) | c; 123 w = (c1 << 8) | c;
|
| H A D | mbfilter_iso2022_jp_ms.c | 81 #define sjistoidx(c1, c2) \ 82 (((c1) > 0x9f) \ 83 ? (((c1) - 0xc1) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)) \ 84 : (((c1) - 0x81) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40))) 94 int c1, s, w; local 127 c1 = filter->cache; 129 s = (c1 - 0x21)*94 + c - 0x21; 160 w = (c1 << 8) | c; 166 if (c1 > 0x20 && c1 < 295 int c1, c2, s1, s2; local [all...] |
| H A D | mbfilter_iso2022_kr.c | 82 int c1, w, flag; local 111 c1 = filter->cache; 113 if (c1 > 0x20 && c1 < 0x47) { 115 } else if (c1 >= 0x47 && c1 <= 0x7e && c1 != 0x49) { 120 w = (c1 - 0x21)*190 + (c - 0x41) + 0x80; 127 w = (c1 - 0x47)*94 + (c - 0x21); 136 w = (c1 << 198 int c1, c2, s; local [all...] |
| H A D | mbfilter_iso2022jp_mobile.c | 83 #define sjistoidx(c1, c2) \ 84 (((c1) > 0x9f) \ 85 ? (((c1) - 0xc1) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)) \ 86 : (((c1) - 0x81) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40))) 90 #define SJIS_ENCODE(c1,c2,s1,s2) \ 92 s1 = c1; \ 95 if ((c1) < 0x5f) { \ 101 if ((c1) & 1) { \ 111 #define SJIS_DECODE(c1,c2,s1,s2) \ 113 s1 = c1; \ 145 int c1, s, w, snd; local 322 int c1, c2, s1, s2; local [all...] |
| H A D | mbfilter_jis.c | 119 int c1, s, w; local 159 c1 = filter->cache; 161 s = (c1 - 0x21)*94 + c - 0x21; 169 w = (c1 << 8) | c; 180 w = (c1 << 8) | c; 191 w = (c1 << 8) | c; 290 int c1, s; local 303 c1 = c & ~MBFL_WCSPLANE_MASK; 304 if (c1 == MBFL_WCSPLANE_JIS0208) { 306 } else if (c1 [all...] |
| H A D | mbfilter_sjis.c | 102 #define SJIS_ENCODE(c1,c2,s1,s2) \ 104 s1 = c1; \ 107 if ((c1) < 0x5f) { \ 113 if ((c1) & 1) { \ 123 #define SJIS_DECODE(c1,c2,s1,s2) \ 125 s1 = c1; \ 152 int c1, s1, s2, w; local 172 c1 = filter->cache; 174 SJIS_DECODE(c1, c, s1, s2); 187 w = (c1 << 217 int c1, c2, s1, s2; local [all...] |
| H A D | mbfilter_sjis_2004.c | 86 #define SJIS_ENCODE(c1,c2,s1,s2) \ 88 s1 = c1; \ 91 if ((c1) < 0x5f) { \ 97 if ((c1) & 1) { \ 107 #define SJIS_DECODE(c1,c2,s1,s2) \ 109 s1 = c1; \ 137 int c1, c2, s, s1, s2, w = 0, w1; local 205 c1 = filter->cache; 209 s1 = c1 - 0x80; 214 SJIS_DECODE(c1, 487 int c1, c2, s1 = 0, s2; local 680 int k, c1, c2, s1, s2; local [all...] |
| H A D | mbfilter_sjis_mac.c | 85 #define SJIS_ENCODE(c1,c2,s1,s2) \ 87 s1 = c1; \ 90 if ((c1) < 0x5f) { \ 96 if ((c1) & 1) { \ 106 #define SJIS_DECODE(c1,c2,s1,s2) \ 108 s1 = c1; \ 135 int c1, s, s1, s2, w; local 168 c1 = filter->cache; 171 SJIS_DECODE(c1, c, s1, s2); 261 w = (c1 << 283 int c1, c2, s1, s2, mode; local 677 int i, c1, s1 = 0; local [all...] |
| H A D | mbfilter_sjis_open.c | 99 #define SJIS_ENCODE(c1,c2,s1,s2) \ 101 s1 = c1; \ 104 if ((c1) < 0x5f) { \ 110 if ((c1) & 1) { \ 120 #define SJIS_DECODE(c1,c2,s1,s2) \ 122 s1 = c1; \ 148 int c1, s, s1, s2, w; local 168 c1 = filter->cache; 171 SJIS_DECODE(c1, c, s1, s2); 212 w = (c1 << 233 int c1, c2, s1, s2; local [all...] |
| H A D | mbfilter_uhc.c | 104 int c1, w = 0, flag = 0; local 122 c1 = filter->cache; 124 if ( c1 >= 0x81 && c1 <= 0xa0){ 125 w = (c1 - 0x81)*190 + (c - 0x41); 132 } else if ( c1 >= 0xa1 && c1 <= 0xc6){ 133 w = (c1 - 0xa1)*190 + (c - 0x41); 140 } else if ( c1 >= 0xc7 && c1 < 182 int c1, s; local [all...] |
| H A D | mbfilter_utf8.c | 101 int s, c1, w = 0, flag = 0; local 133 c1 = (s >> 12) & 0xf; 134 if ((c1 == 0x0 && c >= 0xa0) || 135 (c1 == 0xd && c < 0xa0) || 136 (c1 > 0x0 && c1 != 0xd)) { 150 c1 = (s >> 18) & 0x7; 151 if ((c1 == 0x0 && c >= 0x90) || 152 (c1 > 0x0 && c1 < 240 int c1; local [all...] |
| H A D | mbfilter_utf8_mobile.c | 192 int s1 = 0, c1 = 0, snd = 0; local 237 c1 = (s >> 12) & 0xf; 238 if ((c1 == 0x0 && c >= 0xa0) || 239 (c1 == 0xd && c < 0xa0) || 240 (c1 > 0x0 && c1 != 0xd)) { 254 c1 = (s >> 18) & 0x7; 255 if ((c1 == 0x0 && c >= 0x90) || 256 (c1 > 0x0 && c1 < 318 int s1, c1; local [all...] |
| /PHP_5_5/ext/mbstring/oniguruma/enc/ |
| H A D | utf16_le.c | 88 UChar c1 = *(p+1); local 90 if (UTF16_IS_SURROGATE_FIRST(c1)) { 91 code = ((((c1 - 0xd8) << 2) + ((c0 & 0xc0) >> 6) + 1) << 16) 96 code = c1 * 256 + p[0];
|
| /PHP_5_5/ext/standard/ |
| H A D | levenshtein.c | 33 int i1, i2, c0, c1, c2; local 56 c1 = p1[i2 + 1] + cost_del; 57 if (c1 < c0) { 58 c0 = c1;
|