OpenM++ runtime library (libopenm)
|
OpenM++ common file utilities. More...
Go to the source code of this file.
Namespaces | |
namespace | openm |
openM++ namespace | |
Functions | |
bool | openm::isFileExists (const char *i_filePath) |
return true if file or directory exists More... | |
void | openm::openInpStream (std::ifstream &io_inpSt, const char *i_filePath, std::ios_base::openmode i_mode) |
open input file stream More... | |
void | openm::openOutStream (std::ofstream &io_outSt, const char *i_filePath, std::ios_base::openmode i_mode) |
open output file stream More... | |
const std::string | openm::baseDirOf (const std::string &i_path) |
return base directory of the path or empty string if path is "." or ".." | |
const std::string | openm::baseDirOf (const char *i_path) |
return base directory of the path or empty string if path is "." or ".." | |
const std::string | openm::makeDefaultPath (const char *i_exePath, const char *i_extension) |
make path from current working directory, executable name and specified extension. More... | |
std::string const | openm::makeFilePath (const char *i_dirPath, const char *i_name, const char *i_extension=nullptr) |
make path by join directory, file name and specified extension. More... | |
const std::string | openm::toUtf8 (const char *i_byteArr, const char *i_codePageName=nullptr) |
convert null-terminated bytes from current user (or specified) code page to UTF-8 string. More... | |
const std::string | openm::toUtf8 (size_t i_size, const char *i_byteArr, const char *i_codePageName=nullptr) |
convert bytes from current user (or specified) code page to UTF-8 string. More... | |
bool | openm::isUtf8 (size_t i_size, const char *i_byteArr) |
return true if bytes are valid UTF-8 More... | |
const std::string | openm::fileToUtf8 (const char *i_filePath, const char *i_codePageName=nullptr) |
read file and return content as UTF-8 as string More... | |
const std::list< std::string > | openm::fileToUtf8Lines (const char *i_filePath, const char *i_codePageName=nullptr) |
read file, split by linefeed and return content as list of UTF-8 as strings More... | |
OpenM++ common file utilities.