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

#include <Numeric.h>

Public Member Functions

 UInteger (unsigned int _u)
String toString (unsigned _base=10) const

Static Public Member Functions

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

Public Attributes

unsigned int __u

Detailed Description

Definition at line 47 of file Numeric.h.

Constructor & Destructor Documentation

◆ UInteger()

UInteger::UInteger ( unsigned int _u)
inline

Definition at line 49 of file Numeric.inl.

50{
51 __u = _u;
52}
unsigned int __u
Definition Numeric.h:50

Member Function Documentation

◆ parse() [1/2]

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

Definition at line 75 of file Numeric.inl.

76{
77 return UInt32::parse(_number, _base, _default);
78}
static uint32_t parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
Definition Numeric.cpp:401

◆ parse() [2/2]

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

Definition at line 69 of file Numeric.inl.

71{
72 return UInt32::parse(_number, _base);
73}

◆ toString() [1/3]

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

Definition at line 54 of file Numeric.inl.

55{
56 return UInteger::toString(__u, _base);
57}
String toString(unsigned _base=10) const
Definition Numeric.inl:54

◆ toString() [2/3]

String UInteger::toString ( unsigned int _u,
const wchar_t * _format )
inlinestatic

Definition at line 64 of file Numeric.inl.

65{
66 return UInt32::toString((uint32_t)_u, _format);
67}
String toString(unsigned _base=10) const
Definition Numeric.inl:99

◆ toString() [3/3]

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

Definition at line 59 of file Numeric.inl.

60{
61 return UInt32::toString((uint32_t)_u, _base);
62}

Member Data Documentation

◆ __u

unsigned int UInteger::__u

Definition at line 50 of file Numeric.h.


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