Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qbytearraylist.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | static int QByteArrayList_joinedSize(const QByteArrayList *that, int seplen) | - | ||||||||||||
4 | { | - | ||||||||||||
5 | int totalLength = 0; | - | ||||||||||||
6 | const int size = that->size(); | - | ||||||||||||
7 | - | |||||||||||||
8 | for (int i = 0; i < size
| 3979-3989 | ||||||||||||
9 | totalLength += that->at(i).size(); executed 3989 times by 14 tests: totalLength += that->at(i).size(); Executed by:
| 3989 | ||||||||||||
10 | - | |||||||||||||
11 | if (size > 0
| 5-3974 | ||||||||||||
12 | totalLength += seplen * (size - 1); executed 3974 times by 14 tests: totalLength += seplen * (size - 1); Executed by:
| 3974 | ||||||||||||
13 | - | |||||||||||||
14 | return executed 3979 times by 14 tests: totalLength;return totalLength; Executed by:
executed 3979 times by 14 tests: return totalLength; Executed by:
| 3979 | ||||||||||||
15 | } | - | ||||||||||||
16 | - | |||||||||||||
17 | QByteArray QtPrivate::QByteArrayList_join(const QByteArrayList *that, const char *sep, int seplen) | - | ||||||||||||
18 | { | - | ||||||||||||
19 | QByteArray res; | - | ||||||||||||
20 | if (const
| 7-3972 | ||||||||||||
21 | res.reserve(joinedSize); executed 3972 times by 14 tests: res.reserve(joinedSize); Executed by:
| 3972 | ||||||||||||
22 | const int size = that->size(); | - | ||||||||||||
23 | for (int i = 0; i < size
| 3979-3989 | ||||||||||||
24 | if (i
| 15-3974 | ||||||||||||
25 | res.append(sep, seplen); executed 15 times by 2 tests: res.append(sep, seplen); Executed by:
| 15 | ||||||||||||
26 | res += that->at(i); | - | ||||||||||||
27 | } executed 3989 times by 14 tests: end of block Executed by:
| 3989 | ||||||||||||
28 | return executed 3979 times by 14 tests: res;return res; Executed by:
executed 3979 times by 14 tests: return res; Executed by:
| 3979 | ||||||||||||
29 | } | - | ||||||||||||
30 | - | |||||||||||||
31 | - | |||||||||||||
Switch to Source code | Preprocessed file |