textwolf  0.2
Public Types | Static Public Member Functions | List of all members
textwolf::charset::UCS4< byteorder > Class Template Reference

Character set UCS-4 (little/big endian) More...

#include <charset_ucs.hpp>

Public Types

enum  {
  B0 =(byteorder==ByteOrder::BE)?3:0, B1 =(byteorder==ByteOrder::BE)?2:1, B2 =(byteorder==ByteOrder::BE)?1:2, B3 =(byteorder==ByteOrder::BE)?0:3,
  Print1shift =(byteorder==ByteOrder::BE)?24:0, Print2shift =(byteorder==ByteOrder::BE)?16:8, Print3shift =(byteorder==ByteOrder::BE)?8:16, Print4shift =(byteorder==ByteOrder::BE)?0:24,
  MaxChar =0xFFFFFFFFU
}
 

Static Public Member Functions

template<class Iterator >
static void fetchbytes (char *buf, unsigned int &bufpos, Iterator &itr)
 See template<class Iterator>Interface::fetchbytes(char*,unsigned int&,Iterator&) More...
 
template<class Iterator >
static UChar value (char *buf, unsigned int &bufpos, Iterator &itr)
 See template<class Iterator>Interface::value(char*,unsigned int&,Iterator&) More...
 
template<class Iterator >
static void skip (char *, unsigned int &bufpos, Iterator &itr)
 See template<class Iterator>Interface::skip(char*,unsigned int&,Iterator&) More...
 
template<class Iterator >
static signed char asciichar (char *buf, unsigned int &bufpos, Iterator &itr)
 See template<class Iterator>Interface::asciichar(char*,unsigned int&,Iterator&) More...
 
template<class Buffer_ >
static void print (UChar chr, Buffer_ &buf)
 See template<class Buffer>Interface::print(UChar,Buffer&) More...
 
static bool is_equal (const UCS4 &, const UCS4 &)
 See template<class Buffer>Interface::is_equal( const Interface&, const Interface&) More...
 

Detailed Description

template<int byteorder>
class textwolf::charset::UCS4< byteorder >

Character set UCS-4 (little/big endian)

Template Parameters
byteorderByteOrder::LE or ByteOrder::BE

Member Enumeration Documentation

template<int byteorder>
anonymous enum
Enumerator
B0 
B1 
B2 
B3 
Print1shift 
Print2shift 
Print3shift 
Print4shift 
MaxChar 

Member Function Documentation

template<int byteorder>
template<class Iterator >
static signed char textwolf::charset::UCS4< byteorder >::asciichar ( char *  buf,
unsigned int &  bufpos,
Iterator &  itr 
)
inlinestatic
template<int byteorder>
template<class Iterator >
static void textwolf::charset::UCS4< byteorder >::fetchbytes ( char *  buf,
unsigned int &  bufpos,
Iterator &  itr 
)
inlinestatic
template<int byteorder>
static bool textwolf::charset::UCS4< byteorder >::is_equal ( const UCS4< byteorder > &  ,
const UCS4< byteorder > &   
)
inlinestatic
template<int byteorder>
template<class Buffer_ >
static void textwolf::charset::UCS4< byteorder >::print ( UChar  chr,
Buffer_ &  buf 
)
inlinestatic

See template<class Buffer>Interface::print(UChar,Buffer&)

template<int byteorder>
template<class Iterator >
static void textwolf::charset::UCS4< byteorder >::skip ( char *  ,
unsigned int &  bufpos,
Iterator &  itr 
)
inlinestatic
template<int byteorder>
template<class Iterator >
static UChar textwolf::charset::UCS4< byteorder >::value ( char *  buf,
unsigned int &  bufpos,
Iterator &  itr 
)
inlinestatic

See template<class Iterator>Interface::value(char*,unsigned int&,Iterator&)


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