#include <tvu_typesdef.h>
Inheritance diagram for CTString::

Public Methods | |
| CTString () | |
| Constructors/Destructors. More... | |
| CTString (char cFill, TINT nLength) | |
| CTString (TLPCSTR lpStr) | |
| CTString& | Attach (TLPCSTR lpStr) |
| virtual | ~CTString () |
| DEFINE_ID_FUNCTIONS (CTString, CTObject, CLASSNAME_TYPE_STRING_ID, CLASSNAME_TYPE_STRING) public | |
| virtual TINT | GetIntValue () |
| virtual double | GetDoubleValue () |
| virtual TLPCSTR | GetStringValue () |
| virtual TBOOL | OnSaving (LPCTFile pFile, TINT Marge) |
| Save the object. More... | |
| virtual TBOOL | OnSaving (TLPSTR pBuffers, TINT Marge) |
| virtual TBOOL | IsNeedtoSave () |
| Verify if the object need to be saved. More... | |
| virtual TBOOL | SaveExpression (LPCTFile pFile, TINT Marge) |
| Save as a mathematical expression. More... | |
| virtual TBOOL | OnLoading (LPTBYTE *lpBuffers) |
| Load the object from buffers. More... | |
| virtual TBOOL | OnLoading (LPCTFile pFile) |
| Load the object a file. More... | |
| TLPSTR | STR () |
| Operations Get the string buffer. More... | |
| TINT | Length () |
| Get length of the contained string. More... | |
| char | operator[] (TINT nIndex) |
| Get the character at a position. More... | |
| virtual CTObject* | Calculate (TINT iOperator, CTObject *Object) |
| Comparing operations Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt. More... | |
| TBOOL | operator== (TLPCSTR lpStr) |
| TBOOL | operator== (CTString &String) |
| A string of character. More... | |
| TBOOL | operator!= (TLPCSTR lpStr) |
| A string of character. More... | |
| TBOOL | operator!= (CTString &String) |
| A string of character. More... | |
| CTString& | operator= (TLPCSTR lpStr) |
| Copying operator. More... | |
| CTString& | operator= (CTString &String) |
| An object. More... | |
| CTString& | operator+ (TLPCSTR lpStr) |
| Concatenate. More... | |
| CTString& | operator+ (CTString &String) |
| An object. More... | |
| CTString& | operator+= (TLPCSTR lpStr) |
| CTString& | operator+= (CTString &String) |
| An object. More... | |
| TINT | Find (TLPCSTR pStr) |
| Processing Find the string pStr in this string Return: position of the first occurrence -1: none. More... | |
Static Public Methods | |
| CTString& | FromStr (TLPCSTR lpStr) |
| Convert. More... | |
| TLPSTR | LoadString (LPTBYTE *lpBuffers, TLPSTR lpDes=TNULL) |
| Load a string from buffers lpDes == TNULL => create a new string buffer return: lpDes. More... | |
| TBOOL | IsABC (char c) |
| The functions for type conversion. More... | |
| TBOOL | IsNaming (char c) |
| TBOOL | IsSeekable (char c) |
| May be used to be in a name. More... | |
| TBOOL | IsStartComment (char c) |
| May be passed. More... | |
| TBOOL | IsSeparator1 (char c) |
| {, #. More... | |
| TBOOL | IsSeparator2 (char c) |
| TBOOL | IsSeparator (char c) |
| TBOOL | IsNumber (char c) |
| TBOOL | PassComment (TLPCSTR *lpStr) |
| TLPSTR | GetString1 (TLPSTR Buffers, TLPCSTR *lpStr) |
| TLPSTR | GetString (TLPSTR Buffers, TLPCSTR *lpStr) |
| TLPSTR | GetStringInt (TLPSTR Buffers, TLPCSTR *lpStr) |
| TINT | GetInt (const char *lpStr, int *iPos) |
| TINT | GetInt (TLPCSTR *lpStr) |
| double | GetDouble (TLPCSTR *lpStr) |
| TINT& | GetCourrentLineNumber () |
| TLPSTR | Read (TLPSTR str, THFILE f=TNULL) |
| TLPSTR | PureString (TLPSTR src, TLPSTR des=TNULL, char BS='') |
| TLPSTR | GetFirstWord (TLPCSTR str, TLPCSTR separator="", TLPSTR FirstWord=TNULL) |
| TINT | IsStringContainCharacter (TLPCSTR str, char c, TBOOL bSeekOverString=TTRUE) |
| Verify if a string contains a character. Returned value: the position of the first occur, or -1 ifnot. More... | |
| TVOID | CreateCompareTable () |
Static Public Attributes | |
| TBOOL | m_CompareExactly |
| For compare. More... | |
| char | m_CompareTable [256] |
Protected Methods | |
| TLPSTR | Alloc (TINT nLength) |
| Methodes Allocate the mem. for string. More... | |
| void | Delete () |
| Free the mem. More... | |
| void | ReplaceBuffer (TLPSTR lpNewStr) |
| Replace the buffer. More... | |
Protected Attributes | |
| TLPSTR | m_Buffer |
| Data. More... | |
| TBOOL | m_Attach |
| Contains the string. More... | |
Static Protected Attributes | |
| TINT | m_nLine |
|
|
Constructors/Destructors.
|
|
|
Methodes Allocate the mem. for string.
|
|
|
Comparing operations Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt.
Reimplemented from CTObject. |
|
|
Free the mem.
|
|
|
Processing Find the string pStr in this string Return: position of the first occurrence -1: none.
|
|
|
Convert.
|
|
|
The functions for type conversion.
|
|
|
Verify if the object need to be saved.
Reimplemented from CTObject. 01197 { return m_Buffer && (m_Buffer[0] != 0); };
|
|
|
May be used to be in a name.
|
|
|
{, #.
|
|
|
May be passed.
|
|
|
Verify if a string contains a character. Returned value: the position of the first occur, or -1 ifnot.
|
|
|
Get length of the contained string.
01209 { if (!m_Buffer) return 0; return (TINT)strlen((const char*)m_Buffer); };
|
|
|
Load a string from buffers lpDes == TNULL => create a new string buffer return: lpDes.
|
|
|
Load the object a file.
Reimplemented from CTObject. |
|
|
Load the object from buffers.
Reimplemented from CTObject. |
|
|
Save the object.
Reimplemented from CTObject. |
|
|
Replace the buffer.
|
|
|
Operations Get the string buffer.
01207 { return m_Buffer; };
|
|
|
Save as a mathematical expression.
Reimplemented from CTObject. 01199 { return OnSaving(pFile, Marge); };
|
|
|
A string of character.
01224 { return *this != String.STR(); };
|
|
|
A string of character.
01222 { return !(*this == lpStr); };
|
|
|
An object.
01232 { return *this + (TLPCSTR)String.STR(); };
|
|
|
Concatenate.
|
|
|
An object.
01236 { return *this += (TLPCSTR)String.STR(); };
|
|
|
An object.
01228 { *((LPCTObject)this) = String; return *this = (TLPCSTR)String.STR(); };
|
|
|
Copying operator.
|
|
|
A string of character.
01220 { return *this == String.STR(); };
|
|
|
Get the character at a position.
01211 { return (m_Buffer) ? m_Buffer[nIndex] : 0; };
|
|
|
Contains the string.
|
|
|
Data.
|
|
|
For compare.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001