A class representing an ASCII string. More...
#include <sstringa.h>
Public Types | |
| typedef const char * | pctstr | 
| typedef char | _tchar | 
| typedef char_traits | _tchar_traits | 
Public Member Functions | |
| SStringA () | |
| Default constructor.   | |
| SStringA (const SStringA &stringSrc) | |
| Copy constructor.   | |
| SStringA (const IStringA *stringSrc) | |
| Constructor from an IStringA object.   | |
| SStringA (char ch, int nLength=1) | |
| Constructor from a single character.   | |
| SStringA (const char *psz, int nLength) | |
| Constructor from a substring of a character array.   | |
| SStringA (const char *psz) | |
| Constructor from a character array.   | |
| ~SStringA () | |
| Destructor.   | |
| int | GetLength () SCONST | 
| Retrieves the length of the string.   | |
| BOOL | IsEmpty () SCONST | 
| Checks if the string is empty.   | |
| void | Empty () | 
| Empties the string.   | |
| char | GetAt (int nIndex) SCONST | 
| Retrieves the character at a specified index.   | |
| void | SetAt (int nIndex, char ch) | 
| Sets the character at a specified index.   | |
| const char * | c_str () SCONST | 
| Retrieves a C-style string representation of the string.   | |
| int | Compare (const char *psz) SCONST | 
| Compares the string with another string.   | |
| int | CompareNoCase (const char *psz) SCONST | 
| Compares the string with another string, ignoring case.   | |
| void | TrimBlank () | 
| Trims leading and trailing whitespace characters from the string.   | |
| int | InsertChar (int nIndex, char ch) | 
| Inserts a character at a specified index.   | |
| int | Insert (int nIndex, const char *psz) | 
| Inserts a substring at a specified index.   | |
| int | Delete (int nIndex, int nCount=1) | 
| Deletes a substring from the string.   | |
| int | ReplaceChar (char chOld, char chNew) | 
| Replaces all occurrences of a character with another character.   | |
| int | Replace (const char *pszOld, const char *pszNew) | 
| Replaces all occurrences of a substring with another substring.   | |
| int | Remove (char chRemove) | 
| Removes all occurrences of a character from the string.   | |
| int | FindChar (char ch, int nStart=0) SCONST | 
| Finds the first occurrence of a character in the string.   | |
| int | ReverseFind (char ch) SCONST | 
| Finds the last occurrence of a character in the string.   | |
| int | Find (const char *pszSub, int nStart=0) SCONST | 
| Finds the first occurrence of a substring in the string.   | |
| char * | GetBuffer (int nMinBufLength=-1) | 
| Retrieves a modifiable buffer for the string.   | |
| void | ReleaseBuffer (int nNewLength=-1) | 
| Releases the buffer and sets the new length of the string.   | |
| char * | GetBufferSetLength (int nNewLength) | 
| Retrieves a modifiable buffer for the string and sets the new length.   | |
| void | SetLength (int nLength) | 
| Sets the length of the string.   | |
| void | Copy (const IStringA *src) | 
| Copies the contents of another string into this string.   | |
| void | Assign (LPCSTR src) | 
| Assigns a character array to the string.   | |
| void | Assign2 (LPCSTR src, int nLen) | 
| Assigns a substring of a character array to the string.   | |
| LPVOID | GetPrivData () SCONST | 
| Retrieves private data associated with the string.   | |
| void | ToUpper () OVERRIDE | 
| Converts the string to uppercase.   | |
| void | ToLower () OVERRIDE | 
| Converts the string to lowercase.   | |
| void | TrimRight (char chTarget=VK_SPACE) OVERRIDE | 
| Trims trailing whitespace characters from the string.   | |
| void | TrimLeft (char chTarget=VK_SPACE) OVERRIDE | 
| Trims leading whitespace characters from the string.   | |
| void | Trim (char chTarget=VK_SPACE) OVERRIDE | 
| Trims leading and trailing whitespace characters from the string.   | |
| void | AppendChar (char ch) OVERRIDE | 
| Appends a character to the string.   | |
| void | AppendStr (const char *pszStr, int nLen=-1) OVERRIDE | 
| Appends a substring to the string.   | |
| void | Release () OVERRIDE | 
| Releases the string and its resources.   | |
| UINT | ToUint () SCONST OVERRIDE | 
| Converts the string to an unsigned integer.   | |
| long | ToLong () SCONST OVERRIDE | 
| Converts the string to a long integer.   | |
| int | ToInt () SCONST OVERRIDE | 
| Converts the string to an integer.   | |
| float | ToFloat () SCONST OVERRIDE | 
| Converts the string to a float.   | |
| double | ToDouble () SCONST OVERRIDE | 
| Converts the string to a double.   | |
| BOOL | ToBool () SCONST OVERRIDE | 
| Converts the string to a boolean.   | |
| SStringA | Mid (int nFirst) const | 
| Extracts a substring from the string.   | |
| SStringA | Mid (int nFirst, int nCount) const | 
| Extracts a substring from the string.   | |
| SStringA | Right (int nCount) const | 
| Extracts the rightmost part of the string.   | |
| SStringA | Left (int nCount) const | 
| Extracts the leftmost part of the string.   | |
| SStringA & | MakeUpper () | 
| Converts the string to uppercase.   | |
| SStringA & | MakeLower () | 
| Converts the string to lowercase.   | |
| bool | StartsWith (const SStringA &prefix, bool IgnoreCase=false) const | 
| Checks if the string starts with a specified prefix.   | |
| bool | EndsWith (const SStringA &suffix, bool IgnoreCase=false) const | 
| Checks if the string ends with a specified suffix.   | |
| BOOL | LoadString (UINT nID, HINSTANCE hInst) | 
| Loads a string resource from a module.   | |
| BOOL __cdecl | Format (HINSTANCE hInst, UINT nFormatID,...) | 
| Formats a string using a format string and variable arguments.   | |
| void __cdecl | AppendFormat (HINSTANCE hInst, UINT nFormatID,...) | 
| Appends formatted data to the string using a format string and variable arguments.   | |
| SStringA __cdecl | Format (const char *pszFormat,...) | 
| Formats a string using a format string and variable arguments.   | |
| SStringA __cdecl | AppendFormat (const char *pszFormat,...) | 
| Appends formatted data to the string using a format string and variable arguments.   | |
| operator const char * () const | |
| Converts the string to a C-style string.   | |
| char | operator[] (int nIndex) const | 
| Retrieves the character at a specified index.   | |
| SStringA & | operator= (const SStringA &stringSrc) | 
| Overloaded assignment operator from another SStringA object.   | |
| SStringA & | operator= (const char *psz) | 
| Overloaded assignment operator from a character array.   | |
| const SStringA & | operator= (char ch) | 
| Overloaded assignment operator from a single character.   | |
| const SStringA & | operator+= (const char *psz) | 
| Overloaded concatenation operator with a character array.   | |
| const SStringA & | operator+= (char ch) | 
| Overloaded concatenation operator with a single character.   | |
| const SStringA & | operator+= (const SStringA &src) | 
| Overloaded concatenation operator with another SStringA object.   | |
| SStringA & | Append (const SStringA &src) | 
| Appends another SStringA object to the string.   | |
Static Public Member Functions | |
| static bool | IsBlankChar (const char &c) | 
| Checks if a character is a blank character.   | |
Protected Member Functions | |
| int | GetAllocLength () const | 
| Retrieves the allocated length of the string buffer.   | |
| void | Preallocate (int nLength) | 
| Preallocates memory for the string buffer.   | |
| void | FreeExtra () | 
| Frees any extra allocated memory in the string buffer.   | |
| TStringData * | GetData () const | 
| Retrieves the data structure of the string.   | |
| void | Init () | 
| Initializes the string.   | |
| void | InitFromIString (const IStringA *stringSrc) | 
| Initializes the string from an IStringA object.   | |
| BOOL | _Format (const char *pszFormat, va_list &args) | 
| Formats a string using a format string and variable arguments.   | |
| void | _AppendFormat (const char *pszFormat, va_list &args) | 
| Appends formatted data to the string using a format string and variable arguments.   | |
| void | AllocCopy (SStringA &dest, int nCopyLen, int nCopyIndex, int nExtraLen) const | 
| Allocates and copies a substring of the string.   | |
| void | AssignCopy (int nSrcLen, const char *pszSrcData) | 
| Assigns a substring of a character array to the string.   | |
| bool | ConcatCopy (int nSrc1Len, const char *pszSrc1Data, int nSrc2Len, const char *pszSrc2Data) | 
| Concatenates two substrings and copies the result to the string.   | |
| void | ConcatInPlace (int nSrcLen, const char *pszSrcData) | 
| Concatenates a substring to the string in place.   | |
| void | CopyBeforeWrite () | 
| Copies the string before writing to it.   | |
| bool | AllocBeforeWrite (int nLen) | 
| Allocates memory for the string before writing to it.   | |
| bool | AllocBuffer (int nLength) | 
| Allocates memory for the string buffer.   | |
| bool | ReallocBuffer (int nNewLength) | 
| Reallocates memory for the string buffer.   | |
| void | _ReleaseData () | 
| Releases the data structure of the string.   | |
Static Protected Member Functions | |
| static int | SafeStrlen (const char *psz) | 
| Computes the length of a null-terminated string safely.   | |
| static TStringData * | AllocData (int nLength, TStringData *pOldData=NULL) | 
| Allocates a new data structure for the string.   | |
| static void | ReleaseData (TStringData *pData) | 
| Releases a data structure.   | |
Protected Attributes | |
| char * | m_pszData | 
| Pointer to the ref counted string data.   | |
Friends | |
| bool __stdcall | operator== (const SStringA &s1, const SStringA &s2) | 
| Overloaded equality operator between two SStringA objects.   | |
| bool __stdcall | operator== (const SStringA &s1, const char *s2) | 
| Overloaded equality operator between an SStringA object and a character array.   | |
| bool __stdcall | operator== (const char *s1, const SStringA &s2) | 
| Overloaded equality operator between a character array and an SStringA object.   | |
| bool __stdcall | operator!= (const SStringA &s1, const SStringA &s2) | 
| Overloaded inequality operator between two SStringA objects.   | |
| bool __stdcall | operator!= (const SStringA &s1, const char *s2) | 
| Overloaded inequality operator between an SStringA object and a character array.   | |
| bool __stdcall | operator!= (const char *s1, const SStringA &s2) | 
| Overloaded inequality operator between a character array and an SStringA object.   | |
| bool __stdcall | operator< (const SStringA &s1, const SStringA &s2) | 
| Overloaded less-than operator between two SStringA objects.   | |
| bool __stdcall | operator< (const SStringA &s1, const char *s2) | 
| Overloaded less-than operator between an SStringA object and a character array.   | |
| bool __stdcall | operator< (const char *s1, const SStringA &s2) | 
| Overloaded less-than operator between a character array and an SStringA object.   | |
| bool __stdcall | operator> (const SStringA &s1, const SStringA &s2) | 
| Overloaded greater-than operator between two SStringA objects.   | |
| bool __stdcall | operator> (const SStringA &s1, const char *s2) | 
| Overloaded greater-than operator between an SStringA object and a character array.   | |
| bool __stdcall | operator> (const char *s1, const SStringA &s2) | 
| Overloaded greater-than operator between a character array and an SStringA object.   | |
| bool __stdcall | operator<= (const SStringA &s1, const SStringA &s2) | 
| Overloaded less-than-or-equal-to operator between two SStringA objects.   | |
| bool __stdcall | operator<= (const SStringA &s1, const char *s2) | 
| Overloaded less-than-or-equal-to operator between an SStringA object and a character array.   | |
| bool __stdcall | operator<= (const char *s1, const SStringA &s2) | 
| Overloaded less-than-or-equal-to operator between a character array and an SStringA object.   | |
| bool __stdcall | operator>= (const SStringA &s1, const SStringA &s2) | 
| Overloaded greater-than-or-equal-to operator between two SStringA objects.   | |
| bool __stdcall | operator>= (const SStringA &s1, const char *s2) | 
| Overloaded greater-than-or-equal-to operator between an SStringA object and a character array.   | |
| bool __stdcall | operator>= (const char *s1, const SStringA &s2) | 
| Overloaded greater-than-or-equal-to operator between a character array and an SStringA object.   | |
| SStringA __stdcall | operator+ (const SStringA &string1, const SStringA &string2) | 
| Overloaded addition operator between two SStringA objects.   | |
| SStringA __stdcall | operator+ (const SStringA &string, const char *psz) | 
| Overloaded addition operator between an SStringA object and a character array.   | |
| SStringA __stdcall | operator+ (const char *psz, const SStringA &string) | 
| Overloaded addition operator between a character array and an SStringA object.   | |
| SStringA __stdcall | operator+ (const SStringA &string1, char ch) | 
| Overloaded addition operator between an SStringA object and a single character.   | |
| SStringA __stdcall | operator+ (char ch, const SStringA &string) | 
| Overloaded addition operator between a single character and an SStringA object.   | |
A class representing an ASCII string.
Definition at line 95 of file sstringa.h.
| typedef char SStringA::_tchar | 
Definition at line 99 of file sstringa.h.
| typedef char_traits SStringA::_tchar_traits | 
Definition at line 100 of file sstringa.h.
| typedef const char* SStringA::pctstr | 
Definition at line 98 of file sstringa.h.
| SStringA::SStringA | ( | ) | 
Default constructor.
Definition at line 1186 of file sstringa.cpp.
| SStringA::SStringA | ( | const SStringA & | stringSrc | ) | 
Copy constructor.
| stringSrc | The string to copy. | 
Definition at line 1181 of file sstringa.cpp.
| SStringA::SStringA | ( | const IStringA * | stringSrc | ) | 
Constructor from an IStringA object.
| stringSrc | The string to copy. | 
Definition at line 1176 of file sstringa.cpp.
| SStringA::SStringA | ( | char | ch, | 
| int | nLength = 1 ) | 
Constructor from a single character.
| ch | The character to initialize the string with. | 
| nLength | The number of times to repeat the character. | 
Definition at line 1145 of file sstringa.cpp.
| SStringA::SStringA | ( | const char * | psz, | 
| int | nLength ) | 
Constructor from a substring of a character array.
| psz | The character array. | 
| nLength | The length of the substring. | 
Definition at line 1134 of file sstringa.cpp.
| SStringA::SStringA | ( | const char * | psz | ) | 
Constructor from a character array.
| psz | The character array. | 
Definition at line 1123 of file sstringa.cpp.
| SStringA::~SStringA | ( | ) | 
Destructor.
Definition at line 1114 of file sstringa.cpp.
      
  | 
  protected | 
