#include <String.h>

Public Member Functions | |
| TString () | |
| TString (const wchar_t *data) | |
| TString (const char *data) | |
| TString (wchar_t wcChar, Uint uiCount=1) | |
| TString (char cChar, Uint uiCount=1) | |
| TString (const TString &strString) | |
| TString (const IString &strString) | |
| TString (const IString *pString) | |
| TString (Int32 lValue) | |
| TString (Int64 ldValue) | |
| TString (int iValue) | |
| TString (Uint32 ulValue) | |
| TString (Uint64 uldValue) | |
| TString (unsigned int uiValue) | |
| TString (Float fValue) | |
| TString (Float fValue, Uint uiDigits) | |
| TString (bool bValue) | |
| virtual | ~TString () |
| TString & | operator= (const TString &rInstr) |
| TString & | operator= (const IString &rInstr) |
| TString & | operator= (const IString *pInstr) |
| TString & | operator= (const wchar_t *pData) |
| TString & | operator= (const Int iData) |
| TString & | operator= (const int iData) |
| TString & | operator= (const Uint uiData) |
| TString & | operator= (const unsigned int uiData) |
| TString & | operator= (const Float fData) |
| TString & | operator= (const char *pData) |
| TString & | operator= (bool bData) |
| bool | operator== (const TString &rInstr) const |
| bool | operator== (const IString &rInstr) const |
| bool | operator== (const IString *pInstr) const |
| bool | operator== (const wchar_t *pInbuffer) const |
| bool | operator== (const char *pInbuffer) const |
| bool | operator== (const Float fData) const |
| bool | operator== (const Int iData) const |
| bool | operator== (const int iData) const |
| bool | operator== (const Uint uiData) const |
| bool | operator== (const unsigned int uiData) const |
| bool | operator== (bool bData) const |
| TString | operator+ (const TString &rInstr) const |
| TString | operator+ (const IString &rInstr) const |
| TString | operator+ (const wchar_t *pInbuffer) const |
| TString | operator+ (const char *pInbuffer) const |
| TString | operator+ (const Int iInval) const |
| TString | operator+ (const int iInval) const |
| TString | operator+ (const Uint uiInval) const |
| TString | operator+ (const unsigned int uiInval) const |
| TString | operator+ (const Float fInval) const |
| bool | operator!= (const TString &rInstr) const |
| bool | operator!= (const IString &rInstr) const |
| bool | operator!= (const IString *pInstr) const |
| bool | operator!= (const wchar_t *pInbuffer) const |
| bool | operator!= (const char *pInbuffer) const |
| bool | operator!= (const Float fData) const |
| bool | operator!= (const Int iData) const |
| bool | operator!= (const int iData) const |
| bool | operator!= (const Uint uiData) const |
| bool | operator!= (const unsigned int uiData) const |
| bool | operator!= (const bool bData) const |
| TString & | operator+= (const TString &rInstr) |
| TString & | operator+= (const IString &rInstr) |
| TString & | operator+= (const wchar_t *pInbuffer) |
| TString & | operator+= (const char *pInbuffer) |
| TString & | operator+= (const Int iInval) |
| TString & | operator+= (const int iInval) |
| TString & | operator+= (const Uint uiInval) |
| TString & | operator+= (const unsigned int uiInval) |
| TString & | operator+= (const Float fInval) |
| wchar_t & | operator[] (Int iIndex) |
| bool | operator< (const TString &rInStr) const |
| bool | operator<= (const TString &rInStr) const |
| bool | operator> (const TString &rInStr) const |
| bool | operator>= (const TString &rInStr) const |
| bool | containsChar (const wchar_t wcChar) const |
| bool | containsCharOf (const wchar_t *wcChars) const |
| Int | getFirstPosOf (const wchar_t *wcChars) const |
| Int | indexOf (wchar_t wcChar) const |
| TString | deleteSubString (Int iStartIndex, Int iEndIndex=LONG_MAX) const |
| TString | getSubString (Int iStartIndex, Int iEndIndex=LONG_MAX) const |
| TString | getLeft (Int iCharCount) const |
| TString | getRight (Int iCharCount) const |
| TString | deleteLeft (Int iCharCount) const |
| TString | deleteRight (Int iCharCount) const |
| Int | getSubStringCount (const IString &rSubstring) const |
| TString | insert (Int iIndex, const IString &rStrToInsert) const |
| TString | insert (Int iIndex, const TString &rStrToInsert) const |
| TString | remove (const IString &rToRemove, Int *pReplaces=NULL) const |
| TString | remove (const TString &strToRemove, Int *pReplaces=NULL) const |
| TString | removeFirst (const IString &rToRemove) const |
| TString | removeFirst (const TString &rToRemove) const |
| TString | replace (const IString &rToRemove, const IString &rReplace, Int *pReplaces=NULL) const |
| TString | replace (const TString &rToRemove, const TString &rReplace, Int *pReplaces=NULL) const |
| TString | replaceFirst (const IString &rToRemove, const IString &rReplace) const |
| TString | replaceFirst (const TString &rToRemove, const TString &rReplace) const |
| TString | toUpperCase () const |
| TString | toLowerCase () const |
| TString | trim () const |
| TString | trimLeft () const |
| TString | trimRight () const |
| TString | terminated (const IString &rTermination) const |
| TString | terminated (const TString &rTermination) const |
| TString | enclosed (const IString &rEnclosure) const |
| TString | enclosed (const TString &rEnclosure) const |
| TString | enquoted () const |
| Int64 | getHash () const |
| virtual const wchar_t *MQUALIFIER | c_bstr () const |
| virtual const char *MQUALIFIER | c_str (bool *pError) const |
| virtual Float MQUALIFIER | toFloat (Float fPredef=0.0, bool *pbError=NULL) const |
| virtual Int MQUALIFIER | toInt (Int iPredef=0, bool *pbError=NULL) const |
| virtual Uint MQUALIFIER | toUint (Uint uiPredef=0, bool *pbError=NULL) const |
| virtual Timeval MQUALIFIER | toTimeval (Timeval tmPredef=0, bool *pbError=NULL) const |
| virtual bool MQUALIFIER | toBool (bool bPredef=false, bool *pbError=NULL) const |
| virtual bool MQUALIFIER | isFloat () const |
| virtual bool MQUALIFIER | isInt () const |
| virtual bool MQUALIFIER | isBool () const |
| virtual bool MQUALIFIER | equals (const wchar_t *pInbuffer, bool bIgnoreCase=false) const |
| virtual bool MQUALIFIER | equalsStr (const IString &rInstr, bool bIgnoreCase=false) const |
| virtual void MQUALIFIER | concat (const wchar_t *pInbuffer) |
| virtual void MQUALIFIER | concatStr (const IString &rInstr) |
| virtual void MQUALIFIER | assign (const wchar_t *pInbuffer) |
| virtual void MQUALIFIER | assignStr (const IString &rInstr) |
| virtual Int MQUALIFIER | getSize () const |
| virtual wchar_t MQUALIFIER | getChar (Int iIndex) const |
| virtual Int MQUALIFIER | getFirstPos (const wchar_t *pSubBuffer) const |
| virtual Int MQUALIFIER | getFirstPosStr (const IString &rSubString) const |
| virtual Int MQUALIFIER | getLastPos (const wchar_t *pSubBuffer) const |
| virtual Int MQUALIFIER | getLastPosStr (const IString &rSubString) const |
| virtual void MQUALIFIER | clear () |
| virtual bool MQUALIFIER | isEmpty () const |
| virtual bool MQUALIFIER | endsWith (const wchar_t *pString) const |
| virtual bool MQUALIFIER | endsWithStr (const IString &rString) const |
| virtual bool MQUALIFIER | startsWith (const wchar_t *pString) const |
| virtual bool MQUALIFIER | startsWithStr (const IString &rString) const |
| virtual Int MQUALIFIER | compareTo (const IString &rString) const |
| virtual bool MQUALIFIER | contains (const wchar_t *pSubString) const |
| virtual bool MQUALIFIER | containsStr (const IString &rSubString) const |
Static Public Member Functions | |
| static TString | formatFloat (Float fValue, Float fRoundPrecision=0, Uint uiTailingZeros=0, Uint uiLeadingZeros=1) |
| static TString | formatInt (Int iValue, Uint uiLeadingZeros) |
| static TString | format (const char *pcFormat,...) |
| static TString | format (const wchar_t *pwcFormat,...) |
| static TString | format (const IString &rFormat,...) |
| static TString | formatV (const char *pcFormat, va_list Arg) |
| static TString | formatV (const wchar_t *pwcFormat, va_list Arg) |
| static TString | formatV (const IString &rFormat, va_list Arg) |
| static TString | transcode (const IByteArray &list) |
| static TByteArray | transcode (const TString &rValue, bool bAsWideChar) |
| static TByteArray | transcode (const IString &rValue, bool bAsWideChar) |
| static TString | trimExt (const IString &rSource, const IString &rChars, bool bLeft=true, bool bRight=true) |
Static Protected Member Functions | |
| static TString | convertDouble (const Float &rfValue, Int iDigit=15) |
| zeus::TString::TString | ( | ) | [inline] |
Creates an empty string
| zeus::TString::TString | ( | const wchar_t * | pData | ) | [inline] |
Creates a string out of a wide char array. The array must be NULL terminated
| pData | : wide array containing the data |
| TString::TString | ( | const char * | pData | ) |
Creates a string out of a regular char array. The array must be NULL terminated
| pData | : char array containing the data |
| TString::TString | ( | wchar_t | wcChar, | |
| Uint | uiCount = 1 | |||
| ) |
Creates a string with n-wide characters
| wcChar | : wide character | |
| uiCount | : number of repetitions |
| TString::TString | ( | char | cChar, | |
| Uint | uiCount = 1 | |||
| ) |
Creates a string with n-characters
| cChar | : Character | |
| uiCount | : number of repetitions |
| zeus::TString::TString | ( | const TString & | rString | ) | [inline] |
Copy constructor
| rString | : string to copy |
| zeus::TString::TString | ( | const IString & | rString | ) | [inline] |
Creates a string out of an other string by interface.
| rString | : string to copy |
| TString::TString | ( | const IString * | pString | ) |
Konstruktor.
| pString | : String Objekt. Die Daten werden in das neue Objekt kopiert. |
| TString::TString | ( | Int32 | lValue | ) |
Creates a new string out of a int32 value.
| lValue | : int32 value |
| TString::TString | ( | Int64 | ldValue | ) |
Creates a new string out of a int64 value.
| lValue | : int32 value |
| TString::TString | ( | int | iValue | ) |
Creates a new string out of a int value.
| iValue | : int value |
| TString::TString | ( | Uint32 | ulValue | ) |
Creates a new string out of a unsigned int32 value.
| ulValue | : Uint32 value |
| TString::TString | ( | Uint64 | uldValue | ) |
Creates a new string out of a unsigned long 64 value.
| uldValue | : unsigned long 64 value |
| TString::TString | ( | unsigned int | uiValue | ) |
Creates a new string out of a unsigned int value.
| uiValue | : unsigned int value |
| TString::TString | ( | Float | fValue | ) |
Konstruktor.
| fValue | : float value |
| TString::TString | ( | Float | fValue, | |
| Uint | uiDigits | |||
| ) |
Konstruktor.
| fValue | : double value | |
| uiDigits | : Digits to convert |
| TString::TString | ( | bool | bValue | ) |
Konstruktor.
| bValue | : boolean value |
| virtual zeus::TString::~TString | ( | ) | [inline, virtual] |
Destroys the string and its arrays
| TString TString::formatFloat | ( | Float | fValue, | |
| Float | fRoundPrecision = 0, |
|||
| Uint | uiTailingZeros = 0, |
|||
| Uint | uiLeadingZeros = 1 | |||
| ) | [static] |
Converts a float value into a string value using a special format
| TString TString::formatInt | ( | Int | iValue, | |
| Uint | uiLeadingZeros | |||
| ) | [static] |
Converts a int value into a string value using a special format
| TString zeus::TString::format | ( | const char * | pcFormat, | |
| ... | ||||
| ) | [inline, static] |
sets a formated string using the standard C formatting of string. See also std::sprintf and std::wsprintf
| TString zeus::TString::format | ( | const wchar_t * | pwcFormat, | |
| ... | ||||
| ) | [inline, static] |
sets a formated string using the standard C formatting of string. See also std::sprintf and std::wsprintf
sets a formated string using the standard C formatting of string. See also std::sprintf and std::wsprintf
| TString TString::formatV | ( | const char * | pcFormat, | |
| va_list | Arg | |||
| ) | [static] |
sets a formated string using the standard C formatting of string. See also std::vsprintf and std::vwsprintf
| TString TString::formatV | ( | const wchar_t * | pwcFormat, | |
| va_list | Arg | |||
| ) | [static] |
sets a formated string using the standard C formatting of string. See also std::vsprintf and std::vwsprintf
sets a formated string using the standard C formatting of string. See also std::vsprintf and std::vwsprintf
| TString TString::transcode | ( | const IByteArray & | rList | ) | [static] |
Converts a array of bytes to a string
| rList | : Byte array to convert into a string |
| TByteArray zeus::TString::transcode | ( | const TString & | rValue, | |
| bool | bAsWideChar | |||
| ) | [inline, static] |
Converts a string into a array of bytes
| TByteArray TString::transcode | ( | const IString & | rValue, | |
| bool | bAsWideChar | |||
| ) | [static] |
Converts a string into a array of bytes
| rValue | : String value to convert into a byte array | |
| bAsWideChar | : Flag if the byte array will represent the ISO or UNICODE data of the string. True means UNICODE. |
| TString TString::trimExt | ( | const IString & | rSource, | |
| const IString & | rChars, | |||
| bool | bLeft = true, |
|||
| bool | bRight = true | |||
| ) | [static] |
This method trims the string. All leading or ending characters listed in parameter rChars are removed
| rSource | : Source string | |
| rChars | : List of characters to remove | |
| bLeft | : Flag if the left side must be trimmed | |
| bRight | : Flag if the right side must be trimmed |
Copy operator. An other string is copied into this string object
| rInstr | : object to copy |
Copy operator. An other string is copied into this string object
| rInstr | : object to copy |
Assignment operator. Another string is copied into this string object
| pInstr | : Pointer to object to assign |
| TString & zeus::TString::operator= | ( | const wchar_t * | pData | ) | [inline] |
Copy operator. A wide array is copied into this string object
| pData | : wide array to copy |
| TString & zeus::TString::operator= | ( | const Int | iData | ) | [inline] |
This assigns a int value to the string object
| iData | : Value to assign |
| TString & zeus::TString::operator= | ( | const int | iData | ) | [inline] |
This assigns a int value to the string object
| iData | : Value to assign |
| TString & zeus::TString::operator= | ( | const Uint | uiData | ) | [inline] |
This assigns a unsigned int value to the string object
| uiData | : Value to assign |
| TString & zeus::TString::operator= | ( | const unsigned int | uiData | ) | [inline] |
This assigns a unsigned int value to the string object
| uiData | : Value to assign |
| TString & zeus::TString::operator= | ( | const Float | fData | ) | [inline] |
This assigns a float value to the string object
| fData | : Value to assign |
| TString & zeus::TString::operator= | ( | const char * | pData | ) | [inline] |
This assigns a 8bit array to the string object
| pData | : array to assign |
| TString & zeus::TString::operator= | ( | bool | bData | ) | [inline] |
This assigns a boolean value to the string object
| bData | : boolean value to assign |
| bool zeus::TString::operator== | ( | const TString & | rInstr | ) | const [inline] |
Vergleichsoperator. Der wchar_t-Array wird mit dem des Objekts verglichen.
| rInstr | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator== | ( | const IString & | rInstr | ) | const [inline] |
Vergleichsoperator. Der wchar_t-Array wird mit dem des Objekts verglichen.
| rInstr | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator== | ( | const IString * | pInstr | ) | const [inline] |
Vergleichsoperator fuer IString*.
| pInstr | : Zeiger auf zu vergleichendes Stringobjekt |
| bool zeus::TString::operator== | ( | const wchar_t * | pInbuffer | ) | const [inline] |
Vergleichsoperator. Der wchar_t-Array wird mit dem des Objekts verglichen.
| pInbuffer | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator== | ( | const char * | inbuffer | ) | const [inline] |
Vergleichsoperator. Der char-Array wird mit dem des Objekts verglichen.
| inbuffer | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator== | ( | const Float | fData | ) | const [inline] |
Vergleichsoperator: Der einen double Wert mit dem String vergleicht
| fData | : Zuweisungsparameter |
| bool zeus::TString::operator== | ( | const Int | iData | ) | const [inline] |
equals operator check if the string is equal to an int
| iData | : value to check |
| bool zeus::TString::operator== | ( | const int | iData | ) | const [inline] |
equals operator check if the string is equal to an int
| iData | : value to check |
| bool zeus::TString::operator== | ( | const Uint | uiData | ) | const [inline] |
equals operator check if the string is equal to an unsigned int
| uiData | : value to check |
| bool zeus::TString::operator== | ( | const unsigned int | uiData | ) | const [inline] |
equals operator check if the string is equal to an unsigned int
| uiData | : value to check |
| bool zeus::TString::operator== | ( | bool | bData | ) | const [inline] |
Check the equality to a boolean value.
| bData | : boolean value for comparison. |
Hinzufuegen eines Strings
| rInstr | : Stringobjekt |
Hinzufuegen eines Strings
| rInstr | : Stringobjekt |
| TString zeus::TString::operator+ | ( | const wchar_t * | pInbuffer | ) | const [inline] |
Hinzufuegen eines wchar_t-Arrays
| pInbuffer | : wchar_t Buffer welcher hinzugefuegt wird |
| TString zeus::TString::operator+ | ( | const char * | pInbuffer | ) | const [inline] |
Hinzufuegen eines char-Arrays
| pInbuffer | : char Buffer welcher hinzugefuegt wird |
| TString zeus::TString::operator+ | ( | const Int | iInval | ) | const [inline] |
adds an int value to the string
| iInval | : Value to add |
| TString zeus::TString::operator+ | ( | const int | iInval | ) | const [inline] |
adds an int value to the string
| iInval | : Value to add |
| TString zeus::TString::operator+ | ( | const Uint | uiInval | ) | const [inline] |
adds an unsigned int value to the string
| uiInval | : Value to add |
| TString zeus::TString::operator+ | ( | const unsigned int | uiInval | ) | const [inline] |
adds an unsigned int value to the string
| uiInval | : Value to add |
| TString zeus::TString::operator+ | ( | const Float | fInval | ) | const [inline] |
Hinzufuegen eines float-Values
| fInval | : float-Value |
| bool zeus::TString::operator!= | ( | const TString & | rInstr | ) | const [inline] |
Vergleichsoperator. Der wchar_t-Array wird mit dem des Objekts verglichen.
| rInstr | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator!= | ( | const IString & | rInstr | ) | const [inline] |
Vergleichsoperator. Der wchar_t-Array wird mit dem des Objekts verglichen.
| rInstr | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator!= | ( | const IString * | pInstr | ) | const [inline] |
Vergleichsoperator fuer IString*.
| pInstr | : Zeiger auf zu vergleichendes Stringobjekt |
| bool zeus::TString::operator!= | ( | const wchar_t * | pInbuffer | ) | const [inline] |
Vergleichsoperator. Der wchar_t-Array wird mit dem des Objekts verglichen.
| pInbuffer | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator!= | ( | const char * | pInbuffer | ) | const [inline] |
Vergleichsoperator. Der char-Array wird mit dem des Objekts verglichen.
| pInbuffer | : zu vergleichendes Stringobjekt |
| bool zeus::TString::operator!= | ( | const Float | fData | ) | const [inline] |
Vergleichsoperator: Der einen float Wert mit dem String vergleicht
| fData | : Zuweisungsparameter |
| bool zeus::TString::operator!= | ( | const Int | iData | ) | const [inline] |
Checks if the string is not equal to an int value
| iData | : value to check |
| bool zeus::TString::operator!= | ( | const int | iData | ) | const [inline] |
Checks if the string is not equal to an int value
| iData | : value to check |
| bool zeus::TString::operator!= | ( | const Uint | uiData | ) | const [inline] |
Checks if the string is not equal to an unsigned int value
| uiData | : value to check |
| bool zeus::TString::operator!= | ( | const unsigned int | uiData | ) | const [inline] |
Checks if the string is not equal to an unsigned int value
| uiData | : value to check |
| bool zeus::TString::operator!= | ( | const bool | bData | ) | const [inline] |
Negation of operator==. /*
Concats a string with an other string
| rInstr | : string to concatenate |
Concats a string with an other string
| rInstr | : string to concatenate |
| TString & zeus::TString::operator+= | ( | const wchar_t * | pInbuffer | ) | [inline] |
Concats a string with a wide char buffer
| pInbuffer | : buffer |
| TString & zeus::TString::operator+= | ( | const char * | pInbuffer | ) | [inline] |
Concats a string with a char buffer
| pInbuffer | : buffer |
| TString & zeus::TString::operator+= | ( | const Int | iInval | ) | [inline] |
Concats a string with a int value
| iInval | : value |
| TString & zeus::TString::operator+= | ( | const int | iInval | ) | [inline] |
Concats a string with a int value
| iInval | : value |
| TString & zeus::TString::operator+= | ( | const Uint | uiInval | ) | [inline] |
Concats a string with a unsigned Int value
| iInval | : value |
| TString & zeus::TString::operator+= | ( | const unsigned int | uiInval | ) | [inline] |
Concats a string with a unsigned int value
| iInval | : value |
| TString & zeus::TString::operator+= | ( | const Float | fInval | ) | [inline] |
Concats a string with a float value
| fInval | : value |
| wchar_t & zeus::TString::operator[] | ( | Int | iIndex | ) | [inline] |
Klammeroperator: Zugriff auf ein bestimmtes Character im String
| index | : Zuweisungsparameter |
| bool zeus::TString::operator< | ( | const TString & | rInStr | ) | const [inline] |
compares lexicographically two strings and returns true if the this is smaller than the parameter rInStr.
| rInStr | : String to compare |
| true | : this is smaller | |
| false | : else |
| bool zeus::TString::operator<= | ( | const TString & | rInStr | ) | const [inline] |
compares lexicographically two strings and returns true if the this is smaller than or equals the parameter rInStr.
| rInStr | : String to compare |
| true | : this is smaller or equal | |
| false | : else |
| bool zeus::TString::operator> | ( | const TString & | rInStr | ) | const [inline] |
compares lexicographically two strings and returns true if the this is bigger than the parameter rInStr.
| rInStr | : String to compare |
| true | : this is bigger | |
| false | : else |
| bool zeus::TString::operator>= | ( | const TString & | rInStr | ) | const [inline] |
compares lexicographically two strings and returns true if the this is bigger than or equals the parameter rInStr.
| rInStr | : String to compare |
| true | : this is bigger or equal | |
| false | : else |
| bool zeus::TString::containsChar | ( | const wchar_t | wcChar | ) | const [inline] |
Checks if a char is contained by the string
| wcChar | : Char to check |
| true | : char found | |
| false,: | No such char found |
| bool TString::containsCharOf | ( | const wchar_t * | wcChars | ) | const |
Checks if a char of an array of chars is contained by the string. Special case is handled if the set of chars is empty. The empty set is always a part of each set.
| wcChars | : array of chars to check (null terminated) |
| true | : char found | |
| false,: | No such char found |
| Int TString::getFirstPosOf | ( | const wchar_t * | wcChars | ) | const |
Get the first position for a set of characters.
| wcChars | [IN]: Set of chars to be searched for. |
| : | Position index of the first character found. |
| Int TString::indexOf | ( | wchar_t | wcChar | ) | const |
Returns the position index of a character inside the string
| TString TString::deleteSubString | ( | Int | iStartIndex, | |
| Int | iEndIndex = LONG_MAX | |||
| ) | const |
returns the result of a substring remove.
| iStartIndex | : Start index | |
| iEndIndex | : end index |
| TString TString::getSubString | ( | Int | iStartIndex, | |
| Int | iEndIndex = LONG_MAX | |||
| ) | const |
Ermitteln des Substring
| iStartIndex | : Start index | |
| iEndIndex | : end index |
| TString zeus::TString::getLeft | ( | Int | iCharCount | ) | const [inline] |
This method returns the left substring (begins at index 0 to index iCharCount -1
| TString zeus::TString::getRight | ( | Int | iCharCount | ) | const [inline] |
This method returns the right substring (begins at index size- iCharCount to size-1
| TString zeus::TString::deleteLeft | ( | Int | iCharCount | ) | const [inline] |
This method deletes the left substring (begins at index 0 to index iCharCount -1
| TString zeus::TString::deleteRight | ( | Int | iCharCount | ) | const [inline] |
This method deletes the right substring (begins at index size - ulCharCount to size-1
| Int TString::getSubStringCount | ( | const IString & | rSubstring | ) | const |
This method counts the substrings of this string
| strSubstring | : Substring |
inserts a string at the position index and returns the new string
| iIndex | : position index to insert the string | |
| rStrToInsert | : String to insert |
inserts a string at the position index and returns the new string
| lIndex | : position index to insert the string | |
| rStrToInsert | : String to insert |
This method removes all substrings from this string and returns the new string
| rToRemove | : Substring to remove | |
| pReplaces | : If pointer is valid, the number of replaces are returned |
This method removes all substrings from this string and returns the new string
| rToRemove | : Substring to remove | |
| pReplaces | : If pointer is valid, the number of replaces are returned |
This method removes the first substrings found from this string and returns the new string
| rToRemove | : Substring to remove |
This method removes the first substrings found from this string and returns the new string
| rToRemove | : Substring to remove |
| TString TString::replace | ( | const IString & | rToRemove, | |
| const IString & | rReplace, | |||
| Int * | pReplaces = NULL | |||
| ) | const |
This method works like replace() but it will replace all substrings inside this string.
| rToRemove | : Substring to remove | |
| rReplace | : String for replacing | |
| pReplaces | : If pointer is valid, the number of replaces are returned |
| TString zeus::TString::replace | ( | const TString & | rToRemove, | |
| const TString & | rReplace, | |||
| Int * | pReplaces = NULL | |||
| ) | const [inline] |
This method works like replace() but it will replace all substrings inside this string.
| rToRemove | : Substring to remove | |
| strReplace | : String for replacing | |
| pReplaces | : If pointer is valid, the number of replaces are returned |
This method replaces a substring with a new string. It can also be used just for removing a substring by calling this method with an empty strReplace variable.
| rToRemove | : Substring to remove | |
| rReplace | : String for replaceing |
| TString zeus::TString::replaceFirst | ( | const TString & | rToRemove, | |
| const TString & | rReplace | |||
| ) | const [inline] |
This method replaces the first substring with a new string. It might be used just for removing a substring by calling this method with an empty strReplace variable.
| rToRemove | : Substring to remove | |
| rReplace | : String for replaceing |
| TString TString::toUpperCase | ( | ) | const |
Converts the string content to upper case letters
| TString TString::toLowerCase | ( | ) | const |
Converts the string content to lower case letters
| TString zeus::TString::trim | ( | ) | const [inline] |
This method trims the string. All leading or ending white spaces are removed.
| TString zeus::TString::trimLeft | ( | ) | const [inline] |
This method trims the string. All leading white spaces are removed.
| TString zeus::TString::trimRight | ( | ) | const [inline] |
This method trims the string. All ending white spaces are removed.
Returns a string terminated by strTermination, but does not add the termination if it already exists.
| rTermination | : String must end with this substring |
Overload the method terminated() for TString.
Returns a string enclosed by rEnclosure, but does not add the enclosure wherever it already exists.
| rEnclosure | : String must start and end with this substring |
Overload the method enclosed() for TString.
| TString zeus::TString::enquoted | ( | ) | const [inline] |
Returns a string enquoted by ", but does not add the quotes wherever they already exist.
| Int64 TString::getHash | ( | ) | const |
This method returns the hash of the unicode string
| const wchar_t *MQUALIFIER zeus::TString::c_bstr | ( | ) | const [inline, virtual] |
| const char *MQUALIFIER zeus::TString::c_str | ( | bool * | pError | ) | const [inline, virtual] |
| Float MQUALIFIER TString::toFloat | ( | Float | fPredef = 0.0, |
|
| bool * | pbError = NULL | |||
| ) | const [virtual] |
| Int MQUALIFIER TString::toInt | ( | Int | iPredef = 0, |
|
| bool * | pbError = NULL | |||
| ) | const [virtual] |
| Uint MQUALIFIER TString::toUint | ( | Uint | uiPredef = 0, |
|
| bool * | pbError = NULL | |||
| ) | const [virtual] |
| Timeval MQUALIFIER TString::toTimeval | ( | Timeval | tmPredef = 0, |
|
| bool * | pbError = NULL | |||
| ) | const [virtual] |
| bool MQUALIFIER TString::toBool | ( | bool | bPredef = false, |
|
| bool * | pbError = NULL | |||
| ) | const [virtual] |
| bool MQUALIFIER zeus::TString::isFloat | ( | ) | const [inline, virtual] |
| bool MQUALIFIER zeus::TString::isInt | ( | ) | const [inline, virtual] |
| bool MQUALIFIER zeus::TString::isBool | ( | ) | const [inline, virtual] |
| bool MQUALIFIER TString::equals | ( | const wchar_t * | pInbuffer, | |
| bool | bIgnoreCase = false | |||
| ) | const [virtual] |
| bool MQUALIFIER zeus::TString::equalsStr | ( | const IString & | rInstr, | |
| bool | bIgnoreCase = false | |||
| ) | const [inline, virtual] |
| void MQUALIFIER TString::concat | ( | const wchar_t * | pInbuffer | ) | [virtual] |
| void MQUALIFIER zeus::TString::concatStr | ( | const IString & | rInstr | ) | [inline, virtual] |
| void MQUALIFIER TString::assign | ( | const wchar_t * | pInbuffer | ) | [virtual] |
| void MQUALIFIER zeus::TString::assignStr | ( | const IString & | rInstr | ) | [inline, virtual] |
| Int MQUALIFIER zeus::TString::getSize | ( | ) | const [inline, virtual] |
| wchar_t MQUALIFIER zeus::TString::getChar | ( | Int | iIndex | ) | const [inline, virtual] |
| Int MQUALIFIER TString::getFirstPos | ( | const wchar_t * | pSubBuffer | ) | const [virtual] |
Die Suche nach dem SubString wurde nach dem Knuth-Morris-Pratt Verfahren implementiert. In einem Preprocessing-Verfahren wird aus dem gesuchten SubString eine Sprungtabelle erstellt. Je nach dem, wieviele Zeichen bei der Suche uebereinstimmten, kann direkt eine bestimmte Distanz gesprungen werden, falls das darauffolgende Zeichen nicht uebereinstimmt.
Preprocessing Algorithmus:
Initialisiere die Tabelle mit Sprungweite 1
Initialisiere die Vergleichsvariable k mit 0
Wiederhole solange bis Ende des SubStrings erreicht
Implements zeus::IString.
| Int MQUALIFIER zeus::TString::getFirstPosStr | ( | const IString & | rSubString | ) | const [inline, virtual] |
| Int MQUALIFIER TString::getLastPos | ( | const wchar_t * | pSubBuffer | ) | const [virtual] |
| Int MQUALIFIER zeus::TString::getLastPosStr | ( | const IString & | rSubString | ) | const [inline, virtual] |
| void MQUALIFIER zeus::TString::clear | ( | ) | [inline, virtual] |
| bool MQUALIFIER zeus::TString::isEmpty | ( | ) | const [inline, virtual] |
| bool MQUALIFIER zeus::TString::endsWith | ( | const wchar_t * | pString | ) | const [inline, virtual] |
| bool MQUALIFIER TString::endsWithStr | ( | const IString & | rString | ) | const [virtual] |
| bool MQUALIFIER zeus::TString::startsWith | ( | const wchar_t * | pString | ) | const [inline, virtual] |
| bool MQUALIFIER TString::startsWithStr | ( | const IString & | rString | ) | const [virtual] |
| Int MQUALIFIER TString::compareTo | ( | const IString & | rString | ) | const [virtual] |
| bool MQUALIFIER zeus::TString::contains | ( | const wchar_t * | pSubString | ) | const [inline, virtual] |
| bool MQUALIFIER zeus::TString::containsStr | ( | const IString & | rSubString | ) | const [inline, virtual] |
| TString TString::convertDouble | ( | const Float & | rfValue, | |
| Int | iDigit = 15 | |||
| ) | [static, protected] |
Konvertieren eines Doublewerts in einen StString
| fValue | : double Wert | |
| iDigit | : Number of digits |