|
Bases |
bases for conversion from string to number
|
| #define | BASE_INARRAY -1 |
| #define | BASE_AUTO 0 |
| #define | BASE_BIN 2 |
| #define | BASE_OCT 8 |
| #define | BASE_DEC 10 |
| #define | BASE_HEX 16 |
Wrappers for stdlib num-2-str functions |
- Author:
-
Lord Binary
|
| void | numtostr (UI32 i, char *ourstring) |
| | convert the integer into a string in decimal base
|
| void | hextostr (UI32 i, char *ourstring) |
| | convert the integer into a string in hexadecimal base
|
Wrappers |
| Wrappers for c++ strings
- Author:
-
Sparhawk
|
| int | str2num (std::string &s, int base=0) |
| | wrapper to str2num function
|
| int | str2num (std::wstring &s, int base=0) |
| | Wrapper to str2num function.
|
| int | hex2num (std::string &s) |
| | wrapper to str2num function
|
Functions |
| SI32 | LongFromCharPtr (const unsigned char *p) |
| | Calculates a long int from 4 subsequent bytes pointed to by p.
|
| SI16 | ShortFromCharPtr (const unsigned char *p) |
| | Calculates a short int from 2 subsequent bytes pointed to by p.
|
| void | LongToCharPtr (const UI32 i, unsigned char *p) |
| | Stores a long int into 4 subsequent bytes pointed to by 'p'.
|
| void | ShortToCharPtr (const UI16 i, unsigned char *p) |
| | Stores a short int into 2 subsequent bytes pointed to by 'p'.
|
| int | str2num (char *sz, int base=0) |
| | Conversion from sz to numbers.
|
| int | str2num (wchar_t *sz, int base=0) |
| | Conversion from sz to numbers.
|
| int | hex2num (char *sz) |
| | New style hexstring to number.
|
| int | fillIntArray (char *str, int *array, int maxsize, int defval=-1, int base=0) |
| | fills an integer array with tokens extracted from a string
|
| void | readSplitted (FILE *F, char *script1, char *script2) |
| | reads a line splitted (read2 clone)
|
| int | RandomNum (int nLowNum, int nHighNum) |
| | Returns a random number between bounds.
|
| char * | RealTime (char *time_str) |
| | return current local time
|
| Location | Loc (UI16 x, UI16 y, SI08 z, SI08 dispz=0) |
| | build a Location structure
|