1#ifndef __DCL_NUMERIC_H__
2#define __DCL_NUMERIC_H__ 20050305
4#ifndef __DCL_CONFIG_H__
7#ifndef __DCL_STRING_H__
10#ifndef __DCL_EXCEPTION_H__
33 String
toString(
unsigned _base = 10)
const;
38 static String
toString(
int _n,
unsigned _base = 10);
39 static String
toString(
int _n,
const wchar_t* _format);
41 static int parse(
const wchar_t* _number,
unsigned _base = 10)
44 static
int parse(const
wchar_t* _number,
unsigned _base,
int _default);
54 String
toString(
unsigned _base = 10)
const;
58 static String
toString(
unsigned int _u,
unsigned _base = 10);
59 static String
toString(
unsigned int _u,
const wchar_t* _format);
61 static unsigned int parse(
const wchar_t* _number,
unsigned _base = 10)
64 static
unsigned int parse(const
wchar_t* _number,
unsigned _base,
unsigned int _default);
74 String
toString(
unsigned _base = 10)
const;
76 static String
toString(int32_t _n,
unsigned _base = 10);
77 static String
toString(int32_t _n,
const wchar_t* _format);
79 static int32_t
parse(
const wchar_t* _number,
unsigned _base = 10)
82 static int32_t
parse(const
wchar_t* _number,
unsigned _base, int32_t _default);
84 static ByteString
toByteString(int32_t _n,
unsigned _base = 10);
94 String
toString(
unsigned _base = 10)
const;
96 static String
toString(uint32_t _u,
unsigned _base = 10);
97 static String
toString(uint32_t _u,
const wchar_t* _format);
99 static uint32_t
parse(
const wchar_t* _number,
unsigned _base = 10)
102 static uint32_t
parse(const
wchar_t* _number,
unsigned _base, uint32_t _default);
104 static ByteString
toByteString(uint32_t _u,
unsigned _base = 10);
114 String
toString(
unsigned _base = 10)
const;
116 static String
toString(int64_t _n,
unsigned _base = 10);
117 static String
toString(int64_t _n,
const wchar_t* _format);
119 static int64_t
parse(
const wchar_t* _number,
unsigned _base = 10)
122 static int64_t
parse(const
wchar_t* _number,
unsigned _base, int64_t _default);
124 static ByteString
toByteString(int64_t _n,
unsigned _base = 10);
134 String
toString(
unsigned _base = 10)
const;
136 static String
toString(uint64_t _u,
unsigned _base = 10);
137 static String
toString(uint64_t _u,
const wchar_t* _format);
139 static uint64_t
parse(
const wchar_t* _number,
unsigned _base = 10)
142 static uint64_t
parse(const
wchar_t* _number,
unsigned _base, uint64_t _default);
144 static ByteString
toByteString(uint64_t _u,
unsigned _base = 10);
160 static String
toString(
float _f,
const wchar_t* _format);
165 static float parse(
const wchar_t* _number)
168 static float parse(
const wchar_t* _number,
float _default);
170 static ByteString
toByteString(
float _f,
const char* _format);
186 static String
toString(
double _d,
const wchar_t* _format);
188 static double parse(
const wchar_t* _number)
191 static double parse(
const wchar_t* _number,
double _default);
193 static ByteString
toByteString(
double _f,
const char* _format);
213 Decimal(
const String& strNumber);
215 void assign(
const wchar_t* _number,
int _n);
219 const Decimal& operator = (
int _n);
220 const Decimal& operator = (
unsigned int _u);
222 const Decimal& operator = (int32_t _n);
223 const Decimal& operator = (uint32_t _u);
224 const Decimal& operator = (int64_t _n);
225 const Decimal& operator = (uint64_t _u);
227 const Decimal& operator = (
float value);
228 const Decimal& operator = (
double value);
230 const Decimal& operator = (
const String& strNumber);
240 const char* pszDecimalFormat =
NULL);
String toStringF(const char *pszDecimalFormat=NULL) const
void assign(const wchar_t *_number, int _n)
static String toString(const Decimal &value)
static const char * FORMAT_STRING
static double parse(const wchar_t *_number) __DCL_THROWS1(NumericConvertException *)
static ByteString toByteString(double _f, const char *_format)
static ByteString toByteString(int32_t _n, unsigned _base=10)
String toString(unsigned _base=10) const
static int32_t parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
static ByteString toByteString(int64_t _n, unsigned _base=10)
String toString(unsigned _base=10) const
static int64_t parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
String toString(unsigned _base=10) const
static int parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
static float parse(const wchar_t *_number) __DCL_THROWS1(NumericConvertException *)
static ByteString toByteString(float _f, const char *_format)
static uint32_t parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
static ByteString toByteString(uint32_t _u, unsigned _base=10)
String toString(unsigned _base=10) const
static ByteString toByteString(uint64_t _u, unsigned _base=10)
static uint64_t parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
String toString(unsigned _base=10) const
UInteger(unsigned int _u)
String toString(unsigned _base=10) const
static unsigned int parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)