Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Member Functions | List of all members
UTF32< CharType > Struct Template Reference

UTF-32 encoding. More...

`#include <encodings.h>`

Inheritance diagram for UTF32< CharType >:

## Public Types
typedef CharType | Ch

## Public Member Functions
| RAPIDJSON_STATIC_ASSERT (sizeof(Ch) >=4)

## Static Public Member Functions
template<typename OutputStream >
static void | Encode (OutputStream &os, unsigned codepoint)
template<typename InputStream >
static bool | Decode (InputStream &is, unsigned *codepoint)
template<typename InputStream , typename OutputStream >
static bool | Validate (InputStream &is, OutputStream &os)

## Detailed Description

### template<typename CharType = unsigned>
struct rapidjson::UTF32< CharType >

UTF-32 encoding.

http://en.wikipedia.org/wiki/UTF-32

Template Parameters

  Ch | Type for storing 32-bit UTF-32 data. Default is unsigned. C++11 may use char32_t instead.

Note
  For in-memory access, no need to concern endianness. The code units and code points are represented by CPU's endianness. For streaming, use UTF32LE and UTF32BE, which handle endianness.

## Member Typedef Documentation

typedef CharType Ch

## Member Function Documentation

static bool Decode | ( | InputStream & | is,
|  | unsigned * | codepoint
| ) |  |
| inline static

static void Encode | ( | OutputStream & | os,
|  | unsigned | codepoint
| ) |  |
| inline static

RAPIDJSON_STATIC_ASSERT | ( | sizeof(Ch) >= | 4 | ) |

static bool Validate | ( | InputStream & | is,
|  | OutputStream & | os
| ) |  |
| inline static

The documentation for this struct was generated from the following file:

- persistence/rapidjson/include/rapidjson/encodings.h