|
std::wstring | gnash::utf8::decodeCanonicalString (const std::string &str, int version) |
| Converts a std::string with multibyte characters into a std::wstring. More...
|
|
std::string | gnash::utf8::encodeCanonicalString (const std::wstring &wstr, int version) |
| Converts a std::wstring into canonical std::string. More...
|
|
std::string | gnash::utf8::encodeLatin1Character (std::uint32_t ucsCharacter) |
| Encodes the given wide character into an at least 8-bit character. More...
|
|
std::uint32_t | gnash::utf8::decodeNextUnicodeCharacter (std::string::const_iterator &it, const std::string::const_iterator &e) |
| Return the next Unicode character in the UTF-8 encoded string. More...
|
|
std::string | gnash::utf8::encodeUnicodeCharacter (std::uint32_t ucs_character) |
| Encodes the given wide character into a canonical string, theoretically up to 6 chars in length. More...
|
|
const char * | gnash::utf8::stripBOM (const char *in, size_t &size, TextEncoding &encoding) |
| Interpret (and skip) Byte Order Mark in input stream. More...
|
|
const char * | gnash::utf8::textEncodingName (TextEncoding enc) |
| Return name of a text encoding. More...
|
|
EncodingGuess | gnash::utf8::guessEncoding (const std::string &s, int &length, std::vector< int > &offsets) |
| Common code for guessing at the encoding of random text, between. More...
|
|