![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "quuid.h"#include "quuid_p.h"#include "qcryptographichash.h"#include "qdatastream.h"#include "qdebug.h"#include "qendian.h"#include "qrandom.h"#include "private/qtools_p.h"Go to the source code of this file.
Enumerations | |
| enum | { MaxStringUuidLength = 38 , MaxStringUuidLength = 38 } |
| enum | { MaxStringUuidLength = 38 , MaxStringUuidLength = 38 } |
Functions | |
| template<class Integral> | |
| void | _q_toHex (char *&dstdst, Integral valuevalue) |
| template<class Integral> | |
| bool | _q_fromHex (const char *&srcsrc, Integral &valuevalue) |
| static char * | _q_uuidToHex (const QUuid &uuid, char *dstdst, QUuid::StringFormat modemode=QUuid::WithBraces) |
| static Q_NEVER_INLINE QUuid | _q_uuidFromHex (const char *srcsrc) |
| static QUuid | createFromName (QUuid ns, QByteArrayView baseData, QCryptographicHash::Algorithm algorithm, int version) noexcept |
| static QUuid | uuidFromString (QStringView text) noexcept |
| static QUuid | uuidFromString (QLatin1StringView text) noexcept |
| static Q_ALWAYS_INLINE QUuid | uuidFromString (QUtf8StringView text) noexcept |
| size_t | qHash (const QUuid &uuid, size_t seed) noexcept |
Variables | |
| QT_BEGIN_NAMESPACE | |
| anonymous enum |
| anonymous enum |
| bool _q_fromHex | ( | const char *& | src, |
| Integral & | value ) |
| void _q_toHex | ( | char *& | dst, |
| Integral | value ) |
|
static |
Parses the string representation of a UUID (with optional surrounding "{}") by reading at most MaxStringUuidLength (38) characters from src, which may be \nullptr. Stops at the first invalid character (which includes a premature NUL).
Returns the successfully parsed QUuid, or a null QUuid in case of failure.
|
static |
|
staticnoexcept |
|
noexcept |
|
staticnoexcept |
Definition at line 515 of file quuid.cpp.
References MaxStringUuidLength.
|
staticnoexcept |
Definition at line 499 of file quuid.cpp.
References MaxStringUuidLength.
|
staticnoexcept |