| 337 | //========================================================================== |
| 338 | |
| 339 | void SplitPath(const char* path, FString& directory, FString& base, FString& ext, bool forcebackslash) |
| 340 | { |
| 341 | directory = ExtractFilePath(path, forcebackslash); |
| 342 | base = ExtractFileBase(path, forcebackslash); |
| 343 | auto dot = base.LastIndexOf('.'); |
| 344 | if (dot > -1) |
| 345 | { |
| 346 | ext = base.Mid(dot + 1); |
| 347 | base.Truncate(dot); |
| 348 | } |
| 349 | else |
| 350 | ext = ""; |
| 351 | } |
| 352 | |
| 353 | |
| 354 | //========================================================================== |
no test coverage detected