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

Function Tree

Path:<top>::QDateTimeParser
FunctionCondition %▴eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
stateName
Name: QDateTimeParser::stateName
Prototype: QString QDateTimeParser::stateName(State s) const
Coverage:  0.000% (0/8)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1674-1682
  0.000% (0/8)
55
SectionNode
Name: QDateTimeParser::SectionNode
Coverage:  19.512% (16/82)
 19.512% (16/82)
4845
findDay
Name: QDateTimeParser::findDay
Prototype: int QDateTimeParser::findDay(const QString &str1, int startDay, int sectionIndex, QString *usedDay, int *used) const
Coverage:  40.000% (20/50)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1310-1365
 40.000% (20/50)
3816
sectionText
Name: QDateTimeParser::sectionText
Prototype: QString QDateTimeParser::sectionText(const QString &text, int sectionIndex, int index) const
Coverage:  42.857% (3/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 667-679
 42.857% (3/7)
55
findAmPm
Name: QDateTimeParser::findAmPm
Prototype: QDateTimeParser::AmPmFinder QDateTimeParser::findAmPm(QString &str, int sectionIndex, int *used) const
Coverage:  51.667% (31/60)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1379-1454
 51.667% (31/60)
4518
sectionPos
Name: QDateTimeParser::sectionPos
Prototype: int QDateTimeParser::sectionPos(const SectionNode &sn) const
Coverage:  60.000% (6/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 293-305
 60.000% (6/10)
85
sectionMaxSize
Name: QDateTimeParser::sectionMaxSize
Prototype: int QDateTimeParser::sectionMaxSize(Section s, int count) const
Coverage:  60.417% (29/48)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 575-650
 60.417% (29/48)
2830
fieldInfo
Name: QDateTimeParser::fieldInfo
Prototype: QDateTimeParser::FieldInfo QDateTimeParser::fieldInfo(int index) const
Coverage:  69.697% (23/33)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1485-1532
 69.697% (23/33)
2419
sectionSize
Name: QDateTimeParser::sectionSize
Prototype: int QDateTimeParser::sectionSize(int sectionIndex) const
Coverage:  71.429% (15/21)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 538-572
 71.429% (15/21)
197
getDigit
Name: QDateTimeParser::getDigit
Prototype: int QDateTimeParser::getDigit(const QDateTime &t, int index) const
Coverage:  72.414% (21/29)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 72-107
 72.414% (21/29)
1915
parse
Name: QDateTimeParser::parse
Prototype: QDateTimeParser::StateNode QDateTimeParser::parse(QString &input, int &cursorPosition, const QDateTime &currentValue, bool fixup) const
Coverage:  76.190% (208/273)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 881-1236
 76.190% (208/273)
23086
sectionNode
Name: QDateTimeParser::sectionNode
Prototype: const QDateTimeParser::SectionNode &QDateTimeParser::sectionNode(int sectionIndex) const
Coverage:  76.923% (10/13)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 256-274
 76.923% (10/13)
106
fromString
Name: QDateTimeParser::fromString
Prototype: bool QDateTimeParser::fromString(const QString &t, QDate *date, QTime *time) const
Coverage:  77.778% (14/18)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1685-1710
 77.778% (14/18)
176
setDigit
Name: QDateTimeParser::setDigit
Prototype: bool QDateTimeParser::setDigit(QDateTime &v, int index, int newVal) const
Coverage:  82.979% (39/47)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 121-183
 82.979% (39/47)
3920
absoluteMin
Name: QDateTimeParser::absoluteMin
Prototype: int QDateTimeParser::absoluteMin(int s) const
Coverage:  83.333% (15/18)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 227-248
 83.333% (15/18)
914
findMonth
Name: QDateTimeParser::findMonth
Prototype: int QDateTimeParser::findMonth(const QString &str1, int startMonth, int sectionIndex, QString *usedMonth, int *used) const
Coverage:  86.000% (43/50)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1246-1308
 86.000% (43/50)
4016
absoluteMax
Name: QDateTimeParser::absoluteMax
Prototype: int QDateTimeParser::absoluteMax(int s, const QDateTime &cur) const
Coverage:  86.364% (19/22)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 193-219
 86.364% (19/22)
1314
parseSection
Name: QDateTimeParser::parseSection
Prototype: int QDateTimeParser::parseSection(const QDateTime &currentValue, int sectionIndex, QString &text, int &cursorPosition, int index, State &state, int *usedptr) const
Coverage:  87.719% (100/114)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 697-873
 87.719% (100/114)
10745
parseFormat
Name: QDateTimeParser::parseFormat
Prototype: bool QDateTimeParser::parseFormat(const QString &newFormat)
Coverage:  92.000% (92/100)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 365-530
 92.000% (92/100)
11633
potentialValue
Name: QDateTimeParser::potentialValue
Prototype: bool QDateTimeParser::potentialValue(const QStringRef &str, int min, int max, int index, const QDateTime &currentValue, int insert) const
Coverage:  97.297% (36/37)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1570-1605
 97.297% (36/37)
2411
getAmPmText
Name: QDateTimeParser::getAmPmText
Prototype: QString QDateTimeParser::getAmPmText(AmPm ap, Case cs) const
Coverage: 100.000% (3/3)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1723-1728
100.000% (3/3)
31
getMaximum
Name: QDateTimeParser::getMaximum
Prototype: QDateTime QDateTimeParser::getMaximum() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1718-1721
100.000% (1/1)
11
getMinimum
Name: QDateTimeParser::getMinimum
Prototype: QDateTime QDateTimeParser::getMinimum() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1713-1716
100.000% (1/1)
11
sectionMaxSize
Name: QDateTimeParser::sectionMaxSize
Prototype: int QDateTimeParser::sectionMaxSize(int index) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 653-657
100.000% (1/1)
21
sectionPos
Name: QDateTimeParser::sectionPos
Prototype: int QDateTimeParser::sectionPos(int sectionIndex) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 288-291
100.000% (1/1)
11
sectionText
Name: QDateTimeParser::sectionText
Prototype: QString QDateTimeParser::sectionText(int sectionIndex) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 681-685
100.000% (1/1)
21
sectionType
Name: QDateTimeParser::sectionType
Prototype: QDateTimeParser::Section QDateTimeParser::sectionType(int sectionIndex) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 276-279
100.000% (1/1)
11
skipToNextSection
Name: QDateTimeParser::skipToNextSection
Prototype: bool QDateTimeParser::skipToNextSection(int index, const QDateTime &current, const QStringRef &text) const
Coverage: 100.000% (12/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetimeparser.cpp
Lines: 1607-1640
100.000% (12/12)
194

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