Torque2D Reference

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

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

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

Dynamically select encoding according to stream's runtime-specified UTF encoding type. More...

`#include <encodings.h>`

## Public Types
typedef CharType | Ch

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

## Detailed Description

### template<typename CharType>
struct rapidjson::AutoUTF< CharType >

Dynamically select encoding according to stream's runtime-specified UTF encoding type.

Note
  This class can be used with AutoUTFInputtStream and AutoUTFOutputStream, which provides GetType().

## Member Typedef Documentation

typedef CharType Ch

## Member Function Documentation

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

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

static RAPIDJSON_FORCEINLINE 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