мелочь

This commit is contained in:
2024-11-18 21:19:07 +05:00
parent e04a48ae1d
commit a0d46ae89d
5 changed files with 225 additions and 219 deletions

View File

@ -127,7 +127,7 @@ namespace Utility
bool fileExists(std::string name);
bool dirExists(std::string path);
bool createFolder(std::string directory,mode_t mode=0776); //Создать директорию
bool createFolder(std::string directory,int mode=0776); //Создать директорию
long getFileSize(std::string filename);
@ -154,7 +154,7 @@ namespace Utility
template<typename T>
T fromString(const std::string& s);
int StdStrToInt(std::string& str, bool cutInt = false, int def = 0);
int StdStrToUInt(std::string& str, bool cutInt = false);
uint32_t StdStrToUInt(std::string& str, bool cutInt = false, int def = 0);
float StdStrToFloat(std::string& str);
double StdStrToDouble(std::string& str,double defval = 0);
double StdWStrToDouble(std::wstring str, double defval = 0);