TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Transcoder< Encoding, Encoding > Struct Template Reference

Specialization of Transcoder with same source and target encoding. More...

#include <encodings.h>

Static Public Member Functions

template<typename InputStream , typename OutputStream >
static RAPIDJSON_FORCEINLINE bool Transcode (InputStream &is, OutputStream &os)
 
template<typename InputStream , typename OutputStream >
static RAPIDJSON_FORCEINLINE bool Validate (InputStream &is, OutputStream &os)
 

Detailed Description

template<typename Encoding>
struct Transcoder< Encoding, Encoding >

Specialization of Transcoder with same source and target encoding.

Member Function Documentation

template<typename Encoding >
template<typename InputStream , typename OutputStream >
static RAPIDJSON_FORCEINLINE bool Transcoder< Encoding, Encoding >::Transcode ( InputStream &  is,
OutputStream &  os 
)
inlinestatic
608  {
609  os.Put(is.Take()); // Just copy one code unit. This semantic is different from primary template class.
610  return true;
611  }
template<typename Encoding >
template<typename InputStream , typename OutputStream >
static RAPIDJSON_FORCEINLINE bool Transcoder< Encoding, Encoding >::Validate ( InputStream &  is,
OutputStream &  os 
)
inlinestatic
614  {
615  return Encoding::Validate(is, os); // source/target encoding are the same
616  }

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