mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
update io::path::normalized()
This commit is contained in:
parent
596132ebe2
commit
b1740bf7eb
3 changed files with 63 additions and 23 deletions
|
|
@ -115,13 +115,7 @@ namespace io {
|
|||
}
|
||||
|
||||
/// @brief Get parent path
|
||||
path parent() const {
|
||||
size_t slashpos = str.rfind('/');
|
||||
if (slashpos == std::string::npos) {
|
||||
return colonPos == std::string::npos ? "" : str;
|
||||
}
|
||||
return str.substr(0, slashpos);
|
||||
}
|
||||
path parent() const;
|
||||
|
||||
path normalized() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue