Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2004-08-22 21:55:44


Patrick Bennett wrote:

> It should be char* (and std::string) UTF-8 strings throughout for all
> platforms - passing as-is for platforms like Linux, and converting
> to/from UCS-2 on Windows. I can't speak for other platforms as I'm most
> familiar with Windows and Linux.

Isn't it abusive to force utf-8 into a std::string ? While it is technically
possible the semantics isn't quite the same. operator [] (size_t i) wouldn't
return the i'th character any more, at least not for characters outside the
ascii range.

Regards,
                Stefan


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