summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkrequest.cpp
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2022-12-08 19:20:48 +0100
committerMarc Mutz <[email protected]>2022-12-10 01:00:23 +0100
commitbbb01309b443054724713c2d72826535edc554d5 (patch)
tree8d25c12358f76a5c3359c95740d486a2388f65f7 /src/network/access/qnetworkrequest.cpp
parent9addd9a89d30135d8b917fe9e8d80212e48cf287 (diff)
QXmlStreamWriter: prepare for port to QAnyStringView
The UTF-8 support in Qt is still lacking, so QUtf8StringView doesn't, yet, have the likes of contains(), endsWith(), etc that the existing QString code uses in Q_ASSERTs. Provide free functions that work for UTF-8 haystacks and ASCII needles by falling back to QByteArrayView or QLatin1StringView. Also break a replace() use into a series of indexOf() + chunked write(). This is rather expensive for QString, so port the writeCDATA() function that uses this to QAnyStringView already, ahead of the bulk of the changes in Mate's follow-up patch. Task-number: QTBUG-103302 Change-Id: Ic66261740817ede2600b78a383cf667a31df7bfc Reviewed-by: Fabian Kosmale <[email protected]> Reviewed-by: Marc Mutz <[email protected]> Reviewed-by: Ivan Solovev <[email protected]> Reviewed-by: Tatiana Borisova <[email protected]>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
0 files changed, 0 insertions, 0 deletions