#include <utils.h>
Definition at line 178 of file utils.h.
§ PathSeperator()
PathSeperator::PathSeperator |
( |
std::string |
fullpath | ) |
|
Definition at line 70 of file utils.cpp.
72 int filenameEnd = fullpath.size();
73 int filenameStart = 0;
74 for (
int i = fullpath.size()-1; i>=0; i--) {
75 if (fullpath[i] ==
'.' &&
extension.empty()) {
79 if (fullpath[i] ==
'/' || fullpath[i] ==
'\\') {
85 filename = fullpath.substr(filenameStart, filenameEnd - filenameStart);
§ directory
std::string PathSeperator::directory |
§ extension
std::string PathSeperator::extension |
§ filename
std::string PathSeperator::filename |
The documentation for this struct was generated from the following files: