| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/runtime/MatchResult.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | typedef uint64_t EncodedMatchResult; | - |
| 2 | - | |
| 3 | struct 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: MatchResult(WTF::notFound, 0);return MatchResult(WTF::notFound, 0);never executed: return MatchResult(WTF::notFound, 0); | 0 |
| 27 | } | - |
| 28 | - | |
| 29 | inline operator bool() | - |
| 30 | { | - |
| 31 | return never executed: start != WTF::notFound;return start != WTF::notFound;never executed: return start != WTF::notFound; | 0 |
| 32 | } | - |
| 33 | - | |
| 34 | inline bool empty() | - |
| 35 | { | - |
| 36 | return never executed: start == end;return start == end;never executed: return start == end; | 0 |
| 37 | } | - |
| 38 | - | |
| 39 | size_t start; | - |
| 40 | size_t end; | - |
| 41 | }; | - |
| Switch to Source code | Preprocessed file |