|
Gnash
0.8.11dev
|
#include "utf8.h"#include <limits>#include <cstdint>#include <string>#include <vector>#include <cstdlib>Namespaces | |
| gnash | |
| Anonymous namespace for callbacks, local functions, event handlers etc. | |
| gnash::utf8 | |
| Utilities to convert between std::string and std::wstring. | |
Macros | |
| #define | FIRST_BYTE(mask, shift) |
| #define | NEXT_BYTE(shift) |
| #define | ENC_DEFAULT 0 |
| #define | ENC_UTF8 1 |
| #define | ENC_UTF16BE 2 |
| #define | ENC_UTF16LE 3 |
Functions | |
| 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... | |
| #define ENC_DEFAULT 0 |
| #define ENC_UTF16BE 2 |
| #define ENC_UTF16LE 3 |
| #define ENC_UTF8 1 |
| #define FIRST_BYTE | ( | mask, | |
| shift | |||
| ) |
Referenced by gnash::utf8::decodeNextUnicodeCharacter().
| #define NEXT_BYTE | ( | shift | ) |
Referenced by gnash::utf8::decodeNextUnicodeCharacter().
1.8.12