| 396 | } |
| 397 | |
| 398 | StringView FilePath::getBaseName() const |
| 399 | { |
| 400 | const StringView fileName = getFileName(); |
| 401 | if (!fileName.isEmpty() ) |
| 402 | { |
| 403 | StringView ext = strFind(fileName, '.'); |
| 404 | if (!ext.isEmpty() ) |
| 405 | { |
| 406 | return StringView(fileName.getPtr(), ext.getPtr() ); |
| 407 | } |
| 408 | |
| 409 | return fileName; |
| 410 | } |
| 411 | |
| 412 | return StringView(); |
| 413 | } |
| 414 | |
| 415 | StringView FilePath::getExt() const |
| 416 | { |
no test coverage detected