| 421 | } |
| 422 | |
| 423 | URL URL::withNewSubPath (const String& newPath) const |
| 424 | { |
| 425 | URL u (*this); |
| 426 | |
| 427 | auto startOfPath = URLHelpers::findStartOfPath (url); |
| 428 | |
| 429 | if (startOfPath > 0) |
| 430 | u.url = url.substring (0, startOfPath); |
| 431 | |
| 432 | URLHelpers::concatenatePaths (u.url, newPath); |
| 433 | return u; |
| 434 | } |
| 435 | |
| 436 | URL URL::getParentURL() const |
| 437 | { |
no test coverage detected