| 315 | } |
| 316 | |
| 317 | StringView StringUtils::GetDirectoryName(const StringView& path) |
| 318 | { |
| 319 | const int32 lastFrontSlash = path.FindLast('\\'); |
| 320 | const int32 lastBackSlash = path.FindLast('/'); |
| 321 | const int32 splitIndex = Math::Max(lastBackSlash, lastFrontSlash); |
| 322 | return splitIndex != INVALID_INDEX ? path.Left(splitIndex) : StringView::Empty; |
| 323 | } |
| 324 | |
| 325 | StringView StringUtils::GetFileName(const StringView& path) |
| 326 | { |
no test coverage detected