Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/wtf/ASCIICType.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | namespace WTF { | - |
2 | - | |
3 | template<typename CharType> inline bool isASCII(CharType c) | - |
4 | { | - |
5 | return executed 417 times by 3 tests: !(c & ~0x7F);return !(c & ~0x7F); Executed by:
executed 417 times by 3 tests: return !(c & ~0x7F); Executed by:
| 417 |
6 | } | - |
7 | - | |
8 | template<typename CharType> inline bool isASCIIAlpha(CharType c) | - |
9 | { | - |
10 | return executed 1238 times by 3 tests: (c | 0x20) >= 'a' && (c | 0x20) <= 'z';return (c | 0x20) >= 'a' && (c | 0x20) <= 'z'; Executed by:
executed 1238 times by 3 tests: return (c | 0x20) >= 'a' && (c | 0x20) <= 'z'; Executed by:
| 1238 |
11 | } | - |
12 | - | |
13 | template<typename CharType> inline bool isASCIIDigit(CharType c) | - |
14 | { | - |
15 | return executed 9690 times by 3 tests: c >= '0' && c <= '9';return c >= '0' && c <= '9'; Executed by:
executed 9690 times by 3 tests: return c >= '0' && c <= '9'; Executed by:
| 9690 |
16 | } | - |
17 | - | |
18 | template<typename CharType> inline bool isASCIIAlphanumeric(CharType c) | - |
19 | { | - |
20 | return executed 4 times by 1 test: isASCIIDigit(c) || isASCIIAlpha(c);return isASCIIDigit(c) || isASCIIAlpha(c); Executed by:
executed 4 times by 1 test: return isASCIIDigit(c) || isASCIIAlpha(c); Executed by:
| 4 |
21 | } | - |
22 | - | |
23 | template<typename CharType> inline bool isASCIIHexDigit(CharType c) | - |
24 | { | - |
25 | return executed 7372 times by 1 test: isASCIIDigit(c) || ((c | 0x20) >= 'a' && (c | 0x20) <= 'f');return isASCIIDigit(c) || ((c | 0x20) >= 'a' && (c | 0x20) <= 'f'); Executed by:
executed 7372 times by 1 test: return isASCIIDigit(c) || ((c | 0x20) >= 'a' && (c | 0x20) <= 'f'); Executed by:
| 7372 |
26 | } | - |
27 | - | |
28 | template<typename CharType> inline bool isASCIILower(CharType c) | - |
29 | { | - |
30 | return executed 24 times by 2 tests: c >= 'a' && c <= 'z';return c >= 'a' && c <= 'z'; Executed by:
executed 24 times by 2 tests: return c >= 'a' && c <= 'z'; Executed by:
| 24 |
31 | } | - |
32 | - | |
33 | template<typename CharType> inline bool isASCIIOctalDigit(CharType c) | - |
34 | { | - |
35 | return executed 88 times by 1 test: (c >= '0') & (c <= '7');return (c >= '0') & (c <= '7'); Executed by:
executed 88 times by 1 test: return (c >= '0') & (c <= '7'); Executed by:
| 88 |
36 | } | - |
37 | - | |
38 | template<typename CharType> inline bool isASCIIPrintable(CharType c) | - |
39 | { | - |
40 | return never executed: c >= ' ' && c <= '~';return c >= ' ' && c <= '~'; never executed: return c >= ' ' && c <= '~'; | 0 |
41 | } | - |
42 | template<typename CharType> inline bool isASCIISpace(CharType c) | - |
43 | { | - |
44 | return never executed: c <= ' ' && (c == ' ' || (c <= 0xD && c >= 0x9));return c <= ' ' && (c == ' ' || (c <= 0xD && c >= 0x9)); never executed: return c <= ' ' && (c == ' ' || (c <= 0xD && c >= 0x9)); | 0 |
45 | } | - |
46 | - | |
47 | template<typename CharType> inline bool isASCIIUpper(CharType c) | - |
48 | { | - |
49 | return executed 20 times by 2 tests: c >= 'A' && c <= 'Z';return c >= 'A' && c <= 'Z'; Executed by:
executed 20 times by 2 tests: return c >= 'A' && c <= 'Z'; Executed by:
| 20 |
50 | } | - |
51 | - | |
52 | template<typename CharType> inline CharType toASCIILower(CharType c) | - |
53 | { | - |
54 | return executed 4 times by 1 test: c | ((c >= 'A' && c <= 'Z') << 5);return c | ((c >= 'A' && c <= 'Z') << 5); Executed by:
executed 4 times by 1 test: return c | ((c >= 'A' && c <= 'Z') << 5); Executed by:
| 4 |
55 | } | - |
56 | - | |
57 | template<typename CharType> inline CharType toASCIILowerUnchecked(CharType character) | - |
58 | { | - |
59 | - | |
60 | - | |
61 | - | |
62 | - | |
63 | - | |
64 | return never executed: character | 0x20;return character | 0x20; never executed: return character | 0x20; | 0 |
65 | } | - |
66 | - | |
67 | template<typename CharType> inline CharType toASCIIUpper(CharType c) | - |
68 | { | - |
69 | return executed 4 times by 1 test: c & ~((c >= 'a' && c <= 'z') << 5);return c & ~((c >= 'a' && c <= 'z') << 5); Executed by:
executed 4 times by 1 test: return c & ~((c >= 'a' && c <= 'z') << 5); Executed by:
| 4 |
70 | } | - |
71 | - | |
72 | template<typename CharType> inline int toASCIIHexValue(CharType c) | - |
73 | { | - |
74 | (!(isASCIIHexDigit(c)) ? (qmlWTFReportAssertionFailure(__FILE__, 131, __PRETTY_FUNCTION__, "isASCIIHexDigit(c)"), (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap())) : (void)0); | - |
75 | return executed 3687 times by 1 test: c < 'A' ? c - '0' : (c - 'A' + 10) & 0xF;return c < 'A' ? c - '0' : (c - 'A' + 10) & 0xF; Executed by:
executed 3687 times by 1 test: return c < 'A' ? c - '0' : (c - 'A' + 10) & 0xF; Executed by:
| 3687 |
76 | } | - |
77 | - | |
78 | template<typename CharType> inline int toASCIIHexValue(CharType upperValue, CharType lowerValue) | - |
79 | { | - |
80 | (!(isASCIIHexDigit(upperValue) && isASCIIHexDigit(lowerValue)) ? (qmlWTFReportAssertionFailure(__FILE__, 137, __PRETTY_FUNCTION__, "isASCIIHexDigit(upperValue) && isASCIIHexDigit(lowerValue)"), (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap())) : (void)0); | - |
81 | return never executed: ((toASCIIHexValue(upperValue) << 4) & 0xF0) | toASCIIHexValue(lowerValue);return ((toASCIIHexValue(upperValue) << 4) & 0xF0) | toASCIIHexValue(lowerValue); never executed: return ((toASCIIHexValue(upperValue) << 4) & 0xF0) | toASCIIHexValue(lowerValue); | 0 |
82 | } | - |
83 | - | |
84 | inline char lowerNibbleToASCIIHexDigit(char c) | - |
85 | { | - |
86 | char nibble = c & 0xF; | - |
87 | return never executed: nibble < 10 ? '0' + nibble : 'A' + nibble - 10;return nibble < 10 ? '0' + nibble : 'A' + nibble - 10; never executed: return nibble < 10 ? '0' + nibble : 'A' + nibble - 10; | 0 |
88 | } | - |
89 | - | |
90 | inline char upperNibbleToASCIIHexDigit(char c) | - |
91 | { | - |
92 | char nibble = (c >> 4) & 0xF; | - |
93 | return never executed: nibble < 10 ? '0' + nibble : 'A' + nibble - 10;return nibble < 10 ? '0' + nibble : 'A' + nibble - 10; never executed: return nibble < 10 ? '0' + nibble : 'A' + nibble - 10; | 0 |
94 | } | - |
95 | - | |
96 | template<typename CharType> inline bool isASCIIAlphaCaselessEqual(CharType cssCharacter, char character) | - |
97 | { | - |
98 | - | |
99 | - | |
100 | (!(character >= 'a' && character <= 'z') ? (qmlWTFReportAssertionFailure(__FILE__, 157, __PRETTY_FUNCTION__, "character >= 'a' && character <= 'z'"), (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap())) : (void)0); | - |
101 | return never executed: __builtin_expect((toASCIILowerUnchecked(cssCharacter) == character), 1);return __builtin_expect((toASCIILowerUnchecked(cssCharacter) == character), 1); never executed: return __builtin_expect((toASCIILowerUnchecked(cssCharacter) == character), 1); | 0 |
102 | } | - |
103 | - | |
104 | } | - |
105 | - | |
106 | using WTF::isASCII; | - |
107 | using WTF::isASCIIAlpha; | - |
108 | using WTF::isASCIIAlphanumeric; | - |
109 | using WTF::isASCIIDigit; | - |
110 | using WTF::isASCIIHexDigit; | - |
111 | using WTF::isASCIILower; | - |
112 | using WTF::isASCIIOctalDigit; | - |
113 | using WTF::isASCIIPrintable; | - |
114 | using WTF::isASCIISpace; | - |
115 | using WTF::isASCIIUpper; | - |
116 | using WTF::toASCIIHexValue; | - |
117 | using WTF::toASCIILower; | - |
118 | using WTF::toASCIILowerUnchecked; | - |
119 | using WTF::toASCIIUpper; | - |
120 | using WTF::lowerNibbleToASCIIHexDigit; | - |
121 | using WTF::upperNibbleToASCIIHexDigit; | - |
122 | using WTF::isASCIIAlphaCaselessEqual; | - |
Switch to Source code | Preprocessed file |