OpenMW
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
Utf8Stream Class Reference

#include <utf8stream.hpp>

List of all members.

Public Types

typedef uint32_t UnicodeChar
typedef unsigned char const * Point

Public Member Functions

 Utf8Stream (Point begin, Point end)
 Utf8Stream (std::pair< Point, Point > range)
bool eof () const
Point current () const
UnicodeChar peek ()
UnicodeChar consume ()

Static Public Member Functions

static UnicodeChar sBadChar ()
static std::pair< UnicodeChar,
Point
decode (Point cur, Point end)

Private Member Functions

void next ()

Static Private Member Functions

static std::pair< int,
UnicodeChar
octet_count (unsigned char octet)

Private Attributes

Point cur
Point nxt
Point end
UnicodeChar val

Member Typedef Documentation

typedef unsigned char const* Utf8Stream::Point
typedef uint32_t Utf8Stream::UnicodeChar

Constructor & Destructor Documentation

Utf8Stream::Utf8Stream ( Point  begin,
Point  end 
) [inline]
Utf8Stream::Utf8Stream ( std::pair< Point, Point range) [inline]

Member Function Documentation

Point Utf8Stream::current ( ) const [inline]
static std::pair<UnicodeChar, Point> Utf8Stream::decode ( Point  cur,
Point  end 
) [inline, static]
bool Utf8Stream::eof ( ) const [inline]
void Utf8Stream::next ( ) [inline, private]
static std::pair<int, UnicodeChar> Utf8Stream::octet_count ( unsigned char  octet) [inline, static, private]
static UnicodeChar Utf8Stream::sBadChar ( ) [inline, static]

Member Data Documentation


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