Home
last modified time | relevance | path

Searched refs:ch2 (Results 1 – 25 of 31) sorted by relevance

12

/glibc-2.36/iconvdata/
Dcp932.c4574 uint32_t ch2; \
4585 ch2 = inptr[1]; \
4586 idx = ch * 256 + ch2; \
4587 if (__builtin_expect (ch2 < 0x40, 0) \
4588 || __builtin_expect (ch2 > 0xfc, 0) \
4589 || __builtin_expect (ch2 == 0x7f, 0) \
4615 ch = cjk_block1[(ch - 0x81) * 192 + ch2 - 0x40]; \
4617 ch = cjk_block2[(ch - 0x87) * 192 + ch2 - 0x40]; \
4619 ch = cjk_block3[(ch - 0x88) * 192 + ch2 - 0x9f]; \
4621 ch = cjk_block4[(ch - 0x89) * 192 + ch2 - 0x40]; \
[all …]
Duhc.c3077 uint32_t ch2; \
3087 ch2 = inptr[1]; \
3107 if (ch < 0xa1 || ch2 < 0xa1) \
3110 || __builtin_expect (ch2 < 0x41, 0) \
3111 || __builtin_expect (ch2 > 0xfe, 0) \
3112 || (__builtin_expect (ch2 > 0x5a, 0) && ch2 < 0x61) \
3113 || (__builtin_expect (ch2 > 0x7a, 0) && ch2 < 0x81) \
3114 || (__builtin_expect (ch == 0xc6, 0) && ch2 > 0x52)) \
3120 ch = uhc_extra_to_ucs[ch2 - 0x41 \
3121 - (ch2 > 0x80 ? 12 : (ch2 > 0x60 ? 6 : 0)) \
Deuc-jp-ms.c4674 unsigned char ch2; \
4684 ch2 = (unsigned char)inptr[1]; \
4687 if (__glibc_unlikely (ch2 < 0xa1)) \
4704 ch = jisx0201_to_ucs4 (ch2); \
4736 else if (ch2 <= 0xf2) \
4748 else if (ch2 <= 0xf4) \
4750 int idx = ((ch2-0xf3)*94 + ch3-0xa1) - (94-12); \
4762 else if (ch2 <= 0xfe) \
4764 ch = 0xe3ac + (ch2 - 0xf5) * 94 + (ch3 - 0xa1); \
4777 else if (__builtin_expect(ch2 == 0xff, 0)) \
[all …]
Djohab.c191 uint32_t ch2; \
202 ch2 = inptr[1]; \
203 idx = ch * 256 + ch2; \
237 if (__builtin_expect (ch2 < 0x31, 0) \
238 || (__builtin_expect (ch2 > 0x7e, 0) && ch2 < 0x91) \
239 || __builtin_expect (ch2, 0) == 0xff \
240 || (__builtin_expect (ch, 0) == 0xd9 && ch2 > 0xe8) \
242 && ch2 > 0xa0 && ch2 < 0xd4) \
243 || (__builtin_expect (ch, 0) == 0xde && ch2 > 0xf1)) \
250 ch = johab_sym_hanja_to_ucs (idx, ch, ch2); \
Dbig5hkscs.c17825 uint32_t ch2; \
17835 ch2 = inptr[1]; \
17836 idx = (ch - 0x87) * 195 + ch2 - 0x40; \
17838 if (ch < 0x87 || ch2 < 0x40 || ch2 > 0xfe \
17845 ch2 = 0x304; \
17850 ch2 = 0x30c; \
17855 ch2 = 0x304; \
17860 ch2 = 0x30c; \
17874 put32 (outptr, ch2); \
17881 *statep = (ch2 << 3) | (*statep & 7); \
Dshift_jisx0213.c145 uint32_t ch2; \
154 ch2 = inptr[1]; \
157 if (__glibc_unlikely (ch2 < 0x40 || ch2 == 0x7f || ch2 > 0xfc)) \
168 if (ch2 < 0x80) \
169 ch2 -= 0x40; \
171 ch2 -= 0x41; \
174 if (ch2 >= 0x5e) \
175 ch2 -= 0x5e, ch++; \
176 ch2 += 0x21; \
188 ch = jisx0213_to_ucs4 (0x121 + ch, ch2); \
Dbig5.c8401 uint32_t ch2; \
8412 ch2 = inptr[1]; \
8414 if (ch2 >= 0x40 && ch2 <= 0x7e) \
8415 idx += ch2 - 0x40; \
8416 else if (__builtin_expect (ch2 >= 0xa1, 1) \
8417 && __builtin_expect (ch2 <= 0xfe, 1)) \
8418 idx += 0x3f + (ch2 - 0xa1); \
Dsjis.c4361 uint32_t ch2; \
4372 ch2 = inptr[1]; \
4373 idx = ch * 256 + ch2; \
4374 if (__glibc_unlikely (ch2 < 0x40)) \
4393 ch = cjk_block1[(ch - 0x81) * 192 + ch2 - 0x40]; \
4395 ch = cjk_block2[(ch - 0x88) * 192 + ch2 - 0x9f]; \
4397 ch = cjk_block3[(ch - 0x89) * 192 + ch2 - 0x40]; \
4399 ch = cjk_block4[(ch - 0xe0) * 192 + ch2 - 0x40]; \
Djis0208.h51 unsigned char ch2; in uint32_t() local
60 ch2 = (*s)[1]; in uint32_t()
61 if (ch2 < offset || (ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t()
64 idx = (ch - 0x21 - offset) * 94 + (ch2 - 0x21 - offset); in uint32_t()
Djis0212.h49 unsigned char ch2; in uint32_t() local
59 ch2 = (*s)[1]; in uint32_t()
60 if (ch2 < offset || (ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t()
63 idx = (ch - offset - 0x21) * 94 + (ch2 - offset - 0x21); in uint32_t()
Dgb18030.c24123 uint32_t ch2; \
24134 ch2 = inptr[1]; \
24137 if (ch2 < 0x30) \
24140 if (ch2 >= 0x30 && ch2 <= 0x39) \
24169 idx = (((ch - 0x81) * 10 + (ch2 - 0x30)) * 126 \
24205 else if (__glibc_likely (ch2 >= 0x40)) \
24208 idx = (ch - 0x81) * 192 + (ch2 - 0x40); \
Deuc-jisx0213.c133 uint32_t ch2; \
142 ch2 = inptr[1]; \
145 if (__glibc_unlikely (ch2 < 0xa1 || ch2 > 0xfe)) \
154 if (__glibc_unlikely (ch2 > 0xdf)) \
157 ch = ch2 + 0xfec0; \
179 ch = jisx0213_to_ucs4 (0x200 - 0x80 + ch2, ch3 ^ 0x80); \
186 ch = jisx0213_to_ucs4 (0x100 - 0x80 + ch, ch2 ^ 0x80); \
Dcns11643l2.h32 unsigned char ch2; in uint32_t() local
41 ch2 = (*s)[1]; in uint32_t()
42 if ((ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t()
45 idx = (ch - 0x21 - offset) * 94 + (ch2 - 0x21 - offset); in uint32_t()
Diso-ir-165.h45 unsigned char ch2; in uint32_t() local
54 ch2 = (*s)[1]; in uint32_t()
55 if (ch2 <= 0x20 || ch2 >= 0x7f) in uint32_t()
58 res = __isoir165_to_tab[(ch - 0x21) * 94 + (ch2 - 0x21)]; in uint32_t()
Dksc5601.h50 unsigned char ch2; in uint32_t() local
62 ch2 = (*s)[1]; in uint32_t()
63 if (ch2 < offset || (ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t()
66 idx = (ch - offset - 0x21) * 94 + (ch2 - offset - 0x21); in uint32_t()
Dcns11643l1.h32 unsigned char ch2; in uint32_t() local
41 ch2 = (*s)[1]; in uint32_t()
42 if ((ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t()
45 idx = (ch - 0x21 - offset) * 94 + (ch2 - 0x21 - offset); in uint32_t()
Dt.61.c391 uint32_t ch2; \
400 ch2 = inptr[1]; \
402 if (__builtin_expect (ch2 < 0x20, 0) \
403 || __builtin_expect (ch2 >= 0x80, 0)) \
409 ch = to_ucs4_comb[ch - 0xc1][ch2 - 0x20]; \
Dgb2312.h35 unsigned char ch2; in uint32_t() local
44 ch2 = (*s)[1]; in uint32_t()
45 if ((ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t()
48 idx = (ch - 0x21 - offset) * 94 + (ch2 - 0x21 - offset); in uint32_t()
Diso_6937-2.c398 int ch2; \
408 ch2 = inptr[1]; \
410 if (__builtin_expect (ch2 < 0x20, 0) \
411 || __builtin_expect (ch2 >= 0x80, 0)) \
417 ch = to_ucs4_comb[ch - 0xc1][ch2 - 0x20]; \
Diso_6937.c398 int ch2; \
408 ch2 = inptr[1]; \
410 if (__builtin_expect (ch2 < 0x20, 0) \
411 || __builtin_expect (ch2 >= 0x80, 0)) \
417 ch = to_ucs4_comb[ch - 0xc1][ch2 - 0x20]; \
Dansi_x3.110.c408 uint32_t ch2; \
417 ch2 = inptr[1]; \
419 if (__builtin_expect (ch2 < 0x20, 0) \
420 || __builtin_expect (ch2 >= 0x80, 0)) \
427 ch = to_ucs4_comb[ch - 0xc1][ch2 - 0x20]; \
Dcns11643.h45 unsigned char ch2; in uint32_t() local
56 ch2 = (*s)[1]; in uint32_t()
57 if ((ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t()
64 idx = (ch2 - 0x21 - offset) * 94 + (ch3 - 0x21 - offset); in uint32_t()
Dgbk.c13166 uint32_t ch2; \
13177 ch2 = inptr[1]; \
13181 if (__builtin_expect (ch2 < 0x40, 0) \
13182 || (__builtin_expect (ch, 0x81) == 0xfe && ch2 > 0xa0)) \
13189 idx = (ch - 0x81)*192 + (ch2 - 0x40); \
/glibc-2.36/stdio-common/
Dtst-rndseek.c27 char ch2; in fp_test() local
37 ch2 = tempdata[idx]; in fp_test()
38 if (ch1 != ch2) in fp_test()
41 name, rounds, idx, ch1, ch2); in fp_test()
47 ch2 = tempdata[idx + 1]; in fp_test()
48 if (ch1 != ch2) in fp_test()
51 name, rounds, idx + 1, ch1, ch2); in fp_test()
109 char ch2 = tempdata[i]; in do_test() local
117 if (ch1 != ch2) in do_test()
119 printf ("%zd: '%c' vs '%c'\n", i, ch1, ch2); in do_test()
/glibc-2.36/locale/programs/
Dlinereader.c701 utf8_sequence_error (struct linereader *lr, uint8_t ch1, int ch2, int ch3, in utf8_sequence_error() argument
706 if (ch2 < 0) in utf8_sequence_error()
709 snprintf (buf, sizeof (buf), "0x%02x 0x%02x", ch1, ch2); in utf8_sequence_error()
711 snprintf (buf, sizeof (buf), "0x%02x 0x%02x 0x%02x", ch1, ch2, ch3); in utf8_sequence_error()
714 ch1, ch2, ch3, ch4); in utf8_sequence_error()
730 int ch2 = lr_getc (lr); in utf8_decode() local
731 if (!utf8_valid_trailing (ch2)) in utf8_decode()
732 return utf8_sequence_error (lr, ch1, ch2, -1, -1); in utf8_decode()
736 uint32_t result = ((ch1 & 0x1f) << 6) | (ch2 & 0x3f); in utf8_decode()
738 return utf8_sequence_error (lr, ch1, ch2, -1, -1); in utf8_decode()
[all …]

12