* Convert a UTF-32 codepoint to a UTF-8 string */
| 183 | * Convert a UTF-32 codepoint to a UTF-8 string |
| 184 | */ |
| 185 | inline std::string utf32ToUtf8(uint32_t codepoint) |
| 186 | { |
| 187 | std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> cvt; |
| 188 | return cvt.to_bytes(codepoint); |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Encode data into base 64 encoding. |