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) | - | ||||||||||||||||||
4 | { | - | ||||||||||||||||||
5 | if (len == -1
| 8-274 | ||||||||||||||||||
6 | if (!a
| 4 | ||||||||||||||||||
7 | return; executed 4 times by 2 tests: return; Executed by:
| 4 | ||||||||||||||||||
8 | while (*
| 1-4 | ||||||||||||||||||
9 | * executed 3 times by 1 test: out++ = QLatin1Char(*a++);*out++ = QLatin1Char(*a++); Executed by:
executed 3 times by 1 test: *out++ = QLatin1Char(*a++); Executed by:
| 3 | ||||||||||||||||||
10 | if (!*a
| 1-3 | ||||||||||||||||||
11 | return; executed 3 times by 1 test: return; Executed by:
| 3 | ||||||||||||||||||
12 | } executed 1 time by 1 test: else {end of block Executed by:
| 1 | ||||||||||||||||||
13 | int i; | - | ||||||||||||||||||
14 | for (i = 0; i < len
| 16-1388 | ||||||||||||||||||
15 | * executed 1372 times by 4 tests: out++ = QLatin1Char(a[i]);*out++ = QLatin1Char(a[i]); Executed by:
executed 1372 times by 4 tests: *out++ = QLatin1Char(a[i]); Executed by:
| 1372 | ||||||||||||||||||
16 | if (i == len
| 16-258 | ||||||||||||||||||
17 | return; executed 258 times by 4 tests: return; Executed by:
| 258 | ||||||||||||||||||
18 | a += i; | - | ||||||||||||||||||
19 | len -= i; | - | ||||||||||||||||||
20 | } executed 16 times by 3 tests: end of block Executed by:
| 16 | ||||||||||||||||||
21 | - | |||||||||||||||||||
22 | - | |||||||||||||||||||
23 | QString tmp = QString::fromUtf8(a, len); | - | ||||||||||||||||||
24 | memcpy(out, reinterpret_cast<const char *>(tmp.constData()), sizeof(QChar) * tmp.size()); | - | ||||||||||||||||||
25 | out += tmp.size(); | - | ||||||||||||||||||
26 | } executed 17 times by 3 tests: end of block Executed by:
| 17 | ||||||||||||||||||
27 | - | |||||||||||||||||||
28 | - | |||||||||||||||||||
Switch to Source code | Preprocessed file |