../3rdparty/pcre/pcre16_ord2utf16.c

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6int -
7_pcre16_ord2utf(pcre_uint32 cvalue, pcre_uchar *buffer) -
8{ -
9 -
10 -
11 -
12 -
13if ((cvalue & 0xf800) == 0xd800 || cvalue >= 0x110000)
partially evaluated: (cvalue & 0xf800) == 0xd800
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:14
partially evaluated: cvalue >= 0x110000
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:14
0-14
14 cvalue = 0xfffe;
never executed: cvalue = 0xfffe;
0
15 -
16if (cvalue <= 0xffff)
evaluated: cvalue <= 0xffff
TRUEFALSE
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 -
22cvalue -= 0x10000; -
23*buffer++ = 0xd800 | (cvalue >> 10); -
24*buffer = 0xdc00 | (cvalue & 0x3ff); -
25return 2;
executed: return 2;
Execution Count:6
6
26 -
27 -
28 -
29 -
30 -
31 -
32} -
33 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial