On Tuesday, 15 April 2025 01:32:56 Pacific Daylight Time Ivan Solovev via
Interest wrote:
> > My primary question is: is there a way to avoid doing a copy for the utf8
> > data (the char *buffer in operator>> and the QByteArray utf8 in
> > operator<<)?
>
> QString stores the data as UTF-16, so yo
Hi Josh,
> My primary question is: is there a way to avoid doing a copy for the utf8
> data (the char *buffer in operator>> and the QByteArray utf8 in
> operator<<)?
QString stores the data as UTF-16, so you won't be able to avoid a copy
if you want to convert the data to/from UTF-8.
I didn't ha
> Il 14/04/25 17:35, Volker Hilsheimer via Interest ha scritto:
> > As Thiago says, you have to use std::views::transform.
Sorry, that was a typo. Corrected example using asKeyValueRange:
https://godbolt.org/z/fT4G9TnKW
> In that case, you can put the QMap itself directly into the pipeline:
> >