QtBase - 2016-12-13 07:58:44 +0000

Function Tree

Page:<>1
eLOC - Effective Lines of Code: 1
2
Path:<top>::QString
FunctionCondition %eLOC - Effective Lines of Codeā–“McCabe - Cyclomatic Complexity
toLatin1_helper
Name: QString::toLatin1_helper
Prototype: QByteArray QString::toLatin1_helper(const QChar *data, int length)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4541-4550
100.000% (1/1)
41
toLocal8Bit_helper
Name: QString::toLocal8Bit_helper
Prototype: QByteArray QString::toLocal8Bit_helper(const QChar *data, int size)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4625-4633
100.000% (4/4)
42
QString
Name: QString::QString
Prototype: QString::QString(QChar ch)
Coverage:  50.000% (2/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1580-1587
 50.000% (2/4)
52
append
Name: QString::append
Prototype: QString &QString::append(QChar ch)
Coverage: 100.000% (6/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2149-2156
100.000% (6/6)
52
asprintf
Name: QString::asprintf
Prototype: QString QString::asprintf(const char *cformat, ...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5964-5971
100.000% (1/1)
51
compare_helper
Name: QString::compare_helper
Prototype: int QString::compare_helper(const QChar *data1, int length1, const QChar *data2, int length2, Qt::CaseSensitivity cs) noexcept
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5450-5458
100.000% (4/4)
52
localeAwareCompare_helper
Name: QString::localeAwareCompare_helper
Prototype: int QString::localeAwareCompare_helper(const QChar *data1, int length1, const QChar *data2, int length2)
Coverage:  88.889% (8/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5598-5649
 88.889% (8/9)
53
operator=
Name: QString::operator=
Prototype: QString &QString::operator=(const QString &other) noexcept
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1810-1817
100.000% (4/4)
52
operator==
Name: QString::operator==
Prototype: bool QString::operator==(QLatin1String other) const noexcept
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2755-2764
100.000% (7/7)
53
remove
Name: QString::remove
Prototype: QString &QString::remove(const QString &str, Qt::CaseSensitivity cs)
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2268-2276
100.000% (7/7)
53
resize
Name: QString::resize
Prototype: void QString::resize(int size, QChar fillChar)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1701-1708
100.000% (4/4)
52
sprintf
Name: QString::sprintf
Prototype: QString &QString::sprintf(const char *cformat, ...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5920-5927
100.000% (1/1)
51
toUcs4
Name: QString::toUcs4
Prototype: QVector<uint> QString::toUcs4() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4669-4676
100.000% (1/1)
51
toUcs4_helper
Name: QString::toUcs4_helper
Prototype: int QString::toUcs4_helper(const ushort *uc, int length, uint *out)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1454-1463
100.000% (4/4)
52
arg
Name: QString::arg
Prototype: QString QString::arg(const QString &a, int fieldWidth, QChar fillChar) const
Coverage:  50.000% (2/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 7426-7436
 50.000% (2/4)
62
operator=
Name: QString::operator=
Prototype: QString &QString::operator=(QLatin1String other)
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1833-1843
100.000% (7/7)
62
append
Name: QString::append
Prototype: QString &QString::append(const QStringRef &str)
Coverage:  71.429% (5/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 9498-9508
 71.429% (5/7)
73
append
Name: QString::append
Prototype: QString &QString::append(const QChar *str, int len)
Coverage: 100.000% (11/11)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2086-2096
100.000% (11/11)
73
fill
Name: QString::fill
Prototype: QString& QString::fill(QChar ch, int size)
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5099-5109
100.000% (7/7)
73
fromUcs4
Name: QString::fromUcs4
Prototype: QString QString::fromUcs4(const uint *unicode, int size)
Coverage: 100.000% (10/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4896-4906
100.000% (10/10)
74
fromUtf16
Name: QString::fromUtf16
Prototype: QString QString::fromUtf16(const ushort *unicode, int size)
Coverage:  80.000% (8/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4839-4849
 80.000% (8/10)
74
operator=
Name: QString::operator=
Prototype: QString &QString::operator=(QChar ch)
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1892-1904
100.000% (7/7)
72
replace
Name: QString::replace
Prototype: QString &QString::replace(int pos, int len, const QChar *unicode, int size)
Coverage:  71.429% (5/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2365-2375
 71.429% (5/7)
73
replace
Name: QString::replace
Prototype: QString &QString::replace(QLatin1String before, QLatin1String after, Qt::CaseSensitivity cs)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2660-2669
100.000% (1/1)
71
compare_helper
Name: QString::compare_helper
Prototype: int QString::compare_helper(const QChar *data1, int length1, QLatin1String s2, Qt::CaseSensitivity cs) noexcept
Coverage:  71.429% (5/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5501-5516
 71.429% (5/7)
83
contains
Name: QString::contains
Prototype: bool QString::contains(const QRegularExpression &re, QRegularExpressionMatch *match) const
Coverage: 100.000% (9/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4023-4034
100.000% (9/9)
83
isSimpleText
Name: QString::isSimpleText
Prototype: bool QString::isSimpleText() const
Coverage:  0.000% (0/11)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 8055-8069
  0.000% (0/11)
83
midRef
Name: QString::midRef
Prototype: QStringRef QString::midRef(int position, int n) const
Coverage:  88.889% (8/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 9642-9657
 88.889% (8/9)
85
setRawData
Name: QString::setRawData
Prototype: QString &QString::setRawData(const QChar *unicode, int size)
Coverage:  80.000% (8/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 8236-8250
 80.000% (8/10)
83
append
Name: QString::append
Prototype: QString &QString::append(const QString &str)
Coverage: 100.000% (12/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2064-2078
100.000% (12/12)
94
fromRawData
Name: QString::fromRawData
Prototype: QString QString::fromRawData(const QChar *unicode, int size)
Coverage:  81.818% (9/11)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 8207-8220
 81.818% (9/11)
94
mid
Name: QString::mid
Prototype: QString QString::mid(int position, int n) const
Coverage:  88.889% (8/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4400-4418
 88.889% (8/9)
95
append
Name: QString::append
Prototype: QString &QString::append(QLatin1String str)
Coverage: 100.000% (9/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2103-2116
100.000% (9/9)
103
count
Name: QString::count
Prototype: int QString::count(const QRegExp& rx) const
Coverage:  85.714% (6/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3871-3884
 85.714% (6/7)
103
indexOf
Name: QString::indexOf
Prototype: int QString::indexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const
Coverage: 100.000% (10/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3922-3938
100.000% (10/10)
104
insert
Name: QString::insert
Prototype: QString& QString::insert(int i, QChar ch)
Coverage:  63.636% (7/11)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2031-2044
 63.636% (7/11)
104
insert
Name: QString::insert
Prototype: QString &QString::insert(int i, QLatin1String str)
Coverage:  75.000% (9/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1974-1989
 75.000% (9/12)
103
resize
Name: QString::resize
Prototype: void QString::resize(int size)
Coverage:  89.474% (17/19)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1673-1689
 89.474% (17/19)
105
QString
Name: QString::QString
Prototype: QString::QString(int size, QChar ch)
Coverage:  80.000% (8/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1539-1554
 80.000% (8/10)
114
fromLocal8Bit_helper
Name: QString::fromLocal8Bit_helper
Prototype: QString QString::fromLocal8Bit_helper(const char *str, int size)
Coverage:  82.353% (14/17)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4743-4759
 82.353% (14/17)
115
remove
Name: QString::remove
Prototype: QString &QString::remove(int pos, int len)
Coverage:  69.231% (9/13)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2240-2255
 69.231% (9/13)
115
toLatin1_helper_inplace
Name: QString::toLatin1_helper_inplace
Prototype: QByteArray QString::toLatin1_helper_inplace(QString &s)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4552-4579
100.000% (4/4)
122
QString
Name: QString::QString
Prototype: QString::QString(const QChar *unicode, int size)
Coverage:  87.500% (14/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1511-1531
 87.500% (14/16)
136
count
Name: QString::count
Prototype: int QString::count(const QRegularExpression &re) const
Coverage:  90.000% (9/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4048-4065
 90.000% (9/10)
134
remove
Name: QString::remove
Prototype: QString &QString::remove(QChar ch, Qt::CaseSensitivity cs)
Coverage: 100.000% (17/17)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2293-2312
100.000% (17/17)
136
fromLatin1_helper
Name: QString::fromLatin1_helper
Prototype: QString::Data *QString::fromLatin1_helper(const char *str, int size)
Coverage:  72.222% (13/18)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4678-4697
 72.222% (13/18)
145
lastIndexOf
Name: QString::lastIndexOf
Prototype: int QString::lastIndexOf(const QString &str, int from, Qt::CaseSensitivity cs) const
Coverage: 100.000% (20/20)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3265-3283
100.000% (20/20)
146
leftJustified
Name: QString::leftJustified
Prototype: QString QString::leftJustified(int width, QChar fill, bool truncate) const
Coverage: 100.000% (14/14)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5699-5718
100.000% (14/14)
145
number
Name: QString::number
Prototype: QString QString::number(double n, char f, int prec)
Coverage:  66.667% (8/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 6789-6816
 66.667% (8/12)
146
rightJustified
Name: QString::rightJustified
Prototype: QString QString::rightJustified(int width, QChar fill, bool truncate) const
Coverage: 100.000% (14/14)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 5738-5757
100.000% (14/14)
145
isRightToLeft
Name: QString::isRightToLeft
Prototype: bool QString::isRightToLeft() const
Coverage:  89.474% (17/19)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 8075-8101
 89.474% (17/19)
158
lastIndexOf
Name: QString::lastIndexOf
Prototype: int QString::lastIndexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const
Coverage: 100.000% (20/20)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3353-3372
100.000% (20/20)
156
lastIndexOf
Name: QString::lastIndexOf
Prototype: int QString::lastIndexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const
Coverage: 100.000% (15/15)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3973-3996
100.000% (15/15)
155
multiArg
Name: QString::multiArg
Prototype: QString QString::multiArg(int numArgs, const QString **args) const
Coverage:  84.615% (11/13)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 7986-8015
 84.615% (11/13)
155
replace
Name: QString::replace
Prototype: QString& QString::replace(QChar before, QChar after, Qt::CaseSensitivity cs)
Coverage: 100.000% (17/17)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2626-2646
100.000% (17/17)
157
section
Name: QString::section
Prototype: QString QString::section(const QRegExp &reg, int start, int end, SectionFlags flags) const
Coverage:  71.429% (5/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4275-4296
 71.429% (5/7)
153
toHtmlEscaped
Name: QString::toHtmlEscaped
Prototype: QString QString::toHtmlEscaped() const
Coverage: 100.000% (16/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 10667-10686
100.000% (16/16)
156
insert
Name: QString::insert
Prototype: QString& QString::insert(int i, const QChar *unicode, int size)
Coverage:  83.333% (15/18)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1998-2022
 83.333% (15/18)
165
lastIndexOf
Name: QString::lastIndexOf
Prototype: int QString::lastIndexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const
Coverage:  40.000% (8/20)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3304-3325
 40.000% (8/20)
166
arg
Name: QString::arg
Prototype: QString QString::arg(qulonglong a, int fieldWidth, int base, QChar fillChar) const
Coverage:  50.000% (8/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 7674-7700
 50.000% (8/16)
176
arg
Name: QString::arg
Prototype: QString QString::arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const
Coverage: 100.000% (16/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 7630-7656
100.000% (16/16)
176
section
Name: QString::section
Prototype: QString QString::section(const QRegularExpression &re, int start, int end, SectionFlags flags) const
Coverage:  69.231% (9/13)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4315-4343
 69.231% (9/13)
205
reallocData
Name: QString::reallocData
Prototype: void QString::reallocData(uint alloc, bool grow)
Coverage:  78.947% (15/19)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 1760-1788
 78.947% (15/19)
216
repeated
Name: QString::repeated
Prototype: QString QString::repeated(int times) const
Coverage:  87.500% (14/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 7119-7152
 87.500% (14/16)
236
replace
Name: QString::replace
Prototype: QString& QString::replace(QChar ch, const QString &after, Qt::CaseSensitivity cs)
Coverage:  84.615% (33/39)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2575-2616
 84.615% (33/39)
2612
arg
Name: QString::arg
Prototype: QString QString::arg(double a, int fieldWidth, char fmt, int prec, QChar fillChar) const
Coverage:  63.333% (19/30)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 7786-7837
 63.333% (19/30)
3112
replace
Name: QString::replace
Prototype: QString &QString::replace(const QChar *before, int blen, const QChar *after, int alen, Qt::CaseSensitivity cs)
Coverage:  89.796% (44/49)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2506-2565
 89.796% (44/49)
3514
section
Name: QString::section
Prototype: QString QString::section(const QString &sep, int start, int end, SectionFlags flags) const
Coverage:  98.333% (59/60)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 4141-4187
 98.333% (59/60)
3817
replace_helper
Name: QString::replace_helper
Prototype: void QString::replace_helper(uint *indices, int nIndices, int blen, const QChar *after, int alen)
Coverage:  96.970% (32/33)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 2432-2493
 96.970% (32/33)
4312
replace
Name: QString::replace
Prototype: QString &QString::replace(const QRegularExpression &re, const QString &after)
Coverage: 100.000% (46/46)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3562-3670
100.000% (46/46)
6316
replace
Name: QString::replace
Prototype: QString& QString::replace(const QRegExp &rx, const QString &after)
Coverage:  92.000% (69/75)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 3404-3539
 92.000% (69/75)
8723
vasprintf
Name: QString::vasprintf
Prototype: QString QString::vasprintf(const char *cformat, va_list ap)
Coverage:  59.412% (101/170)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Lines: 6063-6303
 59.412% (101/170)
15076
Page:<>1
eLOC - Effective Lines of Code: 1
2

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9