29 |
|
|
30 |
std::string readUrl(std::string url, std::string tempfile); |
std::string readUrl(std::string url, std::string tempfile); |
31 |
|
|
32 |
|
std::string iconv_wrapper(std::string _input, std::string to_format, std::string from_format); |
33 |
|
|
34 |
std::string convertToUnicode(std::string); |
std::string convertToUnicode(std::string); |
35 |
std::string convertFromUnicode(std::string); |
std::string convertFromUnicode(std::string); |
36 |
|
|
41 |
|
|
42 |
int my_system(const char* cmd, std::string* response = 0); |
int my_system(const char* cmd, std::string* response = 0); |
43 |
|
|
44 |
|
std::string readfile(std::string filename); |
45 |
|
|
46 |
inline void Sleep(unsigned int msec) |
inline void Sleep(unsigned int msec) |
47 |
{ |
{ |
48 |
for (unsigned int i=0; i<msec; ++i) |
if (msec < 1000) |
49 |
usleep(1000); |
{ |
50 |
|
usleep(1000*msec); |
51 |
|
} |
52 |
|
else |
53 |
|
{ |
54 |
|
for (unsigned int i=0; i<msec; ++i) |
55 |
|
usleep(1000); |
56 |
|
} |
57 |
} |
} |
58 |
|
|
59 |
} |
} |