Converts between strings of various types and String objects. More...
#include <gui_tk.h>
Static Protected Member Functions | |
static void | getString (String &dest, const STR &src) |
Converts a native string into a String object. | |
static STR & | getNative (const String &src) |
Converts a string object to native representation. | |
Friends | |
class | String |
Converts between strings of various types and String objects.
It is used to deal with string encoding. It is intended to be used with template specializations. Having such a specialization means you can feed the corresponding type to all functions that expect a string -- without any conversion. You can add specializations yourself in your program's code to deal with unsupported types.
As an example, see the std::string version.
Encodings, as opposed to character sets, define how bytes map to character values. ASCII, for example, has an encoding where each byte is one character, while the ASCII character set says that values 0-127 are valid and 65 is the upper case letter 'A'. UTF-8 has 1-6 bytes per character, and the character set is unicode.
GUI::Font deals with the character set, and this class encapsulates encodings.
static STR& GUI::NativeString< STR >::getNative | ( | const String & | src | ) | [inline, static, protected] |