[Development] QAnyStringView

Marc Mutz marc.mutz at kdab.com
Wed Jun 24 14:29:11 CEST 2020

Hi Eddy,

On 2020-06-24 11:27, Edward Welbourne wrote:
> Marc Mutz (24 June 2020 09:32) wrote
>> My Qt 5-era changes to QLatin1String (adding QL1S::arg(), enabling
>> QL1S as a type for date/time formats, overloading QtJSON functions for
>> QL1S) have shown how dramatic the effect of 8-bit string values
>> without constructing a QString first really is, without actually
>> limiting functionality.
> wait ... "enabling QL1S as a type for date/time formats" ?
> A quick search for "QLatin1String" in qdatetime.h and qlocale.h shows a
> total of zero matches.  We have QStringView overloads, but not QL1S.

Heh, you're right. That was QStringView. I think I started with QL1S 
overloads at some point, but I don't know what became of that. It might 
be in some old local branch (or just a git-stash because the 
QDateTimeParser monster got in the way...).

> Not that I have any objection to adding such overloads, but they can't 
> be
> claimed as qt5-era wins of viewification.


Thanks for the correction,

More information about the Development mailing list