7#include <QtCore/qhashfunctions.h>
8#include <QtCore/qstringlist.h>
169 if (
d &&
d->ref.loadRelaxed() == 1)
174 if (
d && !
d->ref.deref())
206#define decode(x) ushort(x)
207#define leave(x) ushort(0x100 | (x))
208#define encode(x) ushort(0x200 | (x))
214 ushort prettyDecodedActions[] = {
222 prettyDecodedActions))
258 ushort prettyDecodedActions[] = {
270 const QChar *delimiter =
nullptr;
288 prettyDecodedActions))
291 if (delimiter ==
pos) {
294 }
else if (delimiter + 1 ==
pos) {
301 prettyDecodedActions))
418 x->itemList.isEmpty();
484 QUrl::ComponentFormattingOptions encoding,
const ushort *tableModifications)
522 tableActions[2] =
encode(
'#');
540 if (!
it->second.isNull()) {
728 while (idx < d->itemList.size()) {
750 Map::iterator
it =
p->findKey(
key);
751 if (
it !=
p->itemList.
end())
770 return item.first == encodedKey;
772 p->itemList.
removeIf(firstEqualsEncodedKey);
T loadRelaxed() const noexcept
constexpr char16_t unicode() const noexcept
Returns the numeric Unicode value of the QChar.
qsizetype size() const noexcept
bool isEmpty() const noexcept
const_reference at(qsizetype i) const noexcept
const_iterator constBegin() const noexcept
void append(parameter_type t)
const_iterator constEnd() const noexcept
const_iterator constBegin() const noexcept
iterator erase(const_iterator i)
void detach()
If the shared data object's reference count is greater than 1, this function creates a deep copy of t...
const T * constData() const noexcept
Returns a const pointer to the shared data object.
T * data()
Returns a pointer to the shared data object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString & removeIf(Predicate pred)
QUrlQueryPrivate(const QString &query=QString())
int findRecodedKey(const QString &key, int from=0) const
void addQueryItem(const QString &key, const QString &value)
void setQuery(const QString &query)
QString recodeFromUser(const QString &input) const
QString recodeToUser(const QString &input, QUrl::ComponentFormattingOptions encoding) const
Map::const_iterator findKey(const QString &key) const
Map::iterator findKey(const QString &key)
void setQuery(const QString &queryString)
Parses the query string in queryString and sets the internal items to the values found there.
void removeAllQueryItems(const QString &key)
Removes all the query string pairs whose key is equal to key from the URL.
void setQueryItems(const QList< QPair< QString, QString > > &query)
Sets the items in this QUrlQuery object to query.
void clear()
Clears this QUrlQuery object by removing all of the key-value pairs currently stored.
bool isEmpty() const
Returns true if this QUrlQuery object contains no key-value pairs, such as after being default-constr...
static constexpr char16_t defaultQueryPairDelimiter() noexcept
Returns the default character for separating keys-value pairs from each other, an ampersand ("&").
void addQueryItem(const QString &key, const QString &value)
Appends the pair key = value to the end of the query string of the URL.
bool operator==(const QUrlQuery &other) const
Returns true if this object and the other object contain the same contents, in the same order,...
bool hasQueryItem(const QString &key) const
Returns true if there is a query string pair whose key is equal to key from the URL.
void removeQueryItem(const QString &key)
Removes the query string pair whose key is equal to key from the URL.
QList< QPair< QString, QString > > queryItems(QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
Returns the query string of the URL, as a map of keys and values, using the options specified in enco...
static constexpr char16_t defaultQueryValueDelimiter() noexcept
Returns the default character for separating keys from values in the query, an equal sign ("=").
QString query(QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
Returns the reconstructed query string, formed from the key-value pairs currently stored in this QUrl...
QUrlQuery()
Constructs an empty QUrlQuery object.
void setQueryDelimiters(QChar valueDelimiter, QChar pairDelimiter)
Sets the characters used for delimiting between keys and values, and between key-value pairs in the U...
QUrlQuery & operator=(const QUrlQuery &other)
Move-assigns other to this QUrlQuery instance.
QStringList allQueryItemValues(const QString &key, QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
Returns the a list of query string values whose key is equal to key from the URL, using the options s...
~QUrlQuery()
Destroys this QUrlQuery object.
QString queryItemValue(const QString &key, QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
Returns the query value associated with key key from the URL, using the options specified in encoding...
QChar queryValueDelimiter() const
Returns the character used to delimit between keys and values when reconstructing the query string in...
QChar queryPairDelimiter() const
Returns the character used to delimit between keys-value pairs when reconstructing the query string i...
QString query(ComponentFormattingOptions=PrettyDecoded) const
Returns the query string of the URL if there's a query string, or an empty result if not.
QHash< int, QWidget * > hash
[35multi]
QSet< QString >::iterator it
Combined button and popup list for selecting options.
constexpr Initialization Uninitialized
std::pair< T1, T2 > QPair
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
size_t qHash(const QFileSystemWatcherPathKey &key, size_t seed=0)
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLenum input
constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2) noexcept(noexcept(std::make_pair(std::forward< T1 >(value1), std::forward< T2 >(value2))))
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
QT_BEGIN_NAMESPACE Q_AUTOTEST_EXPORT qsizetype qt_urlRecode(QString &appendTo, QStringView url, QUrl::ComponentFormattingOptions encoding, const ushort *tableModifications=nullptr)
static void recodeAndAppend(QString &to, const QString &input, QUrl::ComponentFormattingOptions encoding, const ushort *tableModifications)
QList< QPair< QString, QString > > Map
bool idempotentRecodeToUser(QUrl::ComponentFormattingOptions encoding)
QT_BEGIN_NAMESPACE typedef uchar * output
QUrl url("example.com")
[constructor-url-reference]