Guitar
Public Member Functions | Private Attributes | List of all members
utf8 Class Reference

#include <unicode.h>

Inheritance diagram for utf8:
Inheritance graph
[legend]
Collaboration diagram for utf8:
Collaboration graph
[legend]

Public Member Functions

 utf8 (char const *ptr, char const *end)
 
 utf8 (char const *ptr)
 
 utf8 (char const *ptr, size_t len)
 
uint32_t next () override
 
size_t offset () const
 
- Public Member Functions inherited from abstract_unicode_reader
virtual ~abstract_unicode_reader ()=default
 
void to_utf8 (std::function< bool(char, int)> const &fn)
 
void to_utf16 (std::function< bool(uint16_t)> const &fn)
 
void to_utf32 (std::function< bool(uint32_t)> const &fn)
 

Private Attributes

unicode_helper_::utf8decoder reader
 

Constructor & Destructor Documentation

◆ utf8() [1/3]

utf8::utf8 ( char const *  ptr,
char const *  end 
)

◆ utf8() [2/3]

utf8::utf8 ( char const *  ptr)

◆ utf8() [3/3]

utf8::utf8 ( char const *  ptr,
size_t  len 
)

Member Function Documentation

◆ next()

uint32_t utf8::next ( )
overridevirtual

Implements abstract_unicode_reader.

Here is the call graph for this function:

◆ offset()

size_t utf8::offset ( ) const
inline
Here is the call graph for this function:

Member Data Documentation

◆ reader

unicode_helper_::utf8decoder utf8::reader
private

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