|
const char * | c_str () const |
| Get string buffer representing the number.
|
|
long | get () const |
| Get value of string buffer as a long integer.
|
|
| Number (char *buffer, unsigned size) |
| Create an instance of a number.
|
|
| operator char * () const |
| Cast object as a string to retrieve buffer.
|
|
| operator long () const |
| Cast string as long integer and get value of buffer.
|
|
bool | operator!= (const long value) const |
|
long | operator() () const |
| Get value of string buffer as expression of object.
|
|
long | operator++ () |
| Increment the number object.
|
|
long | operator+= (const long value) |
| Add a value to the number.
|
|
long | operator-- () |
| Decrement the number object.
|
|
long | operator-= (const long value) |
| Subtract a value from the number.
|
|
bool | operator< (const long value) const |
|
bool | operator<= (const long value) const |
|
long | operator= (const Number &number) |
| Assign another number to this number.
|
|
long | operator= (long value) |
| Assign a value to the number.
|
|
bool | operator== (const long value) const |
|
bool | operator> (const long value) const |
|
bool | operator>= (const long value) const |
|
void | set (long value) |
| Set string based on a new value.
|
|
A number manipulation class.
This is used to extract, convert, and manage simple numbers that are represented in C ascii strings in a very quick and optimal way. This class modifies the string representation each time the value is changed. No math expressions or explicit comparison operators are supported for the Numbers class because these are best done by casting to long first.
- Author
- David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m
number manipulation.
Definition at line 47 of file numbers.h.