DCL 4.0
Loading...
Searching...
No Matches
Integer Class Reference

#include <Numeric.h>

Public Member Functions

 Integer (int _n)
String toString (unsigned _base=10) const

Static Public Member Functions

static String toString (int _n, unsigned _base=10)
static String toString (int _n, const wchar_t *_format)
static int parse (const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
static int parse (const wchar_t *_number, unsigned _base, int _default)

Public Attributes

int __n

Detailed Description

Definition at line 26 of file Numeric.h.

Constructor & Destructor Documentation

◆ Integer()

Integer::Integer ( int _n)
inline

Definition at line 16 of file Numeric.inl.

17{
18 __n = _n;
19}
int __n
Definition Numeric.h:29

Member Function Documentation

◆ parse() [1/2]

int Integer::parse ( const wchar_t * _number,
unsigned _base,
int _default )
inlinestatic

Definition at line 42 of file Numeric.inl.

43{
44 return Int32::parse(_number, _base, _default);
45}
static int32_t parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
Definition Numeric.cpp:284

◆ parse() [2/2]

int Integer::parse ( const wchar_t * _number,
unsigned _base = 10 )
inlinestatic

Definition at line 36 of file Numeric.inl.

38{
39 return Int32::parse(_number, _base);
40}

◆ toString() [1/3]

String Integer::toString ( int _n,
const wchar_t * _format )
inlinestatic

Definition at line 31 of file Numeric.inl.

32{
33 return Int32::toString((int32_t)_n, _format);
34}
String toString(unsigned _base=10) const
Definition Numeric.inl:87

◆ toString() [2/3]

String Integer::toString ( int _n,
unsigned _base = 10 )
inlinestatic
Parameters
_base2 ~ 36

Definition at line 26 of file Numeric.inl.

27{
28 return Int32::toString((int32_t) _n, _base);
29}

◆ toString() [3/3]

String Integer::toString ( unsigned _base = 10) const
inline

Definition at line 21 of file Numeric.inl.

22{
23 return Integer::toString(__n, _base);
24}
String toString(unsigned _base=10) const
Definition Numeric.inl:21

Member Data Documentation

◆ __n

int Integer::__n

Definition at line 29 of file Numeric.h.


The documentation for this class was generated from the following files: