DeSR Dependency Parser |
#include <CharBuffer.h>
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
typedef CharTraits::CharType | CharType |
type of chars to return | |
typedef CharTraits::CodeUnit | CodeUnit |
type of chars in buffer | |
typedef CharType * | pointer |
typedef const CharType * | const_pointer |
typedef CharType & | reference |
typedef const CharType & | const_reference |
typedef size_t | size_type |
typedef ptrdiff_t | Distance |
Public Member Functions | |
CharBuffer (CharType *start=0, size_t length=0) | |
reference | operator[] (size_type n) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
Distance | size () |
Protected Attributes | |
CodeUnit const * | start |
start of text | |
Distance | length |
length of text |
This class can be used with various types of characters.
For instance
CharBuffer<CChar>
CharBuffer<Char>
iterator
*() returns the current Unicode character.
CharBuffer<Utf8>
CharTraits is a specifier that must define:
CharType
, the type of the characters to return CodeUnits
, the type of characters in the buffer Definition at line 60 of file CharBuffer.h.