OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Utf8Stream Class Reference

#include <utf8stream.hpp>

Collaboration diagram for Utf8Stream:

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

UnicodeChar Utf8Stream::consume ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

Point Utf8Stream::current ( ) const
inline

Here is the caller graph for this function:

static std::pair<UnicodeChar, Point> Utf8Stream::decode ( Point  cur,
Point  end 
)
inlinestatic

Here is the call graph for this function:

Here is the caller graph for this function:

bool Utf8Stream::eof ( ) const
inline

Here is the caller graph for this function:

void Utf8Stream::next ( )
inlineprivate

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

UnicodeChar Utf8Stream::peek ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

static UnicodeChar Utf8Stream::sBadChar ( )
inlinestatic

Here is the caller graph for this function:

Member Data Documentation

Point Utf8Stream::cur
private
Point Utf8Stream::end
private
Point Utf8Stream::nxt
private
UnicodeChar Utf8Stream::val
private

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