| 471 | } |
| 472 | |
| 473 | std::string Path::ToNativePath(const std::string_view path) |
| 474 | { |
| 475 | std::string ret; |
| 476 | PathAppendString(ret, path); |
| 477 | |
| 478 | // remove trailing slashes |
| 479 | if (ret.length() > 1) |
| 480 | { |
| 481 | while (ret.back() == FS_OSPATH_SEPARATOR_CHARACTER) |
| 482 | ret.pop_back(); |
| 483 | } |
| 484 | |
| 485 | return ret; |
| 486 | } |
| 487 | |
| 488 | void Path::ToNativePath(std::string* path) |
| 489 | { |
nothing calls this directly
no test coverage detected