Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | int | - |
4 | _pcre16_strcmp_uc_uc(const pcre_uchar *str1, const pcre_uchar *str2) | - |
5 | { | - |
6 | pcre_uchar c1; | - |
7 | pcre_uchar c2; | - |
8 | | - |
9 | while (*str1 != '\0' || *str2 != '\0') evaluated: *str1 != '\0' yes Evaluation Count:50 | yes Evaluation Count:6 |
partially evaluated: *str2 != '\0' no Evaluation Count:0 | yes Evaluation Count:6 |
| 0-50 |
10 | { | - |
11 | c1 = *str1++; | - |
12 | c2 = *str2++; | - |
13 | if (c1 != c2) evaluated: c1 != c2 yes Evaluation Count:11 | yes Evaluation Count:39 |
| 11-39 |
14 | return ((c1 > c2) << 1) - 1; executed: return ((c1 > c2) << 1) - 1; Execution Count:11 | 11 |
15 | } executed: } Execution Count:39 | 39 |
16 | | - |
17 | return 0; executed: return 0; Execution Count:6 | 6 |
18 | } | - |
19 | | - |
20 | int | - |
21 | _pcre16_strcmp_uc_c8(const pcre_uchar *str1, const char *str2) | - |
22 | { | - |
23 | const pcre_uint8 *ustr2 = (pcre_uint8 *)str2; | - |
24 | pcre_uchar c1; | - |
25 | pcre_uchar c2; | - |
26 | | - |
27 | while (*str1 != '\0' || *ustr2 != '\0') evaluated: *str1 != '\0' yes Evaluation Count:75 | yes Evaluation Count:6 |
partially evaluated: *ustr2 != '\0' no Evaluation Count:0 | yes Evaluation Count:6 |
| 0-75 |
28 | { | - |
29 | c1 = *str1++; | - |
30 | c2 = (pcre_uchar)*ustr2++; | - |
31 | if (c1 != c2) evaluated: c1 != c2 yes Evaluation Count:43 | yes Evaluation Count:32 |
| 32-43 |
32 | return ((c1 > c2) << 1) - 1; executed: return ((c1 > c2) << 1) - 1; Execution Count:43 | 43 |
33 | } executed: } Execution Count:32 | 32 |
34 | | - |
35 | return 0; executed: return 0; Execution Count:6 | 6 |
36 | } | - |
37 | int | - |
38 | _pcre16_strncmp_uc_uc(const pcre_uchar *str1, const pcre_uchar *str2, unsigned int num) | - |
39 | { | - |
40 | pcre_uchar c1; | - |
41 | pcre_uchar c2; | - |
42 | | - |
43 | while (num-- > 0) never evaluated: num-- > 0 | 0 |
44 | { | - |
45 | c1 = *str1++; | - |
46 | c2 = *str2++; | - |
47 | if (c1 != c2) never evaluated: c1 != c2 | 0 |
48 | return ((c1 > c2) << 1) - 1; never executed: return ((c1 > c2) << 1) - 1; | 0 |
49 | } | 0 |
50 | | - |
51 | return 0; never executed: return 0; | 0 |
52 | } | - |
53 | | - |
54 | int | - |
55 | _pcre16_strncmp_uc_c8(const pcre_uchar *str1, const char *str2, unsigned int num) | - |
56 | { | - |
57 | const pcre_uint8 *ustr2 = (pcre_uint8 *)str2; | - |
58 | pcre_uchar c1; | - |
59 | pcre_uchar c2; | - |
60 | | - |
61 | while (num-- > 0) evaluated: num-- > 0 yes Evaluation Count:220 | yes Evaluation Count:3 |
| 3-220 |
62 | { | - |
63 | c1 = *str1++; | - |
64 | c2 = (pcre_uchar)*ustr2++; | - |
65 | if (c1 != c2) evaluated: c1 != c2 yes Evaluation Count:195 | yes Evaluation Count:25 |
| 25-195 |
66 | return ((c1 > c2) << 1) - 1; executed: return ((c1 > c2) << 1) - 1; Execution Count:195 | 195 |
67 | } executed: } Execution Count:25 | 25 |
68 | | - |
69 | return 0; executed: return 0; Execution Count:3 | 3 |
70 | } | - |
71 | unsigned int | - |
72 | _pcre16_strlen_uc(const pcre_uchar *str) | - |
73 | { | - |
74 | unsigned int len = 0; | - |
75 | while (*str++ != 0) evaluated: *str++ != 0 yes Evaluation Count:11287 | yes Evaluation Count:368 |
| 368-11287 |
76 | len++; executed: len++; Execution Count:11287 | 11287 |
77 | return len; executed: return len; Execution Count:368 | 368 |
78 | } | - |
79 | | - |
| | |