Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qversionnumber.cpp File Reference
#include <QtCore/qversionnumber.h>
#include <QtCore/qhash.h>
#include <QtCore/private/qlocale_tools_p.h>
#include <QtCore/qcollator.h>
#include <QtCore/qdatastream.h>
#include <QtCore/qdebug.h>
#include <algorithm>
#include <limits>
+ Include dependency graph for qversionnumber.cpp:

Go to the source code of this file.

Functions

static QVersionNumber from_string (QLatin1StringView string, qsizetype *suffixIndex)
 
static QVersionNumber from_string (q_no_char8_t::QUtf8StringView string, qsizetype *suffixIndex)
 
void qt_to_latin1 (uchar *dst, const char16_t *uc, qsizetype len)
 
static QVersionNumber from_string (QStringView string, qsizetype *suffixIndex)
 
QDataStreamoperator<< (QDataStream &out, const QVersionNumber &version)
 
QDataStreamoperator>> (QDataStream &in, QVersionNumber &version)
 
QDebug operator<< (QDebug debug, const QVersionNumber &version)
 
QDataStreamoperator<< (QDataStream &out, const QTypeRevision &revision)
 
QDataStreamoperator>> (QDataStream &in, QTypeRevision &revision)
 
QDebug operator<< (QDebug debug, const QTypeRevision &revision)
 

Function Documentation

◆ from_string() [1/3]

static QVersionNumber from_string ( q_no_char8_t::QUtf8StringView  string,
qsizetype suffixIndex 
)
static

Definition at line 426 of file qversionnumber.cpp.

References from_string().

+ Here is the call graph for this function:

◆ from_string() [2/3]

static QVersionNumber from_string ( QLatin1StringView  string,
qsizetype suffixIndex 
)
static

Definition at line 396 of file qversionnumber.cpp.

References QVarLengthArray< T, Prealloc >::append(), QVarLengthArray< T, Prealloc >::begin(), and qstrntoull().

Referenced by from_string(), from_string(), and QVersionNumber::fromString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ from_string() [3/3]

static QVersionNumber from_string ( QStringView  string,
qsizetype suffixIndex 
)
static

Definition at line 434 of file qversionnumber.cpp.

References copy(), from_string(), and qt_to_latin1().

+ Here is the call graph for this function:

◆ operator<<() [1/4]

QDataStream & operator<< ( QDataStream out,
const QTypeRevision revision 
)
related

Definition at line 683 of file qversionnumber.cpp.

◆ operator<<() [2/4]

QDataStream & operator<< ( QDataStream out,
const QVersionNumber version 
)
related

Definition at line 493 of file qversionnumber.cpp.

◆ operator<<() [3/4]

QDebug operator<< ( QDebug  debug,
const QTypeRevision revision 
)

Definition at line 705 of file qversionnumber.cpp.

References debug, QTypeRevision::hasMajorVersion(), QTypeRevision::hasMinorVersion(), QTypeRevision::majorVersion(), and QTypeRevision::minorVersion().

+ Here is the call graph for this function:

◆ operator<<() [4/4]

QDebug operator<< ( QDebug  debug,
const QVersionNumber version 
)

Definition at line 517 of file qversionnumber.cpp.

References debug, and QVersionNumber::toString().

+ Here is the call graph for this function:

◆ operator>>() [1/2]

QDataStream & operator>> ( QDataStream in,
QTypeRevision revision 
)
related

Definition at line 695 of file qversionnumber.cpp.

◆ operator>>() [2/2]

QDataStream & operator>> ( QDataStream in,
QVersionNumber version 
)
related

Definition at line 507 of file qversionnumber.cpp.

◆ qt_to_latin1()

void qt_to_latin1 ( uchar dst,
const char16_t *  uc,
qsizetype  len 
)

Definition at line 1193 of file qstring.cpp.

Referenced by QLatin1::convertFromUnicode(), from_string(), qt_convert_to_latin1(), QStringView::toDouble(), and toIntegral().

+ Here is the caller graph for this function: