NGL  6.5
The NCCA Graphics Library
ASCII< CharType > Struct Template Reference

ASCII encoding. More...

#include <encodings.h>

+ Collaboration diagram for ASCII< CharType >:

Public Types

enum  { supportUnicode = 0 }
 
typedef CharType Ch
 

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)
 
template<typename InputByteStream >
static CharType TakeBOM (InputByteStream &is)
 
template<typename InputByteStream >
static Ch Take (InputByteStream &is)
 
template<typename OutputByteStream >
static void PutBOM (OutputByteStream &os)
 
template<typename OutputByteStream >
static void Put (OutputByteStream &os, Ch c)
 

Detailed Description

template<typename CharType = char>
struct ASCII< CharType >

ASCII encoding.

http://en.wikipedia.org/wiki/ASCII

Template Parameters
CharTypeCode unit for storing 7-bit ASCII data. Default is char.
Note
implements Encoding concept

Definition at line 483 of file encodings.h.

Member Typedef Documentation

template<typename CharType = char>
typedef CharType ASCII< CharType >::Ch

Definition at line 484 of file encodings.h.

Member Enumeration Documentation

template<typename CharType = char>
anonymous enum
Enumerator
supportUnicode 

Definition at line 486 of file encodings.h.

Member Function Documentation

template<typename CharType = char>
template<typename InputStream >
static bool ASCII< CharType >::Decode ( InputStream &  is,
unsigned *  codepoint 
)
inlinestatic

Definition at line 495 of file encodings.h.

template<typename CharType = char>
template<typename OutputStream >
static void ASCII< CharType >::Encode ( OutputStream &  os,
unsigned  codepoint 
)
inlinestatic

Definition at line 489 of file encodings.h.

References RAPIDJSON_ASSERT.

template<typename CharType = char>
template<typename OutputByteStream >
static void ASCII< CharType >::Put ( OutputByteStream &  os,
Ch  c 
)
inlinestatic

Definition at line 528 of file encodings.h.

References RAPIDJSON_STATIC_ASSERT.

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

Definition at line 522 of file encodings.h.

References RAPIDJSON_STATIC_ASSERT, and void().

+ Here is the call graph for this function:

template<typename CharType = char>
template<typename InputByteStream >
static Ch ASCII< CharType >::Take ( InputByteStream &  is)
inlinestatic

Definition at line 516 of file encodings.h.

References RAPIDJSON_STATIC_ASSERT.

template<typename CharType = char>
template<typename InputByteStream >
static CharType ASCII< CharType >::TakeBOM ( InputByteStream &  is)
inlinestatic

Definition at line 509 of file encodings.h.

References RAPIDJSON_STATIC_ASSERT, and UTF8< CharType >::Take().

+ Here is the call graph for this function:

template<typename CharType = char>
template<typename InputStream , typename OutputStream >
static bool ASCII< CharType >::Validate ( InputStream &  is,
OutputStream &  os 
)
inlinestatic

Definition at line 502 of file encodings.h.


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