NepomukDaemons
TString Class Reference
TString is a simple string class which works on wchar_t data. More...
#include <tstring.h>
Public Member Functions | |
const TCHAR * | data () const |
bool | isEmpty () const |
int | length () const |
operator QString () const | |
bool | operator!= (const QString &) const |
bool | operator!= (const TString &) const |
TString & | operator= (const QString &) |
TString & | operator= (const TCHAR *) |
TString & | operator= (const TString &) |
bool | operator== (const QString &) const |
bool | operator== (const TString &) const |
QString | toQString () const |
TString (const QString &) | |
TString (const TCHAR *data, bool wrap=false) | |
TString (const TString &) | |
TString () | |
~TString () | |
Static Public Member Functions | |
static TString | fromUtf8 (const char *data) |
Detailed Description
TString is a simple string class which works on wchar_t data.Its main purpose it to provide conversion from and to QString.
Definition at line 35 of file tstring.h.
Constructor & Destructor Documentation
TString::TString | ( | ) |
TString::TString | ( | const TString & | s | ) |
TString::TString | ( | const TCHAR * | data, | |
bool | wrap = false | |||
) |
Create a new TString instance.
- Parameters:
-
data The string data to be used. wrap If false the data will be copied for the new string instance. If true the new TString will act as a wrapper around data.
Definition at line 55 of file tstring.cpp.
TString::TString | ( | const QString & | s | ) |
TString::~TString | ( | ) |
Definition at line 75 of file tstring.cpp.
Member Function Documentation
const TCHAR * TString::data | ( | ) | const |
The raw string data.
It remains valid until the string is modified or deleted.
- Returns:
- the raw string data or 0 if the string is empty.
Definition at line 128 of file tstring.cpp.
TString TString::fromUtf8 | ( | const char * | data | ) | [static] |
Definition at line 179 of file tstring.cpp.
bool TString::isEmpty | ( | ) | const |
Definition at line 116 of file tstring.cpp.
int TString::length | ( | ) | const |
Definition at line 122 of file tstring.cpp.
TString::operator QString | ( | ) | const |
Definition at line 134 of file tstring.cpp.
bool TString::operator!= | ( | const QString & | other | ) | const |
Definition at line 173 of file tstring.cpp.
bool TString::operator!= | ( | const TString & | other | ) | const |
Definition at line 167 of file tstring.cpp.
Definition at line 103 of file tstring.cpp.
TString & TString::operator= | ( | const TCHAR * | s | ) |
Definition at line 87 of file tstring.cpp.
Definition at line 80 of file tstring.cpp.
bool TString::operator== | ( | const QString & | other | ) | const |
Definition at line 161 of file tstring.cpp.
bool TString::operator== | ( | const TString & | other | ) | const |
Definition at line 155 of file tstring.cpp.
QString TString::toQString | ( | ) | const |
Definition at line 140 of file tstring.cpp.
The documentation for this class was generated from the following files: