cphot 0.1
A C++ tool for computing photometry from spectra.
UTF16LE< CharType > Struct Template Reference

UTF-16 little endian encoding. More...

#include <encodings.h>

+ Inheritance diagram for UTF16LE< CharType >:

Public Types

enum  
 
typedef wchar_t Ch
 

Public Member Functions

 RAPIDJSON_STATIC_ASSERT (sizeof(Ch) >=2)
 

Static Public Member Functions

template<typename InputByteStream >
static CharType TakeBOM (InputByteStream &is)
 
template<typename InputByteStream >
static CharType Take (InputByteStream &is)
 
template<typename OutputByteStream >
static void PutBOM (OutputByteStream &os)
 
template<typename OutputByteStream >
static void Put (OutputByteStream &os, CharType c)
 
static void Encode (OutputStream &os, unsigned codepoint)
 
static void EncodeUnsafe (OutputStream &os, unsigned codepoint)
 
static bool Decode (InputStream &is, unsigned *codepoint)
 
static bool Validate (InputStream &is, OutputStream &os)
 

Detailed Description

template<typename CharType = wchar_t>
struct UTF16LE< CharType >

UTF-16 little endian encoding.

Definition at line 342 of file encodings.h.

Member Typedef Documentation

◆ Ch

typedef wchar_t UTF16< wchar_t >::Ch
inherited

Definition at line 270 of file encodings.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited

Definition at line 273 of file encodings.h.

Member Function Documentation

◆ Decode()

static bool UTF16< wchar_t >::Decode ( InputStream &  is,
unsigned *  codepoint 
)
inlinestaticinherited

Definition at line 307 of file encodings.h.

◆ Encode()

static void UTF16< wchar_t >::Encode ( OutputStream &  os,
unsigned  codepoint 
)
inlinestaticinherited

Definition at line 276 of file encodings.h.

◆ EncodeUnsafe()

static void UTF16< wchar_t >::EncodeUnsafe ( OutputStream &  os,
unsigned  codepoint 
)
inlinestaticinherited

Definition at line 292 of file encodings.h.

◆ Put()

template<typename CharType = wchar_t>
template<typename OutputByteStream >
static void UTF16LE< CharType >::Put ( OutputByteStream &  os,
CharType  c 
)
inlinestatic

Definition at line 366 of file encodings.h.

◆ PutBOM()

template<typename CharType = wchar_t>
template<typename OutputByteStream >
static void UTF16LE< CharType >::PutBOM ( OutputByteStream &  os)
inlinestatic

Definition at line 359 of file encodings.h.

◆ RAPIDJSON_STATIC_ASSERT()

UTF16< wchar_t >::RAPIDJSON_STATIC_ASSERT ( sizeof(Ch) >=  2)
inherited

◆ Take()

template<typename CharType = wchar_t>
template<typename InputByteStream >
static CharType UTF16LE< CharType >::Take ( InputByteStream &  is)
inlinestatic

Definition at line 351 of file encodings.h.

◆ TakeBOM()

template<typename CharType = wchar_t>
template<typename InputByteStream >
static CharType UTF16LE< CharType >::TakeBOM ( InputByteStream &  is)
inlinestatic

Definition at line 344 of file encodings.h.

◆ Validate()

static bool UTF16< wchar_t >::Validate ( InputStream &  is,
OutputStream &  os 
)
inlinestaticinherited

Definition at line 325 of file encodings.h.


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