|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |
class CUtil { public: static int Hash(register const WCHAR *pszKey); static CString IntToStr(int nValue); static CString ULngToStr(unsigned long nValue); static CString Int32ToStr(CInt32 nValue); static CString UInt32ToStr(CInt32 nValue); static CString DblToStr(double dblValue); static bool StrToInt( const WCHAR *pszSource, int &nResult); static bool StrToDbl( const WCHAR *pszSource, double &dblResult); static double Round(double dblValue); };
The container for various utility functions.
Function Summary | |
int
|
Hash
(const WCHAR *pszKey);
����������Returns a hash value of the specified string. |
CString
|
IntToStr
(int nValue);
����������Converts an integer value to a character string. |
CString
|
ULngToStr
(unsigned long nValue);
����������Converts an unsigned long value to a character string. |
CString
|
Int32ToStr
(CInt32 nValue);
����������Converts a 32-bit integer value to a character string. |
CString
|
UInt32ToStr
(CInt32 nValue);
����������Converts a 32-bit unsigned integer number to a character string. |
CString
|
DblToStr
(double dblValue);
����������Converts a floating-point value to a character string. |
bool
|
StrToInt
(const WCHAR *pszSource, int &nResult);
����������Converts a character string to an integer value. |
bool
|
StrToDbl
(const WCHAR *pszSource, double &dblResult);
����������Converts a character string to a floating-point value. |
double
|
Round
(double dblValue);
����������Rounds a floating-point value. |
Function Detail |
static int Hash(const WCHAR *pszKey);
Returns a hash value of the specified string.
pszKey
- the stringstatic CString IntToStr(int nValue);
Converts an integer value to a character string.
nValue
- the value to convertstatic CString ULngToStr(unsigned long nValue);
Converts an unsigned long value to a character string.
nValue
- the value to convertstatic CString Int32ToStr(CInt32 nValue);
Converts a 32-bit integer value to a character string.
nValue
- the value to convertstatic CString UInt32ToStr(CInt32 nValue);
Converts a 32-bit unsigned integer number to a character string.
nValue
- the value to convertstatic CString DblToStr(double dblValue);
Converts a floating-point value to a character string.
dblValue
- the value to convertstatic bool StrToInt( const WCHAR *pszSource, int &nResult);
Converts a character string to an integer value.
pszSource
- the string to convertnResult
- on return, the result of conversiontrue
if conversion secceeded;
false
otherwisestatic bool StrToDbl( const WCHAR *pszSource, double &dblResult);
Converts a character string to a floating-point value.
pszSource
- the string to convertdblResult
- on return, the result of conversiontrue
if conversion secceeded;
false
otherwisestatic double Round(double dblValue);
Rounds a floating-point value.
dblValue
- the value to round
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |