Boost logo

Boost :

Subject: Re: [boost] RFC: interest in Unicode codecs?
From: Rogier van Dalen (rogiervd_at_[hidden])
Date: 2009-07-20 17:34:38


On Mon, Jul 20, 2009 at 17:50, Mathias
Gaunard<mathias.gaunard_at_[hidden]> wrote:
> Rogier van Dalen wrote:
>> I like the idea of the Pipe and related concepts. I am wondering,
>> however, whether the UTF-8 decoding iterator can be fast enough given
>> the current specification. I think Pipe (or another concept) might
>> have to support decoding of exactly one output element. Correct me if
>> I'm wrong.
>
> I don't really understand what you mean.
> Calling Pipe::ltr or Pipe::rtl only decodes one "element" (utf8 decoding
> means a multibyte sequence is read and a code point is written, utf8
> encoding means a code point is read and a multibyte sequence is written).

Thanks, that explains it—I read the documentation "Reads part of the
[begin, end[ range .., writes some elements .. to out" to mean that as
much as possible would be read from the range. I guess I should just
hold off commenting on these matters until it's finished!

Cheers,
Rogier


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk