![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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) |
qsizetype | qt_encodeFromUser (QString &appendTo, const QString &input, const ushort *tableModifications) |
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 921 of file qurlidna.cpp.
qsizetype qt_encodeFromUser | ( | QString & | appendTo, |
const QString & | input, | ||
const ushort * | tableModifications ) |
Definition at line 664 of file qurlrecode.cpp.
References defaultActionTable, and EncodeCharacter.
|
extern |
Definition at line 172 of file qurlidna.cpp.
|
extern |
Definition at line 68 of file qurlidna.cpp.
References adapt(), appendEncode(), initial_bias, and initial_n.
|
extern |
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 641 of file qurlrecode.cpp.