Public Member Functions | |
| int | GetLength () SCONST PURE |
| Gets the length of the string. | |
| BOOL | IsEmpty () SCONST PURE |
| Checks if the string is empty. | |
| void | Empty () PURE |
| Empties the string. | |
| char | GetAt (int nIndex) SCONST PURE |
| Gets the character at the specified index. | |
| void | SetAt (int nIndex, char ch) PURE |
| Sets the character at the specified index. | |
| const char * | c_str () SCONST PURE |
| Gets a C-style string representation of the string. | |
| int | Compare (const char *psz) SCONST PURE |
| Compares the string with another string. | |
| int | CompareNoCase (const char *psz) SCONST PURE |
| Compares the string with another string, ignoring case. | |
| void | TrimBlank () PURE |
| Trims leading and trailing whitespace from the string. | |
| int | InsertChar (int nIndex, char ch) PURE |
| Inserts a character at the specified index. | |
| int | Insert (int nIndex, const char *psz) PURE |
| Inserts a substring at the specified index. | |
| int | Delete (int nIndex, int nCount) PURE |
| Deletes a substring from the specified index. | |
| int | ReplaceChar (char chOld, char chNew) PURE |
| Replaces all occurrences of a character with another character. | |
| int | Replace (const char *pszOld, const char *pszNew) PURE |
| Replaces all occurrences of a substring with another substring. | |
| int | Remove (char chRemove) PURE |
| Removes all occurrences of a character. | |
| int | FindChar (char ch, int nStart DEF_VAL(0)) SCONST PURE |
| Finds the first occurrence of a character. | |
| int | ReverseFind (char ch) SCONST PURE |
| Finds the last occurrence of a character. | |
| int | Find (const char *pszSub, int nStart DEF_VAL(0)) SCONST PURE |
| Finds the first occurrence of a substring. | |
| char * | GetBuffer (int nMinBufLength DEF_VAL(-1)) PURE |
| Gets a modifiable buffer for the string. | |
| void | ReleaseBuffer (int nNewLength DEF_VAL(-1)) PURE |
| Releases the buffer and sets the new length of the string. | |
| char * | GetBufferSetLength (int nNewLength) PURE |
| Gets a buffer with the specified length. | |
| void | SetLength (int nLength) PURE |
| Sets the length of the string. | |
| void | Copy (const IStringA *src) PURE |
| Copies the contents of another string. | |
| void | Assign (LPCSTR src) PURE |
| Assigns a C-style string to the string. | |
| void | Assign2 (LPCSTR src, int nLen DEF_VAL(-1)) PURE |
| Assigns a substring of a C-style string to the string. | |
| LPVOID | GetPrivData () SCONST PURE |
| Gets private data associated with the string. | |
| void | ToUpper () PURE |
| Converts the string to uppercase. | |
| void | ToLower () PURE |
| Converts the string to lowercase. | |
| void | TrimRight (char chTarget DEF_VAL(VK_SPACE)) PURE |
| Trims trailing characters from the string. | |
| void | TrimLeft (char chTarget DEF_VAL(VK_SPACE)) PURE |
| Trims leading characters from the string. | |
| void | Trim (char chTarget DEF_VAL(VK_SPACE)) PURE |
| Trims leading and trailing characters from the string. | |
| void | AppendChar (char ch) PURE |
| Appends a character to the string. | |
| void | AppendStr (const char *pszStr, int nLen DEF_VAL(-1)) PURE |
| Appends a substring to the string. | |
| void | Release () PURE |
| Releases the string. | |
| UINT | ToUint () SCONST PURE |
| Converts the string to an unsigned integer. | |
| long | ToLong () SCONST PURE |
| Converts the string to a long integer. | |
| int | ToInt () SCONST PURE |
| Converts the string to an integer. | |
| float | ToFloat () SCONST PURE |
| Converts the string to a float. | |
| double | ToDouble () SCONST PURE |
| Converts the string to a double. | |
| BOOL | ToBool () SCONST PURE |
| Converts the string to a boolean. | |
Definition at line 11 of file sstring-i.h.
| void IStringA::AppendChar | ( | char | ch | ) |
Appends a character to the string.
| ch | Character to append. |
| void IStringA::AppendStr | ( | const char * | pszStr, |
| int nLen | DEF_VAL-1 ) |
Appends a substring to the string.
| pszStr | Substring to append. |
| nLen | Length of the substring. |
| void IStringA::Assign | ( | LPCSTR | src | ) |
Assigns a C-style string to the string.
| src | C-style string to assign. |
| void IStringA::Assign2 | ( | LPCSTR | src, |
| int nLen | DEF_VAL-1 ) |
Assigns a substring of a C-style string to the string.
| src | C-style string to assign. |
| nLen | Length of the substring. |
| const char * IStringA::c_str | ( | ) |
Gets a C-style string representation of the string.
| int IStringA::Compare | ( | const char * | psz | ) |
Compares the string with another string.
| psz | String to compare with. |
| int IStringA::CompareNoCase | ( | const char * | psz | ) |
Compares the string with another string, ignoring case.
| psz | String to compare with. |
| void IStringA::Copy | ( | const IStringA * | src | ) |
Copies the contents of another string.
| src | Source string. |
| int IStringA::Delete | ( | int | nIndex, |
| int | nCount ) |
Deletes a substring from the specified index.
| nIndex | Index to start deletion. |
| nCount | Number of characters to delete. |
| int IStringA::Find | ( | const char * | pszSub, |
| int nStart | DEF_VAL0 ) |
Finds the first occurrence of a substring.
| pszSub | Substring to find. |
| nStart | Starting index for the search. |
| int IStringA::FindChar | ( | char | ch, |
| int nStart | DEF_VAL0 ) |
Finds the first occurrence of a character.
| ch | Character to find. |
| nStart | Starting index for the search. |
| char IStringA::GetAt | ( | int | nIndex | ) |
Gets the character at the specified index.
| nIndex | Index of the character. |
| char * IStringA::GetBuffer | ( | int nMinBufLength | DEF_VAL-1 | ) |
Gets a modifiable buffer for the string.
| nMinBufLength | Minimum buffer length. |
| char * IStringA::GetBufferSetLength | ( | int | nNewLength | ) |
Gets a buffer with the specified length.
| nNewLength | New length of the buffer. |
| int IStringA::GetLength | ( | ) |
Gets the length of the string.
| LPVOID IStringA::GetPrivData | ( | ) |
Gets private data associated with the string.
| int IStringA::Insert | ( | int | nIndex, |
| const char * | psz ) |
Inserts a substring at the specified index.
| nIndex | Index to insert at. |
| psz | Substring to insert. |
| int IStringA::InsertChar | ( | int | nIndex, |
| char | ch ) |
Inserts a character at the specified index.
| nIndex | Index to insert at. |
| ch | Character to insert. |
| BOOL IStringA::IsEmpty | ( | ) |
Checks if the string is empty.
| void IStringA::ReleaseBuffer | ( | int nNewLength | DEF_VAL-1 | ) |
Releases the buffer and sets the new length of the string.
| nNewLength | New length of the string. |
| int IStringA::Remove | ( | char | chRemove | ) |
Removes all occurrences of a character.
| chRemove | Character to remove. |
| int IStringA::Replace | ( | const char * | pszOld, |
| const char * | pszNew ) |
Replaces all occurrences of a substring with another substring.
| pszOld | Substring to replace. |
| pszNew | Substring to replace with. |
| int IStringA::ReplaceChar | ( | char | chOld, |
| char | chNew ) |
Replaces all occurrences of a character with another character.
| chOld | Character to replace. |
| chNew | Character to replace with. |
| int IStringA::ReverseFind | ( | char | ch | ) |
Finds the last occurrence of a character.
| ch | Character to find. |
| void IStringA::SetAt | ( | int | nIndex, |
| char | ch ) |
Sets the character at the specified index.
| nIndex | Index of the character. |
| ch | Character to set. |
| void IStringA::SetLength | ( | int | nLength | ) |
Sets the length of the string.
| nLength | New length of the string. |
| BOOL IStringA::ToBool | ( | ) |
Converts the string to a boolean.
| double IStringA::ToDouble | ( | ) |
Converts the string to a double.
| float IStringA::ToFloat | ( | ) |
Converts the string to a float.
| int IStringA::ToInt | ( | ) |
Converts the string to an integer.
| long IStringA::ToLong | ( | ) |
Converts the string to a long integer.
| UINT IStringA::ToUint | ( | ) |
Converts the string to an unsigned integer.
| void IStringA::Trim | ( | char chTarget | DEF_VALVK_SPACE | ) |
Trims leading and trailing characters from the string.
| chTarget | Character to trim. |
| void IStringA::TrimLeft | ( | char chTarget | DEF_VALVK_SPACE | ) |
Trims leading characters from the string.
| chTarget | Character to trim. |
| void IStringA::TrimRight | ( | char chTarget | DEF_VALVK_SPACE | ) |
Trims trailing characters from the string.
| chTarget | Character to trim. |