44 #include "../Text/TextTools.h"
58 ifstream file(filename.c_str());
59 bool test = file.good();
68 ifstream file(path.c_str());
69 bool test = file.good();
78 ptrdiff_t end =
static_cast<ptrdiff_t
>(path.find_last_of(
"."));
79 ptrdiff_t begin =
static_cast<ptrdiff_t
>(path.find_last_of(dirSep) + 1);
87 result.erase(result.begin() + end, result.end());
88 result.erase(result.begin(), result.begin() + begin);
100 stream.open(filename.c_str(), std::ios::ate);
101 size = stream.tellg();
111 ptrdiff_t begin =
static_cast<ptrdiff_t
>(path.find_last_of(dirSep));
115 result.erase(result.begin() + begin, result.end());
125 size_t end = path.find_last_of(
".");
126 return path.substr(end + 1);
137 getline(input, s,
'\n');
152 getline(in, temp,
'\n');
bool isEmpty(const std::string &s)
Tell if a string is empty. A string is considered to be 'empty' if it is only made of white spaces.