|
|
@ -182,8 +182,6 @@ std::string DecodeBase32(const std::string& str); |
|
|
|
std::string EncodeBase32(const unsigned char* pch, size_t len); |
|
|
|
std::string EncodeBase32(const unsigned char* pch, size_t len); |
|
|
|
std::string EncodeBase32(const std::string& str); |
|
|
|
std::string EncodeBase32(const std::string& str); |
|
|
|
void ParseParameters(int argc, const char*const argv[]); |
|
|
|
void ParseParameters(int argc, const char*const argv[]); |
|
|
|
bool WildcardMatch(const char* psz, const char* mask); |
|
|
|
|
|
|
|
bool WildcardMatch(const std::string& str, const std::string& mask); |
|
|
|
|
|
|
|
void FileCommit(FILE *fileout); |
|
|
|
void FileCommit(FILE *fileout); |
|
|
|
bool TruncateFile(FILE *file, unsigned int length); |
|
|
|
bool TruncateFile(FILE *file, unsigned int length); |
|
|
|
int RaiseFileDescriptorLimit(int nMinFD); |
|
|
|
int RaiseFileDescriptorLimit(int nMinFD); |
|
|
@ -348,13 +346,6 @@ inline std::string DateTimeStrFormat(const char* pszFormat, int64_t nTime) |
|
|
|
return pszTime; |
|
|
|
return pszTime; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template<typename T> |
|
|
|
|
|
|
|
void skipspaces(T& it) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
while (isspace(*it)) |
|
|
|
|
|
|
|
++it; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline bool IsSwitchChar(char c) |
|
|
|
inline bool IsSwitchChar(char c) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifdef WIN32 |
|
|
|
#ifdef WIN32 |
|
|
|