| 237 | } |
| 238 | |
| 239 | static std::string StripPboExtension(const std::string& path) |
| 240 | { |
| 241 | auto pos = path.rfind('.'); |
| 242 | if (pos != std::string::npos) |
| 243 | { |
| 244 | std::string ext = path.substr(pos); |
| 245 | std::string extLower = ext; |
| 246 | std::transform(extLower.begin(), extLower.end(), extLower.begin(), ::tolower); |
| 247 | if (extLower == ".pbo") |
| 248 | return path.substr(0, pos); |
| 249 | } |
| 250 | return path; |
| 251 | } |
| 252 | |
| 253 | static std::atomic<int> gExtractCounter{0}; |
| 254 |
no outgoing calls
no test coverage detected