Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtMiscUtils Namespace Reference

Functions

constexpr char toHexUpper (char32_t value) noexcept
 
constexpr char toHexLower (char32_t value) noexcept
 
constexpr bool isHexDigit (char32_t c) noexcept
 
constexpr int fromHex (char32_t c) noexcept
 
constexpr char toOct (char32_t value) noexcept
 
constexpr bool isOctalDigit (char32_t c) noexcept
 
constexpr int fromOct (char32_t c) noexcept
 
constexpr bool isAsciiDigit (char32_t c) noexcept
 
constexpr bool isAsciiUpper (char32_t c) noexcept
 
constexpr bool isAsciiLower (char32_t c) noexcept
 
constexpr bool isAsciiLetterOrNumber (char32_t c) noexcept
 
constexpr char toAsciiLower (char ch) noexcept
 
constexpr char toAsciiUpper (char ch) noexcept
 
constexpr int caseCompareAscii (char lhs, char rhs) noexcept
 
constexpr int isAsciiPrintable (char32_t ch) noexcept
 
constexpr int qt_lencmp (qsizetype lhs, qsizetype rhs) noexcept
 

Function Documentation

◆ caseCompareAscii()

constexpr int QtMiscUtils::caseCompareAscii ( char lhs,
char rhs )
inlineconstexprnoexcept

Definition at line 97 of file qtools_p.h.

References toAsciiLower().

Referenced by QByteArray::qstricmp(), QByteArray::qstrnicmp(), and qstrnicmp().

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

◆ fromHex()

constexpr int QtMiscUtils::fromHex ( char32_t c)
inlineconstexprnoexcept

Definition at line 44 of file qtools_p.h.

Referenced by _q_fromHex(), addHexDigit(), QByteArray::fromHex(), QTextStreamPrivate::getNumber(), hex2byte(), hex2int(), QSettingsPrivate::iniUnescapedStringList(), makePattern(), and putEscapedString().

+ Here is the caller graph for this function:

◆ fromOct()

constexpr int QtMiscUtils::fromOct ( char32_t c)
inlineconstexprnoexcept

Definition at line 62 of file qtools_p.h.

References isOctalDigit().

Referenced by QSettingsPrivate::iniUnescapedStringList().

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

◆ isAsciiDigit()

constexpr bool QtMiscUtils::isAsciiDigit ( char32_t c)
inlineconstexprnoexcept

◆ isAsciiLetterOrNumber()

constexpr bool QtMiscUtils::isAsciiLetterOrNumber ( char32_t c)
inlineconstexprnoexcept

Definition at line 82 of file qtools_p.h.

References isAsciiDigit(), isAsciiLower(), and isAsciiUpper().

Referenced by fbname(), QSettingsPrivate::iniEscapedKey(), is_ident_char(), is_ident_char(), QXmlUtils::isEncName(), QXmlUtils::isPublicID(), isValidCharacter(), isValidCharacterNoDash(), parseIpFuture(), read_xbm_header(), and validTag().

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

◆ isAsciiLower()

constexpr bool QtMiscUtils::isAsciiLower ( char32_t c)
inlineconstexprnoexcept

Definition at line 77 of file qtools_p.h.

Referenced by isAsciiLetterOrNumber(), QXmlUtils::isEncName(), QTimeZonePrivate::isValidId(), QUrlPrivate::setScheme(), and toAsciiUpper().

+ Here is the caller graph for this function:

◆ isAsciiPrintable()

constexpr int QtMiscUtils::isAsciiPrintable ( char32_t ch)
inlineconstexprnoexcept

Definition at line 104 of file qtools_p.h.

References ch.

Referenced by debugBinaryString(), isPrintable(), QIODevice::read(), QtDebugUtils::toPrintable(), and QIODevice::ungetChar().

+ Here is the caller graph for this function:

◆ isAsciiUpper()

constexpr bool QtMiscUtils::isAsciiUpper ( char32_t c)
inlineconstexprnoexcept

Definition at line 72 of file qtools_p.h.

Referenced by QString::arg(), isAsciiLetterOrNumber(), QXmlUtils::isEncName(), QTimeZonePrivate::isValidId(), QString::number(), QUrlPrivate::setScheme(), toAsciiLower(), QLocale::toString(), and QString::vasprintf().

+ Here is the caller graph for this function:

◆ isHexDigit()

constexpr bool QtMiscUtils::isHexDigit ( char32_t c)
inlineconstexprnoexcept

Definition at line 37 of file qtools_p.h.

Referenced by QSettingsPrivate::iniEscapedString(), QSettingsPrivate::iniUnescapedStringList(), lengthOfEscapeSequence(), parseIpFuture(), and Preprocessor::tokenize().

+ Here is the caller graph for this function:

◆ isOctalDigit()

constexpr bool QtMiscUtils::isOctalDigit ( char32_t c)
inlineconstexprnoexcept

Definition at line 57 of file qtools_p.h.

Referenced by fromOct(), QTextStreamPrivate::getNumber(), lengthOfEscapeSequence(), and makePattern().

+ Here is the caller graph for this function:

◆ qt_lencmp()

constexpr int QtMiscUtils::qt_lencmp ( qsizetype lhs,
qsizetype rhs )
inlineconstexprnoexcept

Definition at line 109 of file qtools_p.h.

Referenced by QStringView::compareStrings(), QUtf8::compareUtf8(), latin1nicmp(), ucstrcmp(), and ucstricmp().

+ Here is the caller graph for this function:

◆ toAsciiLower()

constexpr char QtMiscUtils::toAsciiLower ( char ch)
inlineconstexprnoexcept

Definition at line 87 of file qtools_p.h.

References ch, and isAsciiUpper().

Referenced by QPdfPageModel::QPdfPageModel(), QString::arg(), caseCompareAscii(), get_named_rgb(), nameMatch(), QByteArray::number(), QString::number(), parseHeaderName(), parseHeaderName(), QLocale::toString(), and QString::vasprintf().

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

◆ toAsciiUpper()

constexpr char QtMiscUtils::toAsciiUpper ( char ch)
inlineconstexprnoexcept

Definition at line 92 of file qtools_p.h.

References ch, and isAsciiLower().

Referenced by asciiToKeycode(), and PropertyDef::stdCppSet().

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

◆ toHexLower()

constexpr char QtMiscUtils::toHexLower ( char32_t value)
inlineconstexprnoexcept

Definition at line 32 of file qtools_p.h.

Referenced by _q_toHex(), QDB2Driver::formatValue(), QODBCDriver::formatValue(), QSqlDriver::formatValue(), QByteArray::toHex(), QIPAddressUtils::toHex(), and QtDebugUtils::toPrintable().

+ Here is the caller graph for this function:

◆ toHexUpper()

constexpr char QtMiscUtils::toHexUpper ( char32_t value)
inlineconstexprnoexcept

Definition at line 27 of file qtools_p.h.

Referenced by encodeNibble(), QSettingsPrivate::iniEscapedKey(), QNetworkInterfacePrivate::makeHwAddress(), putEscapedString(), and QByteArray::toPercentEncoding().

+ Here is the caller graph for this function:

◆ toOct()

constexpr char QtMiscUtils::toOct ( char32_t value)
inlineconstexprnoexcept

Definition at line 52 of file qtools_p.h.