Simple STL-based string class. More...
#include <gui_tk.h>
Classes | |
class | Native |
Simple pointer encapsulation class for memory management. More... | |
class | NativeArray |
Simple pointer encapsulation class for memory management. More... | |
class | NativeObject |
Public Member Functions | |
template<typename STR > | |
String (const STR &src) | |
Allocate a new String initialized from native string. | |
template<class InputIterator > | |
String (InputIterator a, InputIterator b) | |
Taken from STL. | |
String (const String &src) | |
Copy-constructor. | |
String () | |
Allocate a new String. | |
~String () | |
Deallocate a String. | |
template<typename T > | |
operator T () const | |
Convert to native representation. | |
template<typename T > | |
bool | operator== (const T &src) const |
Compare with native representation. | |
bool | operator== (const String &src) const |
Compare with other Strings. | |
template<typename T > | |
bool | operator!= (const T &src) const |
Compare with native representation. | |
bool | operator!= (const String &src) const |
Compare with other Strings. | |
String & | operator= (const String &) |
Explicit declaration of default = operator. | |
Protected Member Functions | |
void | addNative (Native *dest) const |
Manage a native string's memory. | |
Friends | |
class | NativeString |
Simple STL-based string class.
This is intended as internal helper class to allow gui::tk to work with any kind of string objects. While you can use this in normal application code, you should better use the string class of your application framework (like Qt). If you don't have any, use std::string.
It supports arbitrary characters, no character set is implied. Conversion from/to usual string types like char*
is automatic but not thread-safe for non-class types.
GUI::String::operator T | ( | ) | const [inline] |