144
148
string format(string fmt, ...);
145
string vformat(string fmt, va_list args);
149
string vFormat(string fmt, va_list args);
146
150
void replace(string &target, string search, string replacement);
147
151
bool fileExists(string path);
148
string lowercase(string value);
149
string uppercase(string value);
150
string changecase(string &value, bool lowerCase);
152
string lowerCase(string value);
153
string upperCase(string value);
154
string changeCase(string &value, bool lowerCase);
151
155
string tagToString(uint64_t tag);
152
bool SetFdNonBlock(int32_t fd);
153
bool SetFdNoSIGPIPE(int32_t fd);
154
bool SetFdKeepAlive(int32_t fd);
155
bool SetFdNoNagle(int32_t fd);
156
bool SetFdReuseAddress(int32_t fd);
157
bool SetFdOptions(int32_t fd);
158
bool DeleteFile(string path);
159
string GetHostByName(string name);
156
bool setFdNonBlock(int32_t fd);
157
bool setFdNoSIGPIPE(int32_t fd);
158
bool setFdKeepAlive(int32_t fd);
159
bool setFdNoNagle(int32_t fd);
160
bool setFdReuseAddress(int32_t fd);
161
bool setFdOptions(int32_t fd);
162
bool deleteFile(string path);
163
string getHostByName(string name);
160
164
bool isNumeric(string value);
161
165
void split(string str, string separator, vector<string> &result);
162
166
uint64_t getTagMask(uint64_t tag);
163
167
string generateRandomString(uint32_t length);
164
void ltrim(string &value);
165
void rtrim(string &value);
168
void lTrim(string &value);
169
void rTrim(string &value);
166
170
void trim(string &value);
167
171
map<string, string> mapping(string str, string separator1, string separator2, bool trimStrings);
168
172
void splitFileName(string fileName, string &name, string &extension, char separator = '.');
169
double GetFileModificationDate(string path);
173
double getFileModificationDate(string path);
170
174
string normalizePath(string base, string file);
171
bool ListFolder(string root, string path, vector<string> &result);
172
bool MoveFile(string src, string dst);
173
void InstallQuitSignal(SignalFnc pQuitSignalFnc);
174
void InstallConfRereadSignal(SignalFnc pConfRereadSignalFnc);
175
bool listFolder(string path, vector<string> &result,
176
bool normalizeAllPaths = true, bool includeFolders = false,
177
bool recursive = true);
178
bool moveFile(string src, string dst);
179
void installQuitSignal(SignalFnc pQuitSignalFnc);
180
void installConfRereadSignal(SignalFnc pConfRereadSignalFnc);
176
182
#endif /* _LINUXPLATFORM_H */
177
183
#endif /* LINUX */