libosmscout 0.1
Loading...
Searching...
No Matches
utf8helper.h File Reference
#include <osmscout/util/utf8helper_charmap.h>
#include <string>
#include <vector>

Classes

struct  utf8helper::Parser
 Parse and transform an UTF8 string. More...
class  utf8helper::UTF8String

Namespaces

namespace  utf8helper

Typedefs

using utf8helper::Transform = codepoint (*)(const character*, int context)
 functor implements desired transformation of the character It has 2 arguments:

Functions

bool utf8helper::DecodeUTF8Codepoint (const std::string &text, size_t &offset, codepoint &cp)
 Decode one UTF-8 codepoint from text starting at offset.
void utf8helper::EncodeCodepointToUTF8 (codepoint cp, std::string &out)
 Encode one codepoint as UTF-8 and append to output string.
codepoint utf8helper::TransformCapitalize (const character *, int)
codepoint utf8helper::TransformLower (const character *, int)
codepoint utf8helper::TransformNop (const character *, int)
codepoint utf8helper::TransformNormalize (const character *, int)
codepoint utf8helper::TransformTransliterate (const character *, int)
codepoint utf8helper::TransformUpper (const character *, int)
std::string utf8helper::UTF8Capitalize (const std::string &text)
std::string utf8helper::UTF8Normalize (const std::string &text)
std::string utf8helper::UTF8ToLower (const std::string &text)
std::string utf8helper::UTF8ToUpper (const std::string &text)
std::string utf8helper::UTF8Transliterate (const std::string &text)