Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | int | - |
7 | _pcre16_ord2utf(pcre_uint32 cvalue, pcre_uchar *buffer) | - |
8 | { | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | if ((cvalue & 0xf800) == 0xd800 || cvalue >= 0x110000) partially evaluated: (cvalue & 0xf800) == 0xd800 no Evaluation Count:0 | yes Evaluation Count:14 |
partially evaluated: cvalue >= 0x110000 no Evaluation Count:0 | yes Evaluation Count:14 |
| 0-14 |
14 | cvalue = 0xfffe; never executed: cvalue = 0xfffe; | 0 |
15 | | - |
16 | if (cvalue <= 0xffff) evaluated: cvalue <= 0xffff yes Evaluation Count:8 | yes Evaluation Count:6 |
| 6-8 |
17 | { | - |
18 | *buffer = (pcre_uchar)cvalue; | - |
19 | return 1; executed: return 1; Execution Count:8 | 8 |
20 | } | - |
21 | | - |
22 | cvalue -= 0x10000; | - |
23 | *buffer++ = 0xd800 | (cvalue >> 10); | - |
24 | *buffer = 0xdc00 | (cvalue & 0x3ff); | - |
25 | return 2; executed: return 2; Execution Count:6 | 6 |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | } | - |
33 | | - |
| | |