"L. Spiro Engine"
Public Member Functions

lstl::CWString Class Reference

A standard string class with an optional allocator. More...

#include <LSTLWString.h>

Inheritance diagram for lstl::CWString:
lstl::CStringBase< CWString, wchar_t > lstl::CVectorPoD< wchar_t, LSUINT32, 32 > lstl::CSVectorCrtp< CVectorPoD< wchar_t, LSUINT32, _uAllocSize >, wchar_t, LSUINT32, _uAllocSize > lstl::CVectorBase

List of all members.

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)

Detailed Description

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.)


Member Function Documentation

LSBOOL LSE_CALL lstl::CWString::FromDouble ( LSDOUBLE  _dValue,
LSBOOL  _bScientific = false 
)

Convert a double to a string.

Parameters:
_dValueThe value to convert to the string.
_bScientificIf true, scientific notation is used to express the number. A lower-case e is used for the exponent.
Returns:
Returns true if there was enough memory to convert the value.
LSBOOL LSE_CALL lstl::CWString::FromI64 ( LSINT64  _i64Value,
LSUINT32  _ui32Radix = 10 
)

Convert a signed integer to a string.

Parameters:
_i64ValueThe value to convert to the string.
_ui32RadixBase of value, which must be in the range from 2 to 36.
Returns:
Returns true if there was enough memory to convert the value.
LSBOOL LSE_CALL lstl::CWString::FromUI64 ( LSUINT64  _ui64Value,
LSUINT32  _ui32Radix = 10 
)

Convert an unsigned integer to a string.

Parameters:
_ui64ValueThe value to convert to the string.
_ui32RadixBase of value, which must be in the range from 2 to 36.
Returns:
Returns true if there was enough memory to convert the value.
CWString& LSE_CALL lstl::CWString::operator= ( const wchar_t *  _pwcString)

Copy a string.

Parameters:
_pwcString
Returns:
Returns this string after the copy.
CWString& LSE_CALL lstl::CWString::operator= ( const CWString _wstrString)

Copy a string.

Parameters:
_wstrString
Returns:
Returns this string after the copy.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator