ERAV: Entity Relation Attribute Value:
|
#include "ERAV.h"
Go to the source code of this file.
Namespaces | |
namespace | ERAV |
[E]ntity [R]elation [A]ttribute [V]alue | |
Defines | |
#define | nextChar(cursor, line) { if ('\n'==*(*cursor)) { (*line)++; } (*cursor)++; } |
cursor++ && (line++ <==> ' ') | |
#define | USE_goto |
#define | USE_algorithm |
Functions | |
void * | memrev (void *ptr, size_t num) |
Reverses in place all bytes in ptr . | |
char * | strrev (char *str) |
Reverses in place all characters in str . | |
char * | itoa (int value, char *str, int base) |
Convert integer int to string str (non-standard function). | |
char * | my_itoa (int i) |
return itoa(i,my_itoa::static_buffer,10) . | |
int | ERAV::tplcmp (const ERAV::tuple &l, const ERAV::tuple &r) |
(l<r)==>(-1) (l==r)==>((0)) (l>r)==>(+1). | |
bool | ERAV::isLess (const ERAV::tuple &l, const ERAV::tuple &r) |
(l<r) ???. |
#define nextChar | ( | cursor, | |
line | |||
) | { if ('\n'==*(*cursor)) { (*line)++; } (*cursor)++; } |
#define USE_goto |
void* memrev | ( | void * | ptr, |
size_t | num | ||
) |
char* strrev | ( | char * | str | ) | [inline] |
char* itoa | ( | int | value, |
char * | str, | ||
int | base | ||
) |
Convert integer int
to string str
(non-standard function).
Converts an integer value to a null-terminated string using the specified base
and stores the result in the array given by str
parameter.
If base
is 10 and value
is negative, the resulting string is preceded with a minus sign (-). With any other base, value is always considered unsigned.
str
should be an array long enough to contain any possible value: (sizeof(int)*8+1)
for radix=2, i.e. 17 bytes in 16-bits platforms and 33 in 32-bits platforms.