OpenCoverage

MatchResult.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/runtime/MatchResult.h
Switch to Source codePreprocessed file
LineSourceCount
1typedef uint64_t EncodedMatchResult;-
2-
3struct MatchResult {-
4 inline MatchResult(size_t start, size_t end)-
5 : start(start)-
6 , end(end)-
7 {-
8 }
never executed: end of block
0
9-
10 explicit inline MatchResult(EncodedMatchResult encoded)-
11 {-
12 union u {-
13 uint64_t encoded;-
14 struct s {-
15 size_t start;-
16 size_t end;-
17 } split;-
18 } value;-
19 value.encoded = encoded;-
20 start = value.split.start;-
21 end = value.split.end;-
22 }
never executed: end of block
0
23-
24 inline static MatchResult failed()-
25 {-
26 return
never executed: return MatchResult(WTF::notFound, 0);
MatchResult(WTF::notFound, 0);
never executed: return MatchResult(WTF::notFound, 0);
0
27 }-
28-
29 inline operator bool()-
30 {-
31 return
never executed: return start != WTF::notFound;
start != WTF::notFound;
never executed: return start != WTF::notFound;
0
32 }-
33-
34 inline bool empty()-
35 {-
36 return
never executed: return start == end;
start == end;
never executed: return start == end;
0
37 }-
38-
39 size_t start;-
40 size_t end;-
41};-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0