K3d::K3dString Class Reference

#include <K3dString.h>

Inheritance diagram for K3d::K3dString:

KjServerThread List of all members.

Public Member Functions

 K3dString ()
 K3dString (const char *_str)
 K3dString (const K3dString &_rStr)
 K3dString (const TString &_rStr)
 ~K3dString ()
size_t Find (const char *_str)
 Find string.
size_t RFind (const char *_str)
 Reverse find string.
TStringSetNum (int _iVal)
 Convert int to string.
TStringSetNum (bool _bVal)
 Convert bool to string.
TStringSetNum (unsigned int _uiVal)
 Convert unsigned to string.
TStringSetNum (float _fVal)
 Convert float to string.
K3dStringGetStrTok (K3dString &_strOut, const K3dString &_strSign)
 Finding sign _strSign and cuts to the two strings (front and back strings of sign _strSign).
K3dStringLeft (size_t _iPos)
 Returns a substring that contains the _iPos leftmost characters of the string.
K3dStringRight (size_t _iPos)
 Returns a substring that contains the _iPos rightmost characters of the string.
TStringToLower ()
 Convert string to lower case.
void StrLwr (const char *_str)
 Convert apper case string to the lower case string.
void AddNumber (const int _iVal)
 Add number behind string.
bool & GetFoundToken ()
void GetString (const char *_strOut)
 Get "const char*" string.
int ToInt ()
 Convert string to int.
float ToFloat ()
 Convert string to float.
double ToDouble ()
 Convert string to double.
TStringGetString ()
 Get std::string.
const TStringGetString () const
 Get std::string.
void SetString (const char *_str)
 Set "const char*" string.
K3dStringoperator= (K3dString &_rStr)
K3dStringoperator= (const K3dString &_rStr)
K3dStringoperator= (const char *_str)
K3dStringoperator+= (const K3dString &_rStr)
K3dStringoperator+= (const char *_str)
char & operator[] (int _iPos)
bool operator!= (const char *_str)
bool operator!= (const char *_str) const
bool operator!= (const K3dString &_str)
bool operator== (const char *_str)
bool operator== (const char *_str) const
bool operator== (K3dString &_str)
bool operator== (K3dString &_str) const
void Erase (size_t _uiPos, size_t _uiNumPos)
size_t GetSize ()
 Get string size.
size_t GetLength ()
 Get string length.
size_t Find (const K3dString &_str)
 Searche for the first occurrence of the substring _str.
void Clear ()
 Clear current string.

Private Attributes

TString m_str
bool m_bFoundToken
 Found token in GetStrTok() function ?

Detailed Description

Working with strigs

Author:
Jan Koci
Since:
0.1.0.0

Definition at line 74 of file K3dString.h.


Constructor & Destructor Documentation

K3d::K3dString::K3dString  )  [inline]
 

Definition at line 79 of file K3dString.h.

K3d::K3dString::K3dString const char *  _str  )  [inline]
 

Definition at line 82 of file K3dString.h.

References m_str.

K3d::K3dString::K3dString const K3dString _rStr  )  [inline]
 

Definition at line 94 of file K3dString.h.

K3d::K3dString::K3dString const TString _rStr  )  [inline]
 

Definition at line 98 of file K3dString.h.

References m_str.

K3d::K3dString::~K3dString  )  [inline]
 

Definition at line 102 of file K3dString.h.

References m_str.


Member Function Documentation

void K3dString::AddNumber const int  _iVal  ) 
 

Add number behind string.

Parameters:
_iVal Integer value

Definition at line 129 of file K3dString.cpp.

References m_str, and SetNum().

void K3d::K3dString::Clear  )  [inline]
 

Clear current string.

Definition at line 331 of file K3dString.h.

References m_str.

void K3d::K3dString::Erase size_t  _uiPos,
size_t  _uiNumPos
[inline]
 

Definition at line 305 of file K3dString.h.

References m_str.

size_t K3d::K3dString::Find const K3dString _str  )  [inline]
 

Searche for the first occurrence of the substring _str.

Parameters:
_str Input string
Return values:
size_t Position in string. If not found, return the value string::npos

Definition at line 325 of file K3dString.h.

References GetString(), and m_str.

size_t K3dString::Find const char *  _str  ) 
 

Find string.

Parameters:
_str Input string
Return values:
size_t Position in string. If not found, return the value string::npos

Definition at line 68 of file K3dString.cpp.

References m_str.

Referenced by GetStrTok().

bool& K3d::K3dString::GetFoundToken  )  [inline]
 

Definition at line 120 of file K3dString.h.

References m_bFoundToken.

size_t K3d::K3dString::GetLength  )  [inline]
 

Get string length.

Definition at line 317 of file K3dString.h.

References m_str.

size_t K3d::K3dString::GetSize  )  [inline]
 

Get string size.

Definition at line 311 of file K3dString.h.

References m_str.

const TString& K3d::K3dString::GetString  )  const [inline]
 

Get std::string.

Return values:
m_str Reference to std::string

Definition at line 168 of file K3dString.h.

References m_str.

TString& K3d::K3dString::GetString  )  [inline]
 

Get std::string.

Return values:
m_str Reference to std::string

Definition at line 161 of file K3dString.h.

References m_str.

void K3d::K3dString::GetString const char *  _strOut  )  [inline]
 

Get "const char*" string.

Parameters:
_strOut IO String

Definition at line 127 of file K3dString.h.

References m_str.

Referenced by Find(), GetStrTok(), operator!=(), K3d::operator+(), operator+=(), operator=(), and operator==().

K3dString & K3dString::GetStrTok K3dString _strOut,
const K3dString _strSign
 

Finding sign _strSign and cuts to the two strings (front and back strings of sign _strSign).

