OpenCoverage

ASCIICType.h

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

Generated by Squish Coco 4.2.0