43 #include <QtCore/qhashfunctions.h>
44 #include <QtCore/qstringlist.h>
205 if (d && d->ref.loadRelaxed() == 1)
210 if (d && !d->ref.deref())
242 #define decode(x) ushort(x)
243 #define leave(x) ushort(0x100 | (x))
244 #define encode(x) ushort(0x200 | (x))
250 ushort prettyDecodedActions[] = {
258 prettyDecodedActions))
294 ushort prettyDecodedActions[] = {
306 const QChar *delimiter =
nullptr;
324 prettyDecodedActions))
327 if (delimiter ==
pos) {
330 }
else if (delimiter + 1 ==
pos) {
337 prettyDecodedActions))
455 seed =
hash(seed,
d->valueDelimiter);
456 seed =
hash(seed,
d->pairDelimiter);
457 seed =
hash(seed,
d->itemList);
506 QUrl::ComponentFormattingOptions encoding,
const ushort *tableModifications)
544 tableActions[2] =
encode(
'#');
554 size +=
it->first.length() + 1 +
it->second.length() + 1;
561 recodeAndAppend(
result,
it->first, encoding, tableActions);
562 if (!
it->second.isNull()) {
564 recodeAndAppend(
result,
it->second, encoding, tableActions);
750 while (idx < d->itemList.size()) {
773 if (
it !=
p->itemList.end())
774 p->itemList.erase(
it);
792 return item.first == encodedKey;
794 p->itemList.
removeIf(firstEqualsEncodedKey);
small capitals from c petite p scientific i
[1]
T loadRelaxed() const noexcept
The QChar class provides a 16-bit Unicode character.
constexpr char16_t unicode() const noexcept
template< typename Enum > size_t qHash(QFlags< Enum > flags, size_t seed=0) noexcept
qsizetype size() const noexcept
bool isEmpty() const noexcept
const_reference at(qsizetype i) const noexcept
const_iterator constBegin() const noexcept
qsizetype count() const noexcept
void append(parameter_type t)
const_iterator constEnd() const noexcept
The QSharedData class is a base class for shared data objects. \reentrant.
const T * constData() const noexcept
The QString class provides a Unicode character string.
QString & removeIf(Predicate pred)
The QStringList class provides a list of strings.
The QStringView class provides a unified view on UTF-16 strings with a read-only subset of the QStrin...
The QUrl class provides a convenient interface for working with URLs.
QString query(ComponentFormattingOptions=PrettyDecoded) const
The QUrlQuery class provides a way to manipulate a key-value pairs in a URL's query.
void setQuery(const QString &queryString)
void removeAllQueryItems(const QString &key)
void setQueryItems(const QList< QPair< QString, QString > > &query)
static constexpr char16_t defaultQueryPairDelimiter() noexcept
void addQueryItem(const QString &key, const QString &value)
bool operator==(const QUrlQuery &other) const
bool hasQueryItem(const QString &key) const
void removeQueryItem(const QString &key)
QList< QPair< QString, QString > > queryItems(QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
static constexpr char16_t defaultQueryValueDelimiter() noexcept
QString query(QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
void setQueryDelimiters(QChar valueDelimiter, QChar pairDelimiter)
QUrlQuery & operator=(const QUrlQuery &other)
QStringList allQueryItemValues(const QString &key, QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
QString queryItemValue(const QString &key, QUrl::ComponentFormattingOptions encoding=QUrl::PrettyDecoded) const
QChar queryValueDelimiter() const
QChar queryPairDelimiter() const
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)
QHash< int, QWidget * > hash
[35multi]
typename C::const_iterator const_iterator
typename C::iterator iterator
constexpr Initialization Uninitialized
std::pair< T1, T2 > QPair
EGLOutputLayerEXT EGLint EGLAttrib value
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))))
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)
QList< QPair< QString, QString > > Map
bool idempotentRecodeToUser(QUrl::ComponentFormattingOptions encoding)
QUrl url("http://www.example.com/List of holidays.xml")
[0]