| 44 | int pos; |
| 45 | |
| 46 | void flush() |
| 47 | { |
| 48 | if (current.size() > 0) |
| 49 | { |
| 50 | if (current.compare("..") == 0) |
| 51 | { |
| 52 | if (path.size() > 0) |
| 53 | path.pop_back(); |
| 54 | } |
| 55 | else |
| 56 | { |
| 57 | path.push_back(current); |
| 58 | } |
| 59 | current = ""; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | std::string simplify(std::string x) |
| 64 | { |
no test coverage detected