This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static bool endswithA(std::string const &InputString, std::string const &compareString) | |
{ | |
if (InputString.length() >= compareString.length()) { | |
return (0 == InputString.compare(InputString.length() - compareString.length(), compareString.length(), compareString)); | |
} | |
else { | |
return false; | |
} | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public: | |
static std::vector<std::string> splitStrA(const std::string &InputString, char delimiterChar) { | |
std::vector<std::string> ResultVec; | |
splitStrA(InputString, delimiterChar, ResultVec); | |
return ResultVec; | |
}; | |
static std::vector<std::wstring> splitStrW(const std::wstring &InputString, wchar_t delimiterChar) { | |
std::vector<std::wstring> ResultVec; | |
splitStrW(InputString, delimiterChar, ResultVec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <stdio.h> | |
#include <imagehlp.h> | |
#include <malloc.h> | |
#include <tchar.h> | |
#include <string> | |
#define REGULARFILE(x) ((x) & ~(FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_OFFLINE | FILE_ATTRIBUTE_ENCRYPTED | FILE_ATTRIBUTE_VIRTUAL)) |