The Sword Project: sword::StringMgr Class Reference |
#include <stringmgr.h>
Collaboration diagram for sword::StringMgr:
Public Member Functions | |
virtual char * | upperUTF8 (char *text, unsigned int max=0) const |
Converts the param to an upper case Utf8 string. | |
virtual char * | upperLatin1 (char *text, unsigned int max=0) const |
Converts the param to an uppercase latin1 string. | |
Static Public Member Functions | |
static void | setSystemStringMgr (StringMgr *newStringMgr) |
Sets the global StringMgr handle. | |
static StringMgr * | getSystemStringMgr () |
Returns the global StringMgr handle. | |
static bool | hasUTF8Support () |
Checks whether Utf8 support is available. | |
Protected Member Functions | |
StringMgr () | |
Default constructor. | |
StringMgr (const StringMgr &) | |
Copy constructor. | |
virtual | ~StringMgr () |
Destructor. | |
virtual bool | supportsUnicode () const |
Static Private Attributes | |
static StringMgr * | systemStringMgr |
Friends | |
class | __staticsystemStringMgr |
This class makes it possible to implement Unicode support on the user-side and not in Sword itself.
Definition at line 36 of file stringmgr.h.
sword::StringMgr::StringMgr | ( | ) | [protected] |
Default constructor.
Protected to make instances on user side impossible, because this is a Singleton
static void sword::StringMgr::setSystemStringMgr | ( | StringMgr * | newStringMgr | ) | [static] |
static StringMgr* sword::StringMgr::getSystemStringMgr | ( | ) | [static] |
static bool sword::StringMgr::hasUTF8Support | ( | ) | [inline, static] |
Checks whether Utf8 support is available.
Override the function supportsUnicode() to tell whether your implementation has utf8 support.
Definition at line 53 of file stringmgr.h.
virtual char* sword::StringMgr::upperUTF8 | ( | char * | text, | |
unsigned int | max = 0 | |||
) | const [virtual] |
Converts the param to an upper case Utf8 string.
text | The text encoded in utf8 which should be turned into an upper case string | |
max | Only change max chars |
virtual char* sword::StringMgr::upperLatin1 | ( | char * | text, | |
unsigned int | max = 0 | |||
) | const [virtual] |
Converts the param to an uppercase latin1 string.
text | The text encoded in latin1 which should be turned into an upper case string |
The SWORD Project; P. O. Box 2528; Tempe, AZ 85280-2528 USA |