|
template<class charType > |
static void | TrimLeft (std::basic_string< charType > &str, const char *chars2remove=NULL) |
| trim the left of a string More...
|
|
template<class charType > |
static void | TrimRight (std::basic_string< charType > &str, const char *chars2remove=NULL) |
| trim the right of a string More...
|
|
template<class charType > |
static void | Trim (std::basic_string< charType > &str, const char *chars2remove=NULL) |
|
static bool | IsEmptyString (const std::string &str) |
|
static int | ExtractLines (const char *input_file_path, std::vector< std::string > &lines) |
| extract lines from a text file More...
|
|
static bool | IsFileExist (const char *filename) |
| judge whether the file exists More...
|
|
static std::string | JoinPath (std::string folder, std::string filename) |
| join a filename with a directory name More...
|
|
static std::pair< std::string, std::string > | SplitPath (std::string path) |
| separate the folder from the filename More...
|
|
static std::pair< std::string, std::string > | SplitPathExt (std::string path) |
| separate the basename from the file type (extension) More...
|
|
static std::string | GetFilename (std::string path) |
| get filename without folder path and suffix file format More...
|
|
static bool | Mkdir (const std::string path) |
| make a directory More...
|
|
static size_t | GetAvailMem () |
| return the total availbale memory that can be used More...
|
|
To safely read and write files.
IO class contains a set of utility function for dealing with file read/write. It also has some utility function related to operating system, such as getting the maximum available memory.