Json Box  0.6.1
This is a JSON C++ library. It can write and read JSON files with ease and speed.
Static Public Member Functions | List of all members
JsonBox::Convert Class Reference

#include <Convert.h>

Static Public Member Functions

static std::string encodeToUTF8 (const String32 &utf32String)
 
static String32 decodeUTF8 (const std::string &utf8String)
 

Detailed Description

This class is used to encode/decode/transcode UTF8, 16 and 32.

Member Function Documentation

String32 JsonBox::Convert::decodeUTF8 ( const std::string &  utf8String)
static

Decode the given 8bit UTF8 string to an UTF32 string.

Parameters
utf8StringUTF8 string to convert to UTF32.
Returns
UTF32 string resulting from the conversion.
std::string JsonBox::Convert::encodeToUTF8 ( const String32 utf32String)
static

Encode the given UTF32 string to a 8bit UTF8 one.

Parameters
utf32StringUTF32 string to convert to UTF8.
Returns
UTF8 string resulting from the conversion.

The documentation for this class was generated from the following files: