|
libosmscout 1.1.1
|
Parse and transform an UTF8 string. More...
#include <libosmscout/include/osmscout/util/utf8helper.h>

Public Types | |
| enum | Exit { Done = 0 , Continue , Error } |
Public Member Functions | |
| Parser (utf8helper::Transform func) | |
| Parser (const Parser &)=default | |
| void | Reset () |
Public Attributes | |
| utf8helper::Transform | func |
| Exit(* | run )(Parser *, byte) |
| int | context |
| byte | b [3] |
| char | u_size |
| codepoint | u |
Parse and transform an UTF8 string.
See https://tools.ietf.org/html/rfc3629
UTF8 encoding standard provides backward compatibility with the ASCII string. Illegal sequences will be discarded for security reason: see RFC 3629 #10. For each valid sequence, It picks the corresponding predefined table, If none has been defined, then the sequence is dumped as it is. Otherwise, the functor is called for the found character and the new sequence will be dumped instead.
|
explicit |
|
default |
| void utf8helper::Parser::Reset | ( | ) |
| byte utf8helper::Parser::b[3] |
| int utf8helper::Parser::context |
| utf8helper::Transform utf8helper::Parser::func |
| codepoint utf8helper::Parser::u |
| char utf8helper::Parser::u_size |