AutoUTF< CharType > Struct Template Reference#
AutoUTF< CharType > Struct Template Reference
Dynamically select encoding according to stream's runtime-specified UTF encoding type. More...
#include <encodings.h>
Public Types | |
enum | { supportUnicode = 1 } |
typedef CharType | Ch |
Static Public Member Functions | |
template<typename OutputStream > | |
static RAPIDJSON_FORCEINLINE void | Encode (OutputStream &os, unsigned codepoint) |
template<typename OutputStream > | |
static RAPIDJSON_FORCEINLINE void | EncodeUnsafe (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 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
◆ Ch
Member Enumeration Documentation
◆ anonymous enum
Member Function Documentation
◆ Decode()
template<typename CharType >
template<typename InputStream >
|
inlinestatic |
◆ Encode()
template<typename CharType >
template<typename OutputStream >
|
inlinestatic |
◆ EncodeUnsafe()
template<typename CharType >
template<typename OutputStream >
|
inlinestatic |
◆ Validate()
template<typename CharType >
template<typename InputStream , typename OutputStream >
|
inlinestatic |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/rapidjson/encodings.h