Appends formatted data to the string using a format string and variable arguments.
| pszFormat | The format string. | 
| args | The variable arguments list. | 
Definition at line 330 of file sstringa.cpp.
      
  | 
  protected | 
Formats a string using a format string and variable arguments.
| pszFormat | The format string. | 
| args | The variable arguments list. | 
Definition at line 344 of file sstringa.cpp.
      
  | 
  protected | 
Releases the data structure of the string.
Definition at line 175 of file sstringa.cpp.
      
  | 
  protected | 
Allocates memory for the string before writing to it.
| nLen | The length to allocate. | 
Definition at line 227 of file sstringa.cpp.
      
  | 
  protected | 
Allocates memory for the string buffer.
| nLength | The length to allocate. | 
Definition at line 216 of file sstringa.cpp.
      
  | 
  protected | 
Allocates and copies a substring of the string.
| dest | The destination string. | 
| nCopyLen | The length of the substring to copy. | 
| nCopyIndex | The starting index of the substring. | 
| nExtraLen | The extra length to allocate. | 
Definition at line 311 of file sstringa.cpp.
      
  | 
  staticprotected | 
Allocates a new data structure for the string.
| nLength | The length to allocate. | 
| pOldData | The old data structure to reuse (optional). | 
Definition at line 148 of file sstringa.cpp.
Appends another SStringA object to the string.
| src | The string to append. | 
Definition at line 985 of file sstringa.cpp.
| void SStringA::AppendChar | ( | char | ch | ) | 
Appends a character to the string.
| ch | The character to append. | 
Definition at line 997 of file sstringa.cpp.
| SStringA __cdecl SStringA::AppendFormat | ( | const char * | pszFormat, | 
| ... ) | 
Appends formatted data to the string using a format string and variable arguments.
| pszFormat | The format string. | 
| ... | The variable arguments list. | 
Definition at line 504 of file sstringa.cpp.
| void __cdecl SStringA::AppendFormat | ( | HINSTANCE | hInst, | 
| UINT | nFormatID, | ||
| ... ) | 
Appends formatted data to the string using a format string and variable arguments.
| hInst | The handle to the module. | 
| nFormatID | The resource identifier of the format string. | 
| ... | The variable arguments list. | 
Definition at line 513 of file sstringa.cpp.
| void SStringA::AppendStr | ( | const char * | pszStr, | 
| int | nLen = -1 ) | 
Appends a substring to the string.
| pszStr | The substring to append. | 
| nLen | The length of the substring. | 
Definition at line 991 of file sstringa.cpp.
| void SStringA::Assign | ( | LPCSTR | src | ) | 
Assigns a character array to the string.
| src | The character array to assign. | 
Definition at line 442 of file sstringa.cpp.
| void SStringA::Assign2 | ( | LPCSTR | src, | 
| int | nLen ) | 
Assigns a substring of a character array to the string.
| src | The character array to assign. | 
| nLen | The length of the substring. | 
Definition at line 447 of file sstringa.cpp.
      
  | 
  protected | 
