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