line |
true |
false |
branch |
38
|
0 |
0 |
if(res->flag == 0) |
40
|
0 |
0 |
if(data <= 0x7F) { |
44
|
0 |
0 |
else if(data >= 0xC2 && data <= 0xDF) { |
|
0 |
0 |
else if(data >= 0xC2 && data <= 0xDF) { |
48
|
0 |
0 |
else if(data >= 0xE0 && data <= 0xEF) { |
|
0 |
0 |
else if(data >= 0xE0 && data <= 0xEF) { |
49
|
0 |
0 |
if(data == 0xE0) { |
52
|
0 |
0 |
else if(data == 0xED){ |
59
|
0 |
0 |
else if(data >= 0xF0 && data <= 0xF4) { |
|
0 |
0 |
else if(data >= 0xF0 && data <= 0xF4) { |
60
|
0 |
0 |
if(data == 0xF0) { |
63
|
0 |
0 |
else if(data == 0xF4){ |
77
|
0 |
0 |
if(data < res->first && data > res->second) |
|
0 |
0 |
if(data < res->first && data > res->second) |
94
|
0 |
0 |
if(res->third != res->flag) |
105
|
0 |
0 |
if(data <= 0x7F) |
115
|
0 |
0 |
if(data <= 0x7F) |
125
|
0 |
0 |
if(data <= 0x7F) |
135
|
0 |
0 |
if(data <= 0x7F) |
145
|
0 |
0 |
if(data <= 0x7F) |
155
|
0 |
0 |
if(data <= 0x7F) |
165
|
0 |
0 |
if(data <= 0x7F) |
175
|
0 |
0 |
if(data <= 0x7F) |
185
|
0 |
0 |
if(data <= 0x7F) |
195
|
0 |
0 |
if(data <= 0x7F) |
205
|
0 |
0 |
if(data <= 0x7F) |
215
|
0 |
0 |
if(data <= 0x7F) |
225
|
0 |
0 |
if(data <= 0x7F) |
235
|
0 |
0 |
if(data <= 0x7F) |
245
|
24 |
12 |
if(data <= 0x7F) |
255
|
24 |
12 |
if(data <= 0x7F) |
265
|
0 |
0 |
if(data <= 0x7F) |
275
|
0 |
0 |
if(data <= 0x7F) |
285
|
0 |
0 |
if(data <= 0x7F) |
295
|
24 |
12 |
if(data <= 0x7F) |
305
|
0 |
0 |
if(data <= 0x7F) |
315
|
0 |
0 |
if(data <= 0x7F) |
325
|
0 |
0 |
if(data <= 0x7F) |
335
|
0 |
0 |
if(data <= 0x7F) |
345
|
0 |
0 |
if(data <= 0x7F) |
355
|
0 |
0 |
if(data <= 0x7F) |
365
|
0 |
0 |
if(data <= 0x7F) |
375
|
0 |
0 |
if(data <= 0x7F) |
391
|
0 |
0 |
if((pointer > 39419 && pointer < 189000) || pointer > 1237575) |
|
0 |
0 |
if((pointer > 39419 && pointer < 189000) || pointer > 1237575) |
|
0 |
0 |
if((pointer > 39419 && pointer < 189000) || pointer > 1237575) |
395
|
0 |
0 |
if(pointer == 7457) |
402
|
0 |
0 |
while (offset) { |
405
|
0 |
0 |
if(myencoding_map_gb18030_ranges[offset][0] == pointer || |
|
0 |
0 |
if(myencoding_map_gb18030_ranges[offset][0] == pointer || |
419
|
0 |
0 |
if(res->third) { |
420
|
0 |
0 |
if(data >= 0x30 && data <= 0x39) { |
|
0 |
0 |
if(data >= 0x30 && data <= 0x39) { |
429
|
0 |
0 |
if(res->result) |
434
|
0 |
0 |
else if(res->second) { |
435
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
445
|
0 |
0 |
else if(res->first) { |
446
|
0 |
0 |
if(data >= 0x30 && data <= 0x39) { |
|
0 |
0 |
if(data >= 0x30 && data <= 0x39) { |
456
|
0 |
0 |
if(data < 0x7F) |
461
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
462
|
0 |
0 |
(data >= 0x80 && data <= 0xFE)) |
474
|
0 |
0 |
if(data <= 0x7F) { |
479
|
0 |
0 |
if(data == 0x80) { |
484
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
494
|
0 |
0 |
if(res->first) |
502
|
0 |
0 |
if(data < 0x7F) |
507
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
508
|
0 |
0 |
(data >= 0xA1 && data <= 0xFE)) |
538
|
0 |
0 |
if(pointer == 0) |
547
|
0 |
0 |
if(data <= 0x7F) { |
552
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
562
|
0 |
0 |
if(res->first == 0x8E && (data >= 0xA1 && data <= 0xDF)) { |
|
0 |
0 |
if(res->first == 0x8E && (data >= 0xA1 && data <= 0xDF)) { |
|
0 |
0 |
if(res->first == 0x8E && (data >= 0xA1 && data <= 0xDF)) { |
568
|
0 |
0 |
else if(res->first == 0x8F && (data >= 0xA1 && data <= 0xFE)) { |
|
0 |
0 |
else if(res->first == 0x8F && (data >= 0xA1 && data <= 0xFE)) { |
|
0 |
0 |
else if(res->first == 0x8F && (data >= 0xA1 && data <= 0xFE)) { |
574
|
0 |
0 |
else if(res->first) |
579
|
0 |
0 |
if((lead >= 0xA1 && lead <= 0xFE) && |
|
0 |
0 |
if((lead >= 0xA1 && lead <= 0xFE) && |
|
0 |
0 |
if((lead >= 0xA1 && lead <= 0xFE) && |
580
|
0 |
0 |
(data >= 0xA1 && data <= 0xFE)) |
583
|
0 |
0 |
if(res->flag) { |
592
|
0 |
0 |
if(res->result == 0) |
599
|
0 |
0 |
if(data <= 0x7F) { |
604
|
0 |
0 |
if((data >= 0x8E && data <= 0x8F) || |
|
0 |
0 |
if((data >= 0x8E && data <= 0x8F) || |
|
0 |
0 |
if((data >= 0x8E && data <= 0x8F) || |
605
|
0 |
0 |
(data >= 0xA1 && data <= 0xFE)) |
624
|
0 |
0 |
if(data == 0x1B) { |
628
|
0 |
0 |
else if((data <= 0x7F) && |
|
0 |
0 |
else if((data <= 0x7F) && |
629
|
0 |
0 |
data != 0x0E && data != 0x0F && data != 0x1B) |
|
0 |
0 |
data != 0x0E && data != 0x0F && data != 0x1B) |
642
|
0 |
0 |
if(data == 0x1B) { |
646
|
0 |
0 |
else if(data == 0x5C) { |
651
|
0 |
0 |
else if(data == 0x7E) { |
656
|
0 |
0 |
else if((data <= 0x7F) && |
|
0 |
0 |
else if((data <= 0x7F) && |
657
|
0 |
0 |
data != 0x0E && data != 0x0F && |
|
0 |
0 |
data != 0x0E && data != 0x0F && |
658
|
0 |
0 |
data != 0x1B && data != 0x5C && |
|
0 |
0 |
data != 0x1B && data != 0x5C && |
672
|
0 |
0 |
if(data == 0x1B) { |
676
|
0 |
0 |
else if(data >= 0x21 && data <= 0x5F) { |
|
0 |
0 |
else if(data >= 0x21 && data <= 0x5F) { |
689
|
0 |
0 |
if(data == 0x1B) { |
693
|
0 |
0 |
else if(data >= 0x21 && data <= 0x7E) { |
|
0 |
0 |
else if(data >= 0x21 && data <= 0x7E) { |
707
|
0 |
0 |
if(data == 0x1B) { |
711
|
0 |
0 |
else if(data >= 0x21 && data <= 0x7E) { |
|
0 |
0 |
else if(data >= 0x21 && data <= 0x7E) { |
717
|
0 |
0 |
if(res->result == 0) |
729
|
0 |
0 |
if(data == 0x24 || data == 0x28) { |
|
0 |
0 |
if(data == 0x24 || data == 0x28) { |
749
|
0 |
0 |
if(lead == 0x28 && data == 0x42) { |
|
0 |
0 |
if(lead == 0x28 && data == 0x42) { |
752
|
0 |
0 |
else if(lead == 0x28 && data == 0x4A) { |
|
0 |
0 |
else if(lead == 0x28 && data == 0x4A) { |
755
|
0 |
0 |
else if(lead == 0x28 && data == 0x49) { |
|
0 |
0 |
else if(lead == 0x28 && data == 0x49) { |
758
|
0 |
0 |
else if(lead == 0x24 && (data == 0x40 || data == 0x42)) { |
|
0 |
0 |
else if(lead == 0x24 && (data == 0x40 || data == 0x42)) { |
|
0 |
0 |
else if(lead == 0x24 && (data == 0x40 || data == 0x42)) { |
762
|
0 |
0 |
if(res->second) |
769
|
0 |
0 |
if(output_flag) |
792
|
0 |
0 |
if(res->first) |
797
|
0 |
0 |
if(data < 0x7F) |
802
|
0 |
0 |
if(res->first < 0xA0) |
808
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
|
0 |
0 |
if((data >= 0x40 && data <= 0x7E) || |
809
|
0 |
0 |
(data >= 0x80 && data <= 0xFC)) |
814
|
0 |
0 |
if(pointer) |
819
|
0 |
0 |
if(res->result == 0x00 && (pointer >= 8836 && pointer <= 10528)) { |
|
0 |
0 |
if(res->result == 0x00 && (pointer >= 8836 && pointer <= 10528)) { |
|
0 |
0 |
if(res->result == 0x00 && (pointer >= 8836 && pointer <= 10528)) { |
823
|
0 |
0 |
if(res->result) |
829
|
0 |
0 |
if((data <= 0x7F) || data == 0x80) { |
|
0 |
0 |
if((data <= 0x7F) || data == 0x80) { |
834
|
0 |
0 |
if(data >= 0xA1 && data <= 0xDF) { |
|
0 |
0 |
if(data >= 0xA1 && data <= 0xDF) { |
839
|
0 |
0 |
if((data >= 0x81 && data <= 0x9F) || |
|
0 |
0 |
if((data >= 0x81 && data <= 0x9F) || |
|
0 |
0 |
if((data >= 0x81 && data <= 0x9F) || |
840
|
0 |
0 |
(data >= 0xE0 && data <= 0xFC)) { |
852
|
0 |
0 |
if(res->first) |
857
|
0 |
0 |
if(data >= 0x41 && data <= 0xFE) { |
|
0 |
0 |
if(data >= 0x41 && data <= 0xFE) { |
861
|
0 |
0 |
if(pointer) |
864
|
0 |
0 |
if(res->result) |
870
|
0 |
0 |
if(data <= 0x7F) { |
875
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
|
0 |
0 |
if(data >= 0x81 && data <= 0xFE) { |
889
|
36 |
36 |
if(res->first == 0x00) { |
895
|
0 |
36 |
if(res->flag) |
902
|
0 |
36 |
if(res->second) { |
906
|
0 |
0 |
if(code_unit >= 0xDC00 && code_unit <= 0xDFFF) { |
|
0 |
0 |
if(code_unit >= 0xDC00 && code_unit <= 0xDFFF) { |
914
|
0 |
0 |
if(res->flag) { |
926
|
0 |
36 |
if(code_unit >= 0xD800 && code_unit <= 0xDBFF) { |
|
0 |
0 |
if(code_unit >= 0xD800 && code_unit <= 0xDBFF) { |
931
|
0 |
36 |
if(code_unit >= 0xDC00 && code_unit <= 0xDFFF) { |
|
0 |
0 |
if(code_unit >= 0xDC00 && code_unit <= 0xDFFF) { |
942
|
0 |
0 |
if(res->flag == 0) |
950
|
0 |
72 |
if(res->flag) |
958
|
0 |
0 |
if(data <= 0x7F) |
973
|
0 |
0 |
if (codepoint <= 0x0000007F) { |
976
|
0 |
0 |
else if (codepoint <= 0x000007FF) { |
979
|
0 |
0 |
else if (codepoint <= 0x0000FFFF) { |
982
|
0 |
0 |
else if (codepoint <= 0x001FFFFF) { |
986
|
0 |
0 |
else if (codepoint <= 0x03FFFFFF) { |
989
|
0 |
0 |
else if (codepoint <= 0x7FFFFFFF) { |
998
|
0 |
0 |
if (data < 0x80){ |
1001
|
0 |
0 |
else if ((data & 0xe0) == 0xc0) { |
1004
|
0 |
0 |
else if ((data & 0xf0) == 0xe0) { |
1007
|
0 |
0 |
else if ((data & 0xf8) == 0xf0) { |
1010
|
0 |
0 |
else if ((data & 0xfc) == 0xf8) { |
1013
|
0 |
0 |
else if ((data & 0xff) == 0xfc) { |
1029
|
192 |
80 |
if (codepoint <= 0x0000007F) { |
1034
|
80 |
0 |
else if (codepoint <= 0x000007FF) { |
1041
|
0 |
0 |
else if (codepoint <= 0x0000FFFF) { |
1049
|
0 |
0 |
else if (codepoint <= 0x001FFFFF) { |
1093
|
0 |
0 |
if (codepoint <= 0x0000007F) { |
1098
|
0 |
0 |
else if (codepoint <= 0x000007FF) { |
1105
|
0 |
0 |
else if (codepoint <= 0x0000FFFF) { |
1113
|
0 |
0 |
else if (codepoint <= 0x001FFFFF) { |
1150
|
0 |
0 |
if (*data < 0x80){ |
1155
|
0 |
0 |
else if ((*data & 0xe0) == 0xc0) { |
1162
|
0 |
0 |
else if ((*data & 0xf0) == 0xe0) { |
1170
|
0 |
0 |
else if ((*data & 0xf8) == 0xf0) { |
1185
|
0 |
0 |
if((codepoint >> 16)) { |
1207
|
0 |
0 |
if(raw_str->data == NULL) { |
1212
|
0 |
0 |
if(raw_str->data == NULL) |
1222
|
0 |
0 |
for (i = 0; i < length; i++) |
1224
|
0 |
0 |
if(func(u_buff[i], &res) == MyENCODING_STATUS_OK) { |
1225
|
0 |
0 |
if((raw_str->length + 6) >= raw_str->size) { |
1229
|
0 |
0 |
if(new_data == NULL) { |