Assigns a substring of a character array to the string.
| nSrcLen | The length of the substring. | 
| pszSrcData | The character array to assign from. | 
Definition at line 301 of file sstringa.cpp.
| const char * SStringA::c_str | ( | ) | 
Retrieves a C-style string representation of the string.
Definition at line 1052 of file sstringa.cpp.
| int SStringA::Compare | ( | const char * | psz | ) | 
Compares the string with another string.
| psz | The string to compare with. | 
Definition at line 980 of file sstringa.cpp.
| int SStringA::CompareNoCase | ( | const char * | psz | ) | 
Compares the string with another string, ignoring case.
| psz | The string to compare with. | 
Definition at line 975 of file sstringa.cpp.
      
  | 
  protected | 
Concatenates two substrings and copies the result to the string.
| nSrc1Len | The length of the first substring. | 
| pszSrc1Data | The first substring. | 
| nSrc2Len | The length of the second substring. | 
| pszSrc2Data | The second substring. | 
Definition at line 281 of file sstringa.cpp.
      
  | 
  protected | 
Concatenates a substring to the string in place.
| nSrcLen | The length of the substring. | 
| pszSrcData | The substring to concatenate. | 
Definition at line 252 of file sstringa.cpp.
| void SStringA::Copy | ( | const IStringA * | src | ) | 
Copies the contents of another string into this string.
| src | The string to copy from. | 
Definition at line 420 of file sstringa.cpp.
      
  | 
  protected | 
Copies the string before writing to it.
Definition at line 240 of file sstringa.cpp.
| int SStringA::Delete | ( | int | nIndex, | 
| int | nCount = 1 ) | 
Deletes a substring from the string.
| nIndex | The index at which to start deletion. | 
| nCount | The number of characters to delete. | 
Definition at line 706 of file sstringa.cpp.
| void SStringA::Empty | ( | ) | 
Empties the string.
Definition at line 1086 of file sstringa.cpp.
| bool SStringA::EndsWith | ( | const SStringA & | suffix, | 
| bool | IgnoreCase = false ) const | 
Checks if the string ends with a specified suffix.
| suffix | The suffix to check. | 
| IgnoreCase | Whether the comparison should be case-insensitive. | 
Definition at line 780 of file sstringa.cpp.
| int SStringA::Find | ( | const char * | pszSub, | 
| int | nStart = 0 ) | 
Finds the first occurrence of a substring in the string.
| pszSub | The substring to find. | 
| nStart | The index at which to start the search. | 
Definition at line 560 of file sstringa.cpp.
| int SStringA::FindChar | ( | char | ch, | 
| int | nStart = 0 ) | 
Finds the first occurrence of a character in the string.
| ch | The character to find. | 
| nStart | The index at which to start the search. | 
Definition at line 573 of file sstringa.cpp.
| SStringA __cdecl SStringA::Format | ( | const char * | pszFormat, | 
| ... ) | 
Formats a string using a format string and variable arguments.
| pszFormat | The format string. | 
| ... | The variable arguments list. | 
Definition at line 525 of file sstringa.cpp.
| BOOL __cdecl SStringA::Format | ( | HINSTANCE | hInst, | 
| UINT | nFormatID, | ||
| ... ) | 
Formats a string using a format string and variable arguments.
| hInst | The handle to the module. | 
| nFormatID | The resource identifier of the format string. | 
| ... | The variable arguments list. | 
Definition at line 534 of file sstringa.cpp.
      
  | 
  protected | 
Frees any extra allocated memory in the string buffer.
Definition at line 389 of file sstringa.cpp.
      
  | 
  protected | 
Retrieves the allocated length of the string buffer.
Definition at line 383 of file sstringa.cpp.
| char SStringA::GetAt | ( | int | nIndex | ) | 
Retrieves the character at a specified index.
| nIndex | The index of the character. | 
Definition at line 1079 of file sstringa.cpp.
| char * SStringA::GetBuffer | ( | int | nMinBufLength = -1 | ) | 
Retrieves a modifiable buffer for the string.
| nMinBufLength | The minimum buffer length. | 
Definition at line 482 of file sstringa.cpp.
| char * SStringA::GetBufferSetLength | ( | int | nNewLength | ) | 
Retrieves a modifiable buffer for the string and sets the new length.
| nNewLength | The new length of the string. | 
Definition at line 457 of file sstringa.cpp.
      
  | 
  protected | 
Retrieves the data structure of the string.
Definition at line 372 of file sstringa.cpp.
| int SStringA::GetLength | ( | ) | 
Retrieves the length of the string.
Definition at line 1109 of file sstringa.cpp.
| LPVOID SStringA::GetPrivData | ( | ) | 
Retrieves private data associated with the string.
Definition at line 452 of file sstringa.cpp.
      
  | 
  protected | 
Initializes the string.
Definition at line 367 of file sstringa.cpp.
      
  | 
  protected | 
Initializes the string from an IStringA object.
| stringSrc | The IStringA object to initialize from. | 
Definition at line 1159 of file sstringa.cpp.
| int SStringA::Insert | ( | int | nIndex, | 
| const char * | psz ) | 
Inserts a substring at a specified index.
| nIndex | The index at which to insert the substring. | 
| psz | The substring to insert. | 
Definition at line 727 of file sstringa.cpp.
| int SStringA::InsertChar | ( | int | nIndex, | 
| char | ch ) | 
Inserts a character at a specified index.
| nIndex | The index at which to insert the character. | 
| ch | The character to insert. | 
Definition at line 755 of file sstringa.cpp.
      
  | 
  static | 
Checks if a character is a blank character.
| c | The character to check. | 
Definition at line 832 of file sstringa.cpp.
| BOOL SStringA::IsEmpty | ( | ) | 
Checks if the string is empty.
Definition at line 1104 of file sstringa.cpp.
| SStringA SStringA::Left | ( | int | nCount | ) | const | 
Extracts the leftmost part of the string.
| nCount | The length of the substring. | 
Definition at line 925 of file sstringa.cpp.
| BOOL SStringA::LoadString | ( | UINT | nID, | 
| HINSTANCE | hInst ) | 
Loads a string resource from a module.
| nID | The resource identifier. | 
| hInst | The handle to the module. | 
Definition at line 550 of file sstringa.cpp.
| SStringA & SStringA::MakeLower | ( | ) | 
Converts the string to lowercase.
Definition at line 913 of file sstringa.cpp.
| SStringA & SStringA::MakeUpper | ( | ) | 
Converts the string to uppercase.
Definition at line 919 of file sstringa.cpp.
| SStringA SStringA::Mid | ( | int | nFirst | ) | const | 
Extracts a substring from the string.
| nFirst | The starting index of the substring. | 
Definition at line 970 of file sstringa.cpp.
| SStringA SStringA::Mid | ( | int | nFirst, | 
| int | nCount ) const | 
Extracts a substring from the string.
| nFirst | The starting index of the substring. | 
| nCount | The length of the substring. | 
Definition at line 951 of file sstringa.cpp.
| SStringA::operator const char * | ( | ) | const | 
Converts the string to a C-style string.
Definition at line 1057 of file sstringa.cpp.
| const SStringA & SStringA::operator+= | ( | char | ch | ) | 
Overloaded concatenation operator with a single character.
| ch | The character to concatenate. | 
Definition at line 1007 of file sstringa.cpp.
| const SStringA & SStringA::operator+= | ( | const char * | psz | ) | 
Overloaded concatenation operator with a character array.
| psz | The character array to concatenate. | 
Definition at line 1012 of file sstringa.cpp.
Overloaded concatenation operator with another SStringA object.
| src | The string to concatenate. | 
Definition at line 1002 of file sstringa.cpp.
| const SStringA & SStringA::operator= | ( | char | ch | ) | 
Overloaded assignment operator from a single character.
| ch | The character to assign. | 
Definition at line 1017 of file sstringa.cpp.
| SStringA & SStringA::operator= | ( | const char * | psz | ) | 
Overloaded assignment operator from a character array.
| psz | The character array to assign. | 
Definition at line 1023 of file sstringa.cpp.
Overloaded assignment operator from another SStringA object.
| stringSrc | The string to assign. | 
Definition at line 1030 of file sstringa.cpp.
| char SStringA::operator[] | ( | int | nIndex | ) | const | 
Retrieves the character at a specified index.
| nIndex | The index of the character. | 
Definition at line 1071 of file sstringa.cpp.
      
  | 
  protected | 
