header for testing routines
More...
Go to the source code of this file.
header for testing routines
- Author
- Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
- Version
- 0.1
- Date
- 2020-09-16
- Copyright
- This project is released under the GNU Public License v3.
◆ AsmTest()
◆ ConvertToString()
std::string ConvertToString |
( |
char * | Str | ) |
|
34{
35 string s(Str);
36
37 return s;
38}
◆ StringReplace()
BOOLEAN StringReplace |
( |
std::string & | str, |
|
|
const std::string & | from, |
|
|
const std::string & | to ) |
24{
25 size_t start_pos = str.find(from);
26 if (start_pos == string::npos)
28 str.replace(start_pos, from.length(), to);
30}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
◆ TestCase()
BOOLEAN TestCase |
( |
std::vector< std::string > & | TestCase | ) |
|
◆ TestCreateLookupTable()
VOID TestCreateLookupTable |
( |
HANDLE | PipeHandle, |
|
|
PVOID | KernelInformation, |
|
|
UINT32 | KernelInformationSize ) |
◆ Uint64ToString()
std::string Uint64ToString |
( |
UINT64 | value | ) |
|
16{
17 ostringstream Os;
18 Os << setw(16) << setfill('0') << hex << value;
19 return Os.str();
20}