OpenM++ runtime library (libopenm)
omFile.h File Reference

OpenM++ common file utilities. More...

Include dependency graph for omFile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 openm
 openM++ namespace
 

Functions

bool openm::isFileExists (const char *i_filePath)
 return true if file or directory exists
 
const string openm::baseDirOf (const string &i_path)
 return base directory of the path or empty string if no / or \ in the path. More...
 
const string openm::baseDirOf (const char *i_path)
 return base directory of the path or empty string if no / or \ in the path. More...
 
const string openm::makeDefaultPath (const char *i_exePath, const char *i_extension)
 make path from current working directory, executable name and specified extension. More...
 
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 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 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 string openm::fileToUtf8 (const char *i_filePath, const char *i_codePageName=nullptr)
 read file and return content as UTF-8 as string More...
 
const list< 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...
 

Detailed Description

OpenM++ common file utilities.