ClanLib
2.3.7
|
UTF8 reader helper functions. More...
#include <utf8_reader.h>
Public Member Functions | |
Construction | |
CL_UTF8_Reader (const CL_StringRef8 &text) | |
Operations | |
bool | is_end () |
Returns true if the current position is at the end of the string. More... | |
unsigned int | get_char () |
Get the character at the current position. More... | |
CL_String8::size_type | get_char_length () |
Returns the length of the current character. More... | |
void | prev () |
Moves position to the previous character. More... | |
void | next () |
Moves position to the next character. More... | |
void | move_to_leadbyte () |
Moves position to the lead byte of the character. More... | |
CL_String8::size_type | get_position () |
Get the current position of the reader. More... | |
void | set_position (CL_String8::size_type position) |
Set the current position of the reader. More... | |
UTF8 reader helper functions.
CL_UTF8_Reader::CL_UTF8_Reader | ( | const CL_StringRef8 & | text) |
unsigned int CL_UTF8_Reader::get_char | ( | ) |
Get the character at the current position.
CL_String8::size_type CL_UTF8_Reader::get_char_length | ( | ) |
Returns the length of the current character.
CL_String8::size_type CL_UTF8_Reader::get_position | ( | ) |
Get the current position of the reader.
bool CL_UTF8_Reader::is_end | ( | ) |
Returns true if the current position is at the end of the string.
void CL_UTF8_Reader::move_to_leadbyte | ( | ) |
Moves position to the lead byte of the character.
void CL_UTF8_Reader::next | ( | ) |
Moves position to the next character.
void CL_UTF8_Reader::prev | ( | ) |
Moves position to the previous character.
void CL_UTF8_Reader::set_position | ( | CL_String8::size_type | position) |
Set the current position of the reader.