ZeusBase-Library
2.0.4
|
#include <IString.hpp>
Public Member Functions | |
virtual const wchar_t *MQUALIFIER | c_bstr () const =0 |
virtual const char *MQUALIFIER | c_str (bool *pError) const =0 |
virtual Float64 MQUALIFIER | toFloat (Float64 dPreDef=0.0, bool *pbError=NULL) const =0 |
virtual Int MQUALIFIER | toInt (Int lPreDef=0, bool *pbError=NULL) const =0 |
virtual Uint MQUALIFIER | toUint (Uint uiPredef=0, bool *pbError=NULL) const =0 |
virtual Timeval MQUALIFIER | toTimeval (Timeval tmPredef=0, bool *pbError=NULL) const =0 |
virtual bool MQUALIFIER | toBool (bool bPredef=false, bool *pbError=NULL) const =0 |
virtual bool MQUALIFIER | isFloat () const =0 |
virtual bool MQUALIFIER | isInt () const =0 |
virtual bool MQUALIFIER | isBool () const =0 |
virtual bool MQUALIFIER | equals (const wchar_t *pInbuffer, bool bIgnoreCase=false) const =0 |
virtual bool MQUALIFIER | equalsStr (const IString &rInstr, bool bIgnoreCase=false) const =0 |
virtual void MQUALIFIER | concat (const wchar_t *pInbuffer)=0 |
virtual void MQUALIFIER | concatStr (const IString &rInstr)=0 |
virtual void MQUALIFIER | assign (const wchar_t *pInbuffer)=0 |
virtual void MQUALIFIER | assignStr (const IString &rInstr)=0 |
virtual Int MQUALIFIER | getSize () const =0 |
virtual wchar_t MQUALIFIER | getChar (Int iIndex) const =0 |
virtual Int MQUALIFIER | getFirstPos (const wchar_t *pSubBuffer) const =0 |
virtual Int MQUALIFIER | getFirstPosStr (const IString &rSubString) const =0 |
virtual Int MQUALIFIER | getLastPos (const wchar_t *pSubBuffer) const =0 |
virtual Int MQUALIFIER | getLastPosStr (const IString &rSubString) const =0 |
virtual void MQUALIFIER | clear ()=0 |
virtual bool MQUALIFIER | isEmpty () const =0 |
virtual bool MQUALIFIER | endsWith (const wchar_t *pString) const =0 |
virtual bool MQUALIFIER | endsWithStr (const IString &rString) const =0 |
virtual bool MQUALIFIER | startsWith (const wchar_t *pString) const =0 |
virtual bool MQUALIFIER | startsWithStr (const IString &rString) const =0 |
virtual Int MQUALIFIER | compareTo (const IString &rString) const =0 |
virtual bool MQUALIFIER | contains (const wchar_t *pSubString) const =0 |
virtual bool MQUALIFIER | containsStr (const IString &rSubString) const =0 |
virtual Int MQUALIFIER | getPos (Int iStartIndex, const wchar_t *pSubBuffer) const =0 |
virtual Int MQUALIFIER | getPosOfStr (Int iStartIndex, const IString &rSubString) const =0 |
Friends | |
class | TStringList |
class | TZVariant |
This interface defines a wide string for C++. It is used to wrapp a unicode string. There are converter methods for regular 8bit strings, numbers and float values. The string is NULL terminated, which means the last character is a NULL-character to mark the end of the string
|
pure virtual |
assigns a wide array into the string. The old string buffer will be overwritten using this method.
pInbuffer | : wide array to assign |
Implemented in zeus::TString.
|
pure virtual |
assigns a string content to this string.
rInstr | : String to assign |
Implemented in zeus::TString.
|
pure virtual |
|
pure virtual |
Returns the 8bit array. This array must be converted from the 16bit. If the converting fails (for wide characters) this will place a '?' at the failure position. There is a optional bool to capture the convertion error.
pError | [OUT]: Returns if any character could not be converted without loss of information. For example, real Chinese characters can not be converted to single byte Ansi characters. |
Implemented in zeus::TString.
|
pure virtual |
Empties / clears a string.
Implemented in zeus::TString.
|
pure virtual |
Compares two strings lexicographically. The lexicographically compare depends on the locale. This takes the default locale
rString | : String to compare with |
0 | : Strings are equal |
-1 | this string is smaller than the rString |
1 | : this string is bigger than the rString |
Implemented in zeus::TString.
|
pure virtual |
Concats a wide array at the end of the string
pInbuffer | : Wide array to add |
Implemented in zeus::TString.
|
pure virtual |
concats an other string object at the end of the string
rInstr | : String to add |
Implemented in zeus::TString.
|
pure virtual |
Returns true if the string contains a substring
pSubString | : Substring to check |
true | : Substring is contained |
false | no such substring found |
Implemented in zeus::TString.
|
pure virtual |
Returns true if the string contains a substring
rSubString | : Substring to check |
true | : Substring is contained |
false | no such substring found |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string ends with the substring pString
pString | : String to check |
true | : String ends with this sub string |
false | String does not end with this substring |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string ends with the substring rString
rString | : String to check |
true | : String ends with this sub string |
false | String does not end with this substring |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string content is equal with a wide character array.
pInbuffer | : array to check |
bIgnoreCase | : If this falg is set the case will be ignored |
true | : Content is equal |
false | Inhalte is different |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string content is equal with an other string object
rInstr | : String to check |
bIgnoreCase | : If this falg is set the case will be ignored |
true | : Content is equal |
false | Inhalte is different |
Implemented in zeus::TString.
|
pure virtual |
Returns an indexed wide character of the string. If the index is out of the array bound, this will return a NULL character
iIndex | : Index of the character |
Implemented in zeus::TString.
|
pure virtual |
returns the index of the first substring found in the string
pSubBuffer | : wide character array as substring |
-1 | : Substring not found |
>= | 0 : Index of substring |
Implemented in zeus::TString.
|
pure virtual |
returns the index of the first substring found in the string
rSubString | : substring |
-1 | : Substring not found |
>= | 0 : Index of substring |
Implemented in zeus::TString.
|
pure virtual |
returns the index of the last substring found in the string
pSubBuffer | : wide character array as substring |
-1 | : Substring not found |
>= | 0 : Index of substring |
Implemented in zeus::TString.
|
pure virtual |
returns the index of the last substring found in the string
rSubString | : substring |
-1 | : Substring not found |
>= | 0 : Index of substring |
Implemented in zeus::TString.
|
pure virtual |
returns the index of the first substring from iStartIndex
iStartIndex | : search start index |
pSubBuffer | : wide character array as substring |
-1 | : Substring not found |
>= | 0 : Index of substring |
Implemented in zeus::TString.
|
pure virtual |
returns the index of the first substring from iStartIndex
iStartIndex | : search start index |
pSubBuffer | : wide character array as substring |
-1 | : Substring not found |
>= | 0 : Index of substring |
Implemented in zeus::TString.
|
pure virtual |
returns the string size (without the NULL-character).
Implemented in zeus::TString.
|
pure virtual |
Checks if the string can be converted into a boolean value
true | : content is a boolean |
false | content is not a boolean |
Implemented in zeus::TString.
|
pure virtual |
Checks if a string is empty
true | : String is empty (same as strData->equals(L"") but faster. |
false | : String contains data |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string can be converted into a float value
true | : content is a float |
false | content is not a float |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string can be converted into a int value (o unsigned int)
true | : content is a int (or unsigned int) |
false | content is not a number |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string starts with the substring pString
pString | : String to check |
true | : String starts with this sub string |
false | String does not start with this substring |
Implemented in zeus::TString.
|
pure virtual |
Checks if the string starts with the substring rString
rString | : String to check |
true | : String starts with this sub string |
false | String does not start with this substring |
Implemented in zeus::TString.
|
pure virtual |
This method converts a string into a boolean value
bPredef | [IN] : Default value |
pbError | [OUT]: Optional bool to capture conversion errors |
Implemented in zeus::TString.
|
pure virtual |
this method converts a string into a float value
dPreDef | [IN] : Default value |
pbError | [OUT]: Optional bool to capture convertion errors |
|
pure virtual |
This method converts a string into a int value
lPreDef | [IN] : Default value |
pbError | [OUT]: Optional bool to capture convertion errors |
Implemented in zeus::TString.
|
pure virtual |
this method converts a string into a time value, which is preset to be 64bit
tmPredef | [IN] : Default value |
pbError | [OUT]: Optional bool to capture convertion errors |
Implemented in zeus::TString.
|
pure virtual |
this method converts a string into a unsigned int value
uiPredef | [IN] : Default value |
pbError | [OUT]: Optional bool to capture convertion errors |
Implemented in zeus::TString.
|
friend |
|
friend |