| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstringbuilder.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | void QAbstractConcatenable::convertFromAscii(const char *a, int len, QChar *&out) noexcept | - | ||||||||||||||||||
| 4 | { | - | ||||||||||||||||||
| 5 | if (__builtin_expect(!!(
| 8-274 | ||||||||||||||||||
| 6 | if (!a)
| 4 | ||||||||||||||||||
return;
| ||||||||||||||||||||
while (*a && uchar(*a) < 0x80U)
| ||||||||||||||||||||
*out++ = QLatin1Char(*a++);
| ||||||||||||||||||||
if (!*
| ||||||||||||||||||||
| 7 | return executed 4 times by 2 tests: ;return;Executed by:
executed 4 times by 2 tests: return;Executed by:
| 4 | ||||||||||||||||||
| } else { executed 4 times by 2 tests: return;Executed by:
| ||||||||||||||||||||
| int i; executed 4 times by 2 tests: return;Executed by:
| ||||||||||||||||||||
| for (i = 0 executed 4 times by 2 tests: return;Executed by:
executed 4 times by 2 tests: ;return;Executed by:
executed 4 times by 2 tests: return;Executed by:
| ||||||||||||||||||||
| 8 | i <len && uchar(a[i]) < 0x80U; ++i) | - | ||||||||||||||||||
| *out++= QLatin1Charint(a[i]); | ||||||||||||||||||||
| ifstrlen(i == len) | ||||||||||||||||||||
| return;a+= i; | ||||||||||||||||||||
| len -= i;)); | ||||||||||||||||||||
| 9 | } executed 4 times by 1 test: end of blockExecuted by:
| 4 | ||||||||||||||||||
| 10 | QString tmpout = QStringQUtf8::fromUtf8convertToUnicode(out, a, len);memcpy(out, reinterpret_cast<const char *>(tmp.constData()), sizeof(QChar) * tmp.size()); | - | ||||||||||||||||||
| out += tmp.size(); | ||||||||||||||||||||
| 11 | } executed 278 times by 4 tests: end of blockExecuted by:
| 278 | ||||||||||||||||||
| 12 | - | |||||||||||||||||||
| 13 | - | |||||||||||||||||||
| Switch to Source code | Preprocessed file |