Parameters:
_strOut Output right string back of sign _strSign
_strSign String sign
Return values:
QString Left string front of sign _strSign

Definition at line 174 of file K3dString.cpp.

References Find(), GetString(), Left(), m_bFoundToken, m_str, and Right().

K3dString & K3dString::Left size_t  _iPos  ) 
 

Returns a substring that contains the _iPos leftmost characters of the string.

Parameters:
_iPos Leftmost characters of the string

Definition at line 138 of file K3dString.cpp.

References m_str.

Referenced by GetStrTok().

bool K3d::K3dString::operator!= const K3dString _str  )  [inline]
 

Definition at line 240 of file K3dString.h.

References GetString(), and m_str.

bool K3d::K3dString::operator!= const char *  _str  )  const [inline]
 

Definition at line 227 of file K3dString.h.

References m_str.

bool K3d::K3dString::operator!= const char *  _str  )  [inline]
 

Definition at line 214 of file K3dString.h.

References m_str.

K3dString& K3d::K3dString::operator+= const char *  _str  )  [inline]
 

Definition at line 203 of file K3dString.h.

References m_str.

K3dString& K3d::K3dString::operator+= const K3dString _rStr  )  [inline]
 

Definition at line 197 of file K3dString.h.

References GetString(), and m_str.

K3dString& K3d::K3dString::operator= const char *  _str  )  [inline]
 

Definition at line 191 of file K3dString.h.

References m_str.

K3dString& K3d::K3dString::operator= const K3dString _rStr  )  [inline]
 

Definition at line 185 of file K3dString.h.

References GetString(), and m_str.

K3dString& K3d::K3dString::operator= K3dString _rStr  )  [inline]
 

Definition at line 179 of file K3dString.h.

References GetString(), and m_str.

bool K3d::K3dString::operator== K3dString _str  )  const [inline]
 

Definition at line 292 of file K3dString.h.

References GetString(), and m_str.

bool K3d::K3dString::operator== K3dString _str  )  [inline]
 

Definition at line 279 of file K3dString.h.

References GetString(), and m_str.

bool K3d::K3dString::operator== const char *  _str  )  const [inline]
 

Definition at line 266 of file K3dString.h.

References m_str.

bool K3d::K3dString::operator== const char *  _str  )  [inline]
 

Definition at line 253 of file K3dString.h.

References m_str.

char& K3d::K3dString::operator[] int  _iPos  )  [inline]
 

Definition at line 209 of file K3dString.h.

References m_str.

size_t K3dString::RFind const char *  _str  ) 
 

Reverse find string.

Parameters:
_str Input string
Return values:
size_t Position in string. If not found, return the value string::npos

Definition at line 76 of file K3dString.cpp.

References m_str.

K3dString & K3dString::Right size_t  _iPos  ) 
 

Returns a substring that contains the _iPos rightmost characters of the string.

Parameters:
_iPos Rrightmost characters of the string

Definition at line 155 of file K3dString.cpp.

References m_str.

Referenced by GetStrTok().

TString & K3dString::SetNum float  _fVal  ) 
 

Convert float to string.

Parameters:
_fVal Float value
Return values:
m_str std::string value

Definition at line 119 of file K3dString.cpp.

References m_str.

TString & K3dString::SetNum unsigned int  _uiVal  ) 
 

Convert unsigned to string.

Parameters:
_uiVal Unsigned int value
Return values:
m_str std::string value

Definition at line 109 of file K3dString.cpp.

References m_str.

TString & K3dString::SetNum bool  _bVal  ) 
 

Convert bool to string.

Parameters:
_bVal Bool value
Return values:
m_str std::string value

Definition at line 94 of file K3dString.cpp.

References m_str.

TString & K3dString::SetNum int  _iVal  ) 
 

Convert int to string.

Parameters:
_iVal Integer value
Return values:
m_str std::string value

Definition at line 84 of file K3dString.cpp.

References m_str.

Referenced by AddNumber().

void K3d::K3dString::SetString const char *  _str  )  [inline]
 

Set "const char*" string.

Definition at line 174 of file K3dString.h.

References m_str.

void K3dString::StrLwr const char *  _str  ) 
 

Convert apper case string to the lower case string.

Parameters:
_str Input string

Definition at line 53 of file K3dString.cpp.

References m_str, and ToLower().

double K3d::K3dString::ToDouble  )  [inline]
 

Convert string to double.

Definition at line 151 of file K3dString.h.

References m_str.

float K3d::K3dString::ToFloat  )  [inline]
 

Convert string to float.

Definition at line 142 of file K3dString.h.

References m_str.

int K3d::K3dString::ToInt  )  [inline]
 

Convert string to int.

Definition at line 133 of file K3dString.h.

References m_str.

TString & K3dString::ToLower  ) 
 

Convert string to lower case.

Return values:
m_str std::string value

Definition at line 45 of file K3dString.cpp.

References m_str.

Referenced by StrLwr().


Member Data Documentation

bool K3d::K3dString::m_bFoundToken [private]
 

Found token in GetStrTok() function ?

Definition at line 77 of file K3dString.h.

Referenced by GetFoundToken(), and GetStrTok().

TString K3d::K3dString::m_str [private]
 

Definition at line 76 of file K3dString.h.

Referenced by AddNumber(), Clear(), Erase(), Find(), GetLength(), GetSize(), GetString(), GetStrTok(), K3dString(), Left(), operator!=(), operator+=(), operator=(), operator==(), operator[](), RFind(), Right(), SetNum(), SetString(), StrLwr(), ToDouble(), ToFloat(), ToInt(), ToLower(), and ~K3dString().


The documentation for this class was generated from the following files:
Generated on Tue Jul 24 10:03:07 2007 for KjSslServer by  doxygen 1.4.6