![]() |
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 | |
| 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) |
Variables | |
| QT_BEGIN_NAMESPACE constexpr QUrl::ComponentFormattingOptions | QUrlDecodeForLocalFile |
| 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 720 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), except in Decoded modes.
On success, this function returns the number of characters added to appendTo, or -1 on error (errors are currently only detected if encoding is QUrlDecodeForLocalFile). A return value of 0 means this function had no percent-encoded transformations to perform, so the caller must append the in input to appendTo. This lets the caller return a shallow copy of the original QString (avoiding allocation) and keep control of its null-vs-empty state.
Definition at line 697 of file qurlrecode.cpp.
|
inlineconstexpr |