
24 Jun
2010
24 Jun
'10
4:03 p.m.
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.