From: Nemanja Trifunovic (nemanja_trifunovic_at_[hidden])
Date: 2006-12-06 08:39:53
Thanks for your comments.
1) The typo. Thanks, I'll fix it.
2) Bidirectional iterator. Actually, random iterators are required, which I think makes sense for string containers as I explained to Hervé
3) For the iterators and codecvt, please see my reply to Rogier.
----- Original Message ----
From: Anthony Williams <anthony_w.geo_at_[hidden]>
Sent: Wednesday, December 6, 2006 6:22:41 AM
Subject: Re: [boost] UTF8 library - second call for informal review
Nemanja Trifunovic <nemanja_trifunovic_at_[hidden]> writes:
> This is the second call for the informal review of the UTF8 library. It is
> based on verson 1.02 of UTF8-CPP: http://utfcpp.sourceforge.net/ and you can
> find it at
First, a typo: there is a missing 'n' in octet_differece_type defined in
validate_next, on line 122.
Secondly, a real issue: validate_next currently requires bidirectional
iterators, in order to backtrack on error. Forward iterators are sufficient
for this --- just store a copy of the original, and copy it back if there's an
error. This would increase the number of use cases of the library.
I agree that a converting iterator would be beneficial, as would a codecvt
facet, but this is a good start.
Just Software Solutions Ltd
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk