CCAFFEINE
0.8.8
|
#include <IntegerJC.h>
Public Member Functions | |
IntegerJC (char *s, int &NumberFormatErr) | |
IntegerJC (int value_) | |
double | doubleValue () |
boolean | equals (Object *obj) |
float | floatValue () |
int | intValue () |
long | longValue () |
CFREE char * | toString () |
Static Public Member Functions | |
static int | parseInt (char *s, int &NumberFormatErr) |
static CFREE char * | toBinaryString (int i) |
static CFREE char * | toHexString (int i) |
static CFREE char * | toOctalString (int i) |
static CFREE char * | toString (int i) |
static CFREE char * | toString (int i, int radix) |
static IntegerJC * | valueOf (char *s, int &NumberFormatErr) |
Static Private Member Functions | |
static char | forDigit (int digit, int radix) |
static char * | toUnsignedString (int i, int bits) |
Private Attributes | |
int | value |
integer container ala java. buggy in printing nondecimal.
static char* jcpp::IntegerJC::toUnsignedString | ( | int | i, |
int | bits | ||
) | [static, private] |
completely buggy. java >>>= is what in c?
static int jcpp::IntegerJC::parseInt | ( | char * | s, |
int & | NumberFormatErr | ||
) | [static] |
You get strtol(s,x,0) behavior, likeit or lumpit. Except we round down to INT_MAX/MIN if needed.