Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost's direction regarding UTF8 -> UTF32 andUTF32 -> UTF8
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-06-24 12:03:56


> Rodrigo Madera wrote:
>> There are John Maddock's iterator adapters, those of the
>> Boost.Unicode library under development that are similar to them,
>> and there is also Boost.Locale, another library under development
>> that is a frontend to ICU, that provides function to do conversions
>> (but it works with memory buffers).
>>
>>
>> I see that Maddock's adapters does the job, but does it provide the
>> reliability of ICU?
>
> They could result in undefined behaviour when given invalid UTF input at
> the end of the string.
> So not very reliable, no.

Really? That would be a bug, the intention is that they should always throw
an exception when given invalid input.

Of course a more complete solution would always be welcome....

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net