|
Defines |
#define | DEBUGMSG(ident, msg...) |
#define | DEBUGMSG_OUTSTR(ident, msg...) printf("%s\n", ((string)(msg)).c_str()) |
#define | DEBUGOUT(msg...) |
#define | DEBUGERR(msg...) |
#define | TRACEOUT(ident, msg...) |
#define | MSG2OUT(ident, msg...) writeMessage2Stdout(ident, __FILE__, __LINE__, msg) |
#define | WRITE_MSG(ident, msg...) |
#define | WRITE_MSGI(msg...) |
#define | WRITE_ERR(ident, msg...) fprintf(stderr, "%s: ", ident);fprintf(stderr, msg);printf("\n"); |
#define | WRITE_ERRI(msg...) fprintf(stderr, "%s: ", identity.c_str());fprintf(stderr, msg);printf("\n"); |
Functions |
string | substituteEnvVars (string input) |
| substitutes environment variables in a string
|
string | maskChars (string str) |
string * | strToUpr (string *src) |
string | strToUpr (string src) |
string * | strToLwr (string *src) |
string | strToLwr (string src) |
int | hexToInt (const char *in) |
string | ucharToHex (unsigned char in) |
bool | getCurrentTimeBuffer (char *dtbuf, char *datebuf=NULL, char *timebuf=NULL, time_t *clock=NULL) |
bool | getCurrentTimeString (string *dtstr, string *datestr=NULL, string *timestr=NULL, time_t *clock=NULL) |
string | getDayOfWeek (time_t *clock=NULL) |
void | initLogging (char *Iam, char *logfile) |
string | getSimpleTimeString () |
void | writeMessage (const char *ctrl,...) |
int | strToInt (string s) |
unsigned int | strToUInt (string s) |
string | iToStr (int i) |
string | fToStr (double i) |
string | cpToStr (char *) |
string | cToStr (char) |
char * | scanForString (char *buf, char *toFind, char **ret=NULL, int offset=0, unsigned int length=0) |
char * | scanForString (char *buf, char *toFind, string *ret=NULL, int offset=0, unsigned int length=0) |
string | scanForString (string buf, string toFind, string *ret=NULL, int offset=0, unsigned int length=0) |
void | split (string str, string delim, vector< string > &results, bool allowEmpty=false) |
void | msleep (unsigned long msec) |
bool | scanString (string toscan, string frontkey, string backkey, unsigned int offset, unsigned int length, string *result, unsigned int *nextpos) |
void | trim (string &str) |
bool | strToBool (string s) |
void | fixPathStr (string &path) |
| Removes double slashes from strings containing filesystem paths.
|
void | executeCmd (string cmd, pid_t *cpid=NULL) |
bool | file_exist (string filename) |
void | writeDebugMessage (const char *identity, const char *filename, const int lineno, const char *msg,...) |
void | writeDebugMessage (const char *identity, const char *filename, const int lineno, const string &msg) |
void | writeMessage2Stdout (const char *identity, const char *filename, const int lineno, const char *msg,...) |
void | writeMessage2Stdout (const char *identity, const char *filename, const int lineno, const string &msg) |
unsigned int | getMTimeStamp () |
unsigned int | getMDiff (unsigned int start_ts, unsigned int end_ts) |
int64_t | timespecDiff (struct timespec *timeA, struct timespec *timeB) |
void | rotateUCharBuffer180 (unsigned char *buffer, int pitch, int w, int h) |
void | rotateUShortIntBuffer180 (unsigned short int *buffer, int pitch, int w, int h) |
void | rotateUIntBuffer180 (unsigned int *buffer, int pitch, int w, int h) |
bool | convBidiString (const string &in_str, string &out_str, bool bArabic=false) |
| Convert a bidirectional string.
|
string | XMLencode (const string &Source) |