It never ends...
This commit is contained in:
parent
a40b1dec5f
commit
2e16e83159
43 changed files with 292 additions and 277 deletions
|
@ -125,22 +125,6 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
|
|||
return true;
|
||||
}
|
||||
|
||||
std::string GetFilenameFromPath(std::string full_path) {
|
||||
size_t pos;
|
||||
#ifdef _WIN32
|
||||
pos = full_path.rfind('\\');
|
||||
if (pos != std::string::npos) {
|
||||
return full_path.substr(pos + 1);
|
||||
}
|
||||
#endif
|
||||
pos = full_path.rfind('/');
|
||||
if (pos != std::string::npos) {
|
||||
return full_path.substr(pos + 1);
|
||||
}
|
||||
// No directory components, just return the full path.
|
||||
return full_path;
|
||||
}
|
||||
|
||||
std::string LineNumberString(const std::string &str) {
|
||||
std::stringstream input(str);
|
||||
std::stringstream output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue