#include <iostream>
#include <string>
Go to the source code of this file.
|
| std::string | module_name (const char *path) |
| | Helper function to extract module name from the path of the executable. More...
|
| |
| std::string | modified_filename (const std::string filename, const std::string new_end_with_suffix) |
| | Modifies a filename by replacing the last dot with an underscore and appending a new end withsuffix. More...
|
| |
| bool | are_identical_files (const std::string &file1, const std::string &file2) |
| | Compares two files for identical content. More...
|
| |
◆ are_identical_files()
| bool are_identical_files |
( |
const std::string & |
file1, |
|
|
const std::string & |
file2 |
|
) |
| |
Compares two files for identical content.
- Parameters
-
| file1 | The path to the first file |
| file2 | The path to the second file |
- Returns
- true if the files are identical, false otherwise
◆ modified_filename()
| std::string modified_filename |
( |
const std::string |
filename, |
|
|
const std::string |
new_end_with_suffix |
|
) |
| |
Modifies a filename by replacing the last dot with an underscore and appending a new end withsuffix.
- Parameters
-
| filename | The original filename |
| new_end_with_suffix | The new end with suffix to append |
- Returns
- The modified filename
◆ module_name()
| std::string module_name |
( |
const char * |
path | ) |
|
Helper function to extract module name from the path of the executable.
- Parameters
-
| path | The full path of the executable |
- Returns
- The module name extracted from the path