| 137 | } |
| 138 | |
| 139 | std::string normalize_folder(const std::string &path) { |
| 140 | std::string result = path; |
| 141 | #if defined(_WIN32) |
| 142 | while (result.size() > 0 && (result.back() == '/' || result.back() == '\\')) |
| 143 | result.pop_back(); |
| 144 | #else |
| 145 | while (result.size() > 0 && result.back() == '/') |
| 146 | result.pop_back(); |
| 147 | #endif |
| 148 | return result; |
| 149 | } |
| 150 | |
| 151 | std::string expand_path(const std::string &path) { |
| 152 | #ifdef __ANDROID__ |
no test coverage detected