This class provides some extended number parsing routines which also supports the extended unicode code character set and localization.
|
Public Member Functions |
| Number () |
virtual byte | byteValue ()=0 |
virtual short | shortValue ()=0 |
virtual int | intValue ()=0 |
virtual jlong | longValue ()=0 |
virtual float | floatValue ()=0 |
virtual double | doubleValue ()=0 |
virtual int | hashCode () |
virtual dmi::ScriptVar | toScriptVar () |
template<class T> template_static T | toBigEndian (T t) |
| group to convert plattform pendig bit order to or from BigEndian which will be used in Serialization and network
|
template<class T> template_static T | fromBigEndian (T t) |
template<class T> template_static T | fromLittleEndian (T t) |
template<class T> template_static T | toLittleEndian (T t) |
template<class T> template_static T | swapBits (T t) |
template<class T> template_static int | getBitCountOf (T) |
template<class T> template_static int | bitCount (T val) |
template<class T> template_static T | rotateLeft (T val, int count) |
template<class T> template_static T | rotateRight (T val, int count) |
Static Public Member Functions |
jlong | decodeIntegerNumber (IN(RString) str, INOUT(bool) tryOnly, INOUT(char) typeChar, INOUT(int) ignoreaTrailing, bool ignoreLeadingWs=false) throw ( RNumberFormatException ) |
jlong | parseIntegerNumber (IN(RString) str, int radix, INOUT(bool) tryOnly, INOUT(char) typeChar, INOUT(int) ignoreTrailing, bool ignoreLeadingSpaces=false) throw ( RNumberFormatException ) |
double | parseFloatNumber (IN(RString) str, INOUT(bool) tryOnly, INOUT(char) typeChar, INOUT(int) ignoreTrailing, bool ignoreLeadingSpaces=false, IN(acdk::util::RLocale) locale=Nil) throw ( RNumberFormatException ) |
| working method
|
char | getSmallestTypeChar (jlong number) |
| return one of the typeChar which fits this number
|
char | getSmallestTypeChar (double number) |
| return one of the float type char, in which this number fits
|
RNumber | getNumber (jlong value, char typeChar=0) throw ( RNumberFormatException ) |
| creates a number instance of given value.
|
RNumber | getNumber (double value, char typeChar=0) throw ( RNumberFormatException ) |
| creates a number instance of given value.
|
RNumber | decodeToNumber (IN(RString) str, bool tryOnly=false, bool ignoreLeadingWs=false, IN(acdk::util::RLocale) locale=Nil) throw ( RNumberFormatException ) |
| Parses a number from a unicode string if the string is a decimal string (radix = 10) all unicode character are allowed, which are digits (not limited to 0 - 9).
|
RNumber | parseToIntegerNumber (IN(RString) str, int radix, bool tryOnly=false, bool ignoreLeadingSpaces=false) throw ( RNumberFormatException ) |
| parses a string to given integer number
|
void | getFractionAndExponentSignFromLocale (IN(acdk::util::RLocale) locale, OUT(ucchar) fraction, OUT(ucchar) exponent) |
void | swap2 (char *ptr) |
void | swap4 (char *ptr) |
void | swap8 (char *ptr) |