• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

TString Class Reference

TString is a simple string class which works on wchar_t data. More...

#include <tstring.h>

List of all members.


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 (  ) 

Create an empty TString.

Definition at line 43 of file tstring.cpp.

TString::TString ( const TString &  s  ) 

Create a copy of another TString.

Definition at line 49 of file tstring.cpp.

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  ) 

Create a new TString instance as a copy of a QString.

Definition at line 68 of file tstring.cpp.

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.

TString & TString::operator= ( const QString &  s  ) 

Definition at line 103 of file tstring.cpp.

TString & TString::operator= ( const TCHAR *  s  ) 

Definition at line 87 of file tstring.cpp.

TString & TString::operator= ( const TString &  s  ) 

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:
  • tstring.h
  • tstring.cpp

NepomukDaemons

Skip menu "NepomukDaemons"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal