"L. Spiro Engine"
|
A standard string class with an optional allocator. More...
#include <LSTLWString.h>
Public Member Functions | |
LSE_CALL | CWString (CAllocator *_paAllocator=NULL) |
LSE_CALL | CWString (const char *_pcString, CAllocator *_paAllocator=NULL) |
LSE_CALL | CWString (const wchar_t *_pwcString, CAllocator *_paAllocator=NULL) |
LSE_CALL | CWString (const CWString &_sString, CAllocator *_paAllocator=NULL) |
LSE_CALL | CWString (const CStringBase< CWString, wchar_t > &_sbStringBase, CAllocator *_paAllocator=NULL) |
CWString &LSE_CALL | operator= (const wchar_t *_pwcString) |
CWString &LSE_CALL | operator= (const CWString &_wstrString) |
LSBOOL LSE_CALL | FromUI64 (LSUINT64 _ui64Value, LSUINT32 _ui32Radix=10) |
LSBOOL LSE_CALL | FromI64 (LSINT64 _i64Value, LSUINT32 _ui32Radix=10) |
LSBOOL LSE_CALL | FromDouble (LSDOUBLE _dValue, LSBOOL _bScientific=false) |
A standard string class with an optional allocator.
Class CWString Description: A standard wide-character string class with an optional allocator. Simply specializes the CStringBase template with a wchar_t. In this way, this class provides an example of how to create a string of any base type (char, wchar_t, unsigned short, etc.)
LSBOOL LSE_CALL lstl::CWString::FromDouble | ( | LSDOUBLE | _dValue, |
LSBOOL | _bScientific = false |
||
) |
Convert a double to a string.
_dValue | The value to convert to the string. |
_bScientific | If true, scientific notation is used to express the number. A lower-case e is used for the exponent. |
LSBOOL LSE_CALL lstl::CWString::FromI64 | ( | LSINT64 | _i64Value, |
LSUINT32 | _ui32Radix = 10 |
||
) |
Convert a signed integer to a string.
_i64Value | The value to convert to the string. |
_ui32Radix | Base of value, which must be in the range from 2 to 36. |
LSBOOL LSE_CALL lstl::CWString::FromUI64 | ( | LSUINT64 | _ui64Value, |
LSUINT32 | _ui32Radix = 10 |
||
) |
Convert an unsigned integer to a string.
_ui64Value | The value to convert to the string. |
_ui32Radix | Base of value, which must be in the range from 2 to 36. |
CWString& LSE_CALL lstl::CWString::operator= | ( | const wchar_t * | _pwcString | ) |
Copy a string.
_pwcString |
Copy a string.
_wstrString |