Preallocates memory for the string buffer.
| nLength | The length to preallocate. | 
Definition at line 401 of file sstringa.cpp.
      
  | 
  protected | 
Reallocates memory for the string buffer.
| nNewLength | The new length to allocate. | 
Definition at line 186 of file sstringa.cpp.
| void SStringA::Release | ( | ) | 
Releases the string and its resources.
Definition at line 1191 of file sstringa.cpp.
| void SStringA::ReleaseBuffer | ( | int | nNewLength = -1 | ) | 
Releases the buffer and sets the new length of the string.
| nNewLength | The new length of the string. | 
Definition at line 469 of file sstringa.cpp.
      
  | 
  staticprotected | 
Releases a data structure.
| pData | The data structure to release. | 
Definition at line 139 of file sstringa.cpp.
| int SStringA::Remove | ( | char | chRemove | ) | 
Removes all occurrences of a character from the string.
| chRemove | The character to remove. | 
Definition at line 595 of file sstringa.cpp.
| int SStringA::Replace | ( | const char * | pszOld, | 
| const char * | pszNew ) | 
Replaces all occurrences of a substring with another substring.
| pszOld | The substring to replace. | 
| pszNew | The substring to replace with. | 
Definition at line 619 of file sstringa.cpp.
| int SStringA::ReplaceChar | ( | char | chOld, | 
| char | chNew ) | 
Replaces all occurrences of a character with another character.
| chOld | The character to replace. | 
| chNew | The character to replace with. | 
Definition at line 680 of file sstringa.cpp.
| int SStringA::ReverseFind | ( | char | ch | ) | 
Finds the last occurrence of a character in the string.
| ch | The character to find. | 
Definition at line 586 of file sstringa.cpp.
| SStringA SStringA::Right | ( | int | nCount | ) | const | 
Extracts the rightmost part of the string.
| nCount | The length of the substring. | 
Definition at line 938 of file sstringa.cpp.
      
  | 
  staticprotected | 
Computes the length of a null-terminated string safely.
| psz | The string to measure. | 
Definition at line 378 of file sstringa.cpp.
| void SStringA::SetAt | ( | int | nIndex, | 
| char | ch ) | 
Sets the character at a specified index.
| nIndex | The index of the character. | 
| ch | The new character value. | 
Definition at line 1062 of file sstringa.cpp.
| void SStringA::SetLength | ( | int | nLength | ) | 
Sets the length of the string.
| nLength | The new length of the string. | 
Definition at line 408 of file sstringa.cpp.
| bool SStringA::StartsWith | ( | const SStringA & | prefix, | 
| bool | IgnoreCase = false ) const | 
Checks if the string starts with a specified prefix.
| prefix | The prefix to check. | 
| IgnoreCase | Whether the comparison should be case-insensitive. | 
Definition at line 793 of file sstringa.cpp.
| BOOL SStringA::ToBool | ( | ) | 
Converts the string to a boolean.
Definition at line 1218 of file sstringa.cpp.
| double SStringA::ToDouble | ( | ) | 
Converts the string to a double.
Definition at line 1214 of file sstringa.cpp.
| float SStringA::ToFloat | ( | ) | 
Converts the string to a float.
Definition at line 1210 of file sstringa.cpp.
| int SStringA::ToInt | ( | ) | 
Converts the string to an integer.
Definition at line 1206 of file sstringa.cpp.
| long SStringA::ToLong | ( | ) | 
Converts the string to a long integer.
Definition at line 1201 of file sstringa.cpp.
| void SStringA::ToLower | ( | ) | 
Converts the string to lowercase.
Definition at line 897 of file sstringa.cpp.
| UINT SStringA::ToUint | ( | ) | 
Converts the string to an unsigned integer.
Definition at line 1197 of file sstringa.cpp.
| void SStringA::ToUpper | ( | ) | 
Converts the string to uppercase.
Definition at line 905 of file sstringa.cpp.
| void SStringA::Trim | ( | char | chTarget = VK_SPACE | ) | 
Trims leading and trailing whitespace characters from the string.
| chTarget | The character to trim. | 
Definition at line 842 of file sstringa.cpp.
| void SStringA::TrimBlank | ( | ) | 
Trims leading and trailing whitespace characters from the string.
Definition at line 806 of file sstringa.cpp.
| void SStringA::TrimLeft | ( | char | chTarget = VK_SPACE | ) | 
Trims leading whitespace characters from the string.
| chTarget | The character to trim. | 
Definition at line 848 of file sstringa.cpp.
| void SStringA::TrimRight | ( | char | chTarget = VK_SPACE | ) | 
Trims trailing whitespace characters from the string.
| chTarget | The character to trim. | 
Definition at line 868 of file sstringa.cpp.
      
  | 
  friend | 
