summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qdoublescanprint_p.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2022-12-11 15:31:33 +0200
committerAhmad Samir <a.samirh78@gmail.com>2023-02-09 16:49:54 +0200
commit5f73f485563719e133c849c8dbd93877095d5ff5 (patch)
tree5a14e53691a46fa0ec6cda5395de147a0dc27e8d /src/corelib/text/qdoublescanprint_p.h
parentcc6324665eb61eca136e9057ce1c72a2a0c32d31 (diff)
QString: optimize insert(qsizetype, QUtf8StringView)
Utf8 data is variable-width, ideally we want to write characters at most once, so insert directly into the QString buffer if inserting at the end (by delegating to append(QUtf8SV)), and use an intermediate buffer to hold the converted data before inserting anywhere else. Task-number: QTBUG-108546 Change-Id: Iabfaeecaf34a1ba11946bd67951e69a45d954d6d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qdoublescanprint_p.h')
0 files changed, 0 insertions, 0 deletions