35 class UTF8_Reader_Impl;
42 UTF8_Reader(
const std::string::value_type *
text, std::string::size_type length);
69 std::string::size_type current_position = 0;
70 std::string::size_type length = 0;
71 const unsigned char *data =
nullptr;
void set_position(std::string::size_type position)
Set the current position of the reader.
std::string::size_type char_length()
Returns the length of the current character.
void next()
Moves position to the next character.
unsigned int character()
Get the character at the current position.
std::string::size_type position()
Get the current position of the reader.
void prev()
Moves position to the previous character.
UTF8_Reader(const std::string::value_type *text, std::string::size_type length)
Important: text is not copied by this class and must remain valid during its usage.
void move_to_leadbyte()
Moves position to the lead byte of the character.
bool is_end()
Returns true if the current position is at the end of the string.
UTF8 reader helper functions.
Definition: utf8_reader.h:38
Definition: Application/application.h:35