Overloaded inequality operator between a character array and an SStringA object.
| s1 | The character array. | 
| s2 | The string. | 
Definition at line 480 of file sstringa.h.
      
  | 
  friend | 
Overloaded inequality operator between an SStringA object and a character array.
| s1 | The string. | 
| s2 | The character array. | 
Definition at line 471 of file sstringa.h.
Overloaded inequality operator between two SStringA objects.
| s1 | The first string. | 
| s2 | The second string. | 
Definition at line 462 of file sstringa.h.
Overloaded addition operator between a single character and an SStringA object.
| ch | The character. | 
| string | The string. | 
Definition at line 643 of file sstringa.h.
Overloaded addition operator between a character array and an SStringA object.
| psz | The character array. | 
| string | The string. | 
Definition at line 620 of file sstringa.h.
Overloaded addition operator between an SStringA object and a character array.
| string | The string. | 
| psz | The character array. | 
Definition at line 608 of file sstringa.h.
Overloaded addition operator between an SStringA object and a single character.
| string1 | The string. | 
| ch | The character. | 
Definition at line 632 of file sstringa.h.
Overloaded addition operator between two SStringA objects.
| string1 | The first string. | 
| string2 | The second string. | 
Definition at line 597 of file sstringa.h.
      
  | 
  friend | 
Overloaded less-than operator between a character array and an SStringA object.
| s1 | The character array. | 
| s2 | The string. | 
Definition at line 507 of file sstringa.h.
      
  | 
  friend | 
Overloaded less-than operator between an SStringA object and a character array.
| s1 | The string. | 
| s2 | The character array. | 
Definition at line 498 of file sstringa.h.
Overloaded less-than operator between two SStringA objects.
| s1 | The first string. | 
| s2 | The second string. | 
Definition at line 489 of file sstringa.h.
      
  | 
  friend | 
Overloaded less-than-or-equal-to operator between a character array and an SStringA object.
| s1 | The character array. | 
| s2 | The string. | 
Definition at line 561 of file sstringa.h.
      
  | 
  friend | 
Overloaded less-than-or-equal-to operator between an SStringA object and a character array.
| s1 | The string. | 
| s2 | The character array. | 
Definition at line 552 of file sstringa.h.
Overloaded less-than-or-equal-to operator between two SStringA objects.
| s1 | The first string. | 
| s2 | The second string. | 
Definition at line 543 of file sstringa.h.
      
  | 
  friend | 
Overloaded equality operator between a character array and an SStringA object.
| s1 | The character array. | 
| s2 | The string. | 
Definition at line 453 of file sstringa.h.
      
  | 
  friend | 
Overloaded equality operator between an SStringA object and a character array.
| s1 | The string. | 
| s2 | The character array. | 
Definition at line 444 of file sstringa.h.
Overloaded equality operator between two SStringA objects.
| s1 | The first string. | 
| s2 | The second string. | 
Definition at line 435 of file sstringa.h.
      
  | 
  friend | 
Overloaded greater-than operator between a character array and an SStringA object.
| s1 | The character array. | 
| s2 | The string. | 
Definition at line 534 of file sstringa.h.
      
  | 
  friend | 
Overloaded greater-than operator between an SStringA object and a character array.
| s1 | The string. | 
| s2 | The character array. | 
Definition at line 525 of file sstringa.h.
Overloaded greater-than operator between two SStringA objects.
| s1 | The first string. | 
| s2 | The second string. | 
Definition at line 516 of file sstringa.h.
      
  | 
  friend | 
Overloaded greater-than-or-equal-to operator between a character array and an SStringA object.
| s1 | The character array. | 
| s2 | The string. | 
Definition at line 588 of file sstringa.h.
      
  | 
  friend | 
Overloaded greater-than-or-equal-to operator between an SStringA object and a character array.
| s1 | The string. | 
| s2 | The character array. | 
Definition at line 579 of file sstringa.h.
Overloaded greater-than-or-equal-to operator between two SStringA objects.
| s1 | The first string. | 
| s2 | The second string. | 
Definition at line 570 of file sstringa.h.
      
  | 
  protected | 
Pointer to the ref counted string data.
Definition at line 763 of file sstringa.h.