|
Boost : |
Subject: Re: [boost] [general] What will string handling in C++ look like in the future [was Always treat ... ]
From: Patrick Horgan (phorgan1_at_[hidden])
Date: 2011-01-20 02:20:31
On 01/19/2011 11:15 AM, Matus Chochlik wrote:
> ...elision by patrick...
> This is where the (Boost.)Locale and (Boost.)Unicode libraries could provide
> insight into how to extend the std::string interface or be the testbed for
> new additions to the standard library related to string manipulation.
> (Provided, the standard adopts UTF-8 as a native encoding. Or does it already ?)
In recent C++ specs you can specify u8"a string to be considered encoded
in utf-8". If a wide char string literal is next to a u8 string literal
they don't concatenate, it's an error. There's of course all the locale
stuff including codecvt_utf8. A byte must be large enough to hold an 8
bit utf-8 code unit. That's all that's in the C++ spec so far.
Patrick
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk