| 371 | } |
| 372 | |
| 373 | U32 Path::getDirectoryCount() const |
| 374 | { |
| 375 | if (mPath.isEmpty()) |
| 376 | return 0; |
| 377 | |
| 378 | U32 count = 0; |
| 379 | U32 offset = 0; |
| 380 | |
| 381 | if (mPath.c_str()[0] == '/') |
| 382 | offset++; |
| 383 | |
| 384 | while (offset < mPath.length()) |
| 385 | { |
| 386 | if (mPath[offset++] == '/') |
| 387 | count++; |
| 388 | } |
| 389 | |
| 390 | return count + 1; |
| 391 | } |
| 392 | |
| 393 | String Path::getDirectory(U32 count) const |
| 394 | { |
no test coverage detected