* Find the first position where ".." is, and then strip everything before that. */
| 155 | * Find the first position where ".." is, and then strip everything before that. |
| 156 | */ |
| 157 | std::string strip_until_dots(std::string line) |
| 158 | { |
| 159 | size_t pos = line.find(".."); |
| 160 | if (pos != std::string::npos) |
| 161 | { |
| 162 | return line.substr(pos); |
| 163 | } |
| 164 | |
| 165 | return line; |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * A hexadecimal offset to void* pointer conversion |