C++ Logo

sg16

Advanced search

Re: [isocpp-sg16] std::format and charN_t

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 02 Jul 2024 10:54:43 +0200
On Monday 1 July 2024 23:48:59 CEST Tiago Freire wrote:
> > There's a third alternative, which is what we use in Qt: we estimate the
> > maximum possible size and request that. Once we've transcoded, we tell
> > the container how much was actually used, which truncates the output to
> > that size before continuing the formatting operation.
> Did you mean "finishing the formatting operation"? Or did you mean proceed
> to the next parameter?

I meant "the next parameter". I assume that whatever was formatting the
current parameter already did so properly when writing the necessary code
points to the provided buffer.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-07-02 08:54:49