![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Enumerations | |
enum | AceLeadingDot { AllowLeadingDot , ForbidLeadingDot } |
enum | AceOperation { ToAceOnly , NormalizeAce } |
Functions | |
QT_BEGIN_NAMESPACE Q_AUTOTEST_EXPORT qsizetype | qt_urlRecode (QString &appendTo, QStringView url, QUrl::ComponentFormattingOptions encoding, const ushort *tableModifications=nullptr) |
QString Q_CORE_EXPORT | qt_ACE_do (const QString &domain, AceOperation op, AceLeadingDot dot, QUrl::AceProcessingOptions options={}) |
Q_AUTOTEST_EXPORT void | qt_punycodeEncoder (QStringView in, QString *output) |
Q_AUTOTEST_EXPORT QString | qt_punycodeDecoder (const QString &pc) |
enum AceLeadingDot |
enum AceOperation |
QString Q_CORE_EXPORT qt_ACE_do | ( | const QString & | domain, |
AceOperation | op, | ||
AceLeadingDot | dot, | ||
QUrl::AceProcessingOptions | options = {} |
||
) |
Definition at line 889 of file qurlidna.cpp.
References checkAsciiDomainName(), convertToAscii(), convertToUnicode(), dot(), QUrl::IgnoreIDNWhitelist, QString::isEmpty(), mapDomainName(), QString::NormalizationForm_C, qt_is_idn_enabled(), and ToAceOnly.
Referenced by QUrlPrivate::appendHost(), encodeLabel(), QUrl::fromAce(), qDBusInterfaceFromMetaObject(), QUrlPrivate::setHost(), and QUrl::toAce().
Q_AUTOTEST_EXPORT QString qt_punycodeDecoder | ( | const QString & | pc | ) |
Definition at line 171 of file qurlidna.cpp.
References adapt(), QString::at(), base, QString::fromStdU32String(), i, initial_bias, initial_n, QChar::isSurrogate(), QString::lastIndexOf(), QChar::LastValidCodePoint, MaxDomainLabelLength, QString::mid(), output, qWarning, QString::size(), QString::startsWith(), tmax, tmin, QString::toStdU32String(), and QChar::unicode().
Referenced by convertToUnicode().
Q_AUTOTEST_EXPORT void qt_punycodeEncoder | ( | QStringView | in, |
QString * | output | ||
) |
Definition at line 67 of file qurlidna.cpp.
References adapt(), appendEncode(), d, initial_bias, initial_n, iter, MaxDomainLabelLength, and output.
Referenced by convertToAscii().
QT_BEGIN_NAMESPACE Q_AUTOTEST_EXPORT qsizetype qt_urlRecode | ( | QString & | appendTo, |
QStringView | in, | ||
QUrl::ComponentFormattingOptions | encoding, | ||
const ushort * | tableModifications | ||
) |
Recodes the string from begin to end. If any transformations are done, append them to appendTo and return the number of characters added. If no transformations were required, return 0.
The encoding option modifies the default behaviour: \list
Other flags are ignored (including QUrl::EncodeReserved).
The tableModifications argument can be used to supply extra modifications to the tables, to be applied after the flags above are handled. It consists of a sequence of 16-bit values, where the low 8 bits indicate the character in question and the high 8 bits are either EncodeCharacter
, LeaveCharacter
or DecodeCharacter
.
This function corrects percent-encoded errors by interpreting every '' as meaning "%25" (all percents in the same content).
Definition at line 638 of file qurlrecode.cpp.
References decode, DecodeCharacter, QUrl::DecodeReserved, defaultActionTable, QUrl::EncodeSpaces, QUrl::FullyDecoded, maskTable(), recode(), and reservedMask.
Referenced by QUrlPrivate::appendHost(), appendToUser(), QUrlPrivate::appendUserInfo(), parseIp6(), parseIpFuture(), recodeAndAppend(), QUrlQueryPrivate::recodeFromUser(), recodeFromUser(), QUrlQueryPrivate::recodeToUser(), QUrlPrivate::setHost(), and QUrlQueryPrivate::setQuery().