assuming that I have
uint32_t a(3084);
I would like to create a string that stores the unicode character U+3084
which means that I should take the value of a
and use it as the coordinate for the right character in the UTF8 table/charset.
Now, clearly std::to_string()
doesn't work for me, there are a lot of functions in the standard to convert between numeric values and char, I can't find anything that grants me UTF8 support and outputs an std::string
.
I would like to ask if I have to create this function from scratch or there is something in the C++11 standard that can help me with that; please note that my compiler ( gcc/g++ 4.8.1 ) doesn't offer a complete support for codecvt
.