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)
45 const
wchar_t* _number,
unsigned _base,
57 String
toString(
unsigned _base = 10)
const;
61 static String
toString(
unsigned int _u,
unsigned _base = 10);
62 static String
toString(
unsigned int _u,
const wchar_t* _format);
64 static unsigned int parse(
const wchar_t* _number,
unsigned _base = 10)
67 static
unsigned int parse(
68 const
wchar_t* _number,
unsigned _base,
80 String
toString(
unsigned _base = 10)
const;
82 static String
toString(int32_t _n,
unsigned _base = 10);
83 static String
toString(int32_t _n,
const wchar_t* _format);
85 static int32_t
parse(
const wchar_t* _number,
unsigned _base = 10)
89 const
wchar_t* _number,
unsigned _base,
93 static ByteString
toByteString(int32_t _n,
unsigned _base = 10);
103 String
toString(
unsigned _base = 10)
const;
105 static String
toString(uint32_t _u,
unsigned _base = 10);
106 static String
toString(uint32_t _u,
const wchar_t* _format);
108 static uint32_t
parse(
const wchar_t* _number,
unsigned _base = 10)
111 static uint32_t
parse(
112 const
wchar_t* _number,
unsigned _base,
116 static ByteString
toByteString(uint32_t _u,
unsigned _base = 10);
126 String
toString(
unsigned _base = 10)
const;
128 static String
toString(int64_t _n,
unsigned _base = 10);
129 static String
toString(int64_t _n,
const wchar_t* _format);
131 static int64_t
parse(
const wchar_t* _number,
unsigned _base = 10)
134 static int64_t
parse(
135 const
wchar_t* _number,
unsigned _base,
139 static ByteString
toByteString(int64_t _n,
unsigned _base = 10);
149 String
toString(
unsigned _base = 10)
const;
151 static String
toString(uint64_t _u,
unsigned _base = 10);
152 static String
toString(uint64_t _u,
const wchar_t* _format);
154 static uint64_t
parse(
const wchar_t* _number,
unsigned _base = 10)
157 static uint64_t
parse(
158 const
wchar_t* _number,
unsigned _base,
162 static ByteString
toByteString(uint64_t _u,
unsigned _base = 10);
178 static String
toString(
float _f,
const wchar_t* _format);
183 static float parse(
const wchar_t* _number)
186 static float parse(
const wchar_t* _number,
float _default);
188 static ByteString
toByteString(
float _f,
const char* _format);
204 static String
toString(
double _d,
const wchar_t* _format);
206 static double parse(
const wchar_t* _number)
209 static double parse(
const wchar_t* _number,
double _default);
211 static ByteString
toByteString(
double _f,
const char* _format);
231 Decimal(
const String& strNumber);
233 void assign(
const wchar_t* _number,
int _n);
237 const Decimal& operator = (
int _n);
238 const Decimal& operator = (
unsigned int _u);
240 const Decimal& operator = (int32_t _n);
241 const Decimal& operator = (uint32_t _u);
242 const Decimal& operator = (int64_t _n);
243 const Decimal& operator = (uint64_t _u);
245 const Decimal& operator = (
float _value);
246 const Decimal& operator = (
double _value);
248 const Decimal& operator = (
const String& strNumber);
258 const char* pszDecimalFormat =
NULL
String toStringF(const char *pszDecimalFormat=NULL) const
void assign(const wchar_t *_number, int _n)
static const char * FORMAT_STRING
static String toString(const Decimal &_value)
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 *)