00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __UTIL_H__
00013 #define __UTIL_H__
00014
00015 #include <sstream>
00016 #include <string>
00017
00018
00019 #define STR(x) (char *)(x.str().c_str())
00020
00021 void upperStr(const char* s, char* d);
00022
00023 std::string operator+(const std::string& s, int i);
00024
00025 void escapeXMLChars(std::string &s);
00026 char* escapeStr(char* str);
00027
00028 int lockFileRead(const char *fname);
00029 int lockFileWrite(const char *fname);
00030 void unlockFile(int n);
00031
00032 #endif