52 static inline SP::CORE_Integer
New() {
100 static int xtoi(
const char * buffer,
unsigned int* i);
101 #if defined(WIN32) || defined(WIN64)
102 static long int atoll(
char * buffer);
103 static long long strtoll(
const char *str,
char **endptr,
int base );
105 #define fixit(_from, _to) __extension__ ( \
109 const _to _copy; _to __p; \
111 _quesie._copy = _from; \
117 static char *
itoa(
int val,
char *buf,
int base);
120 static char *
ltoa(
long int val,
char *buf,
int base);
123 static char *
lltoa(
long long int val,
char *buf,
int base);
126 static char *
utoa(
unsigned int val,
char *buf,
int base);
129 static char *
ultoa(
unsigned long int val,
char *buf,
int base);
132 static char *
ulltoa(
unsigned long long int val,
char *buf,
int base);
234 #endif // end of ifndef
static tString toHexString(const tRelativeInteger &i, const int &nDigits)
return the hexadecimal string corresponding to the int integer
Definition: CORE_Integer.cpp:97
void increment()
increment the value
Definition: CORE_Integer.h:222
int shortValue() const
get the integer
Definition: CORE_Integer.h:94
static tString toBinString(tRelativeInteger i)
return the binary string corresponding to the int integer
Definition: CORE_Integer.cpp:110
static long int parseInt(tString str)
return the integer associated to the string
Definition: CORE_Integer.cpp:120
~CORE_Integer()
destriuctors
Definition: CORE_Integer.cpp:13
CORE_Integer(const tRelativeInteger &i)
create an integer initialize to i
Definition: CORE_Integer.cpp:8
#define tRelativeInteger
Definition: types.h:33
#define tBoolean
Definition: types.h:35
static char * ulltoa(unsigned long long int val, char *buf, int base)
C function which return the val val into string.
Definition: CORE_Integer.cpp:168
static SP::CORE_Integer New()
build an integer object
Definition: CORE_Integer.h:52
this class describes an integer
Definition: CORE_Integer.h:23
DEFINE_SPTR(CORE_Integer)
static char * ultoa(unsigned long int val, char *buf, int base)
C function which return the val val into string.
Definition: CORE_Integer.cpp:212
void setInteger(const tString &i)
set the integer to i
Definition: CORE_Integer.h:73
void setInteger(const tRelativeInteger &i)
set the integer to i
Definition: CORE_Integer.h:68
static unsigned long long parseHex(const tString &str)
return the integer associated to the hex string
Definition: CORE_Integer.cpp:130
void decrement()
decrement the value
Definition: CORE_Integer.h:227
static SP::CORE_Integer New(tRelativeInteger i)
build an integer object
Definition: CORE_Integer.h:59
tString toString() const
return the string associated to the integer
Definition: CORE_Integer.h:142
static char * itoa(int val, char *buf, int base)
C function which return the val val into string.
Definition: CORE_Integer.cpp:233
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36
static unsigned long int parseUnsignedInt(tString str)
return the integer associated to the string
Definition: CORE_Integer.cpp:155
static tInteger turnIntoPBase(tString str, tInteger p)
return the integer associated to str in base P
Definition: CORE_Integer.cpp:249
static char * utoa(unsigned int val, char *buf, int base)
C function which return the val val into string.
Definition: CORE_Integer.cpp:237
static char * ltoa(long int val, char *buf, int base)
C function which return the val val into string.
Definition: CORE_Integer.cpp:202
int intValue() const
get the integer
Definition: CORE_Integer.h:90
static int xtoi(const char *buffer, unsigned int *i)
C function which return the int value corresponding to buffer.
Definition: CORE_Integer.cpp:264
#define tInteger
Definition: types.h:32
static tBoolean parseBoolean(const tString &str)
return the integer associated to a boolean
Definition: CORE_Integer.h:208
static tBoolean isInteger(const tString &str)
return true if the str is an integer
Definition: CORE_Integer.cpp:240
static char * lltoa(long long int val, char *buf, int base)
C function which return the val val into string.
Definition: CORE_Integer.cpp:189
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
tRelativeInteger getInteger() const
get the integer
Definition: CORE_Integer.h:85