Boost logo

Boost :

Subject: [boost] [unicode] provide <boost/cuchar.hpp> header?
From: Beman Dawes (bdawes_at_[hidden])
Date: 2012-02-27 08:59:50


The C++11 standard library provides a header <cuchar>, with a bit of
Unicode support, based on C's <uchar.h>:

    Macros: __STDC_UTF_16__, __STDC_UTF_32__

    Functions: mbrtoc16, c16rtomb, mbrtoc32, c32rtomb

The functions provide conversion between char sequences and UTF-16/UTF-32.

It would be useful to have a <boost/cuchar.hpp> header so that these
functions could be used with existing compilers and standard
libraries.

Does anyone have an implementation of these functions they would be
willing to contribute?

--Beman


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