| 119 | } |
| 120 | |
| 121 | static void trimTrailingSeparators(StringPath& path) |
| 122 | { |
| 123 | const size_t rootLength = findRootLength(path.view()); |
| 124 | size_t length = nativeLength(path.view()); |
| 125 | native_char_t* buffer = path.writableSpan().data(); |
| 126 | while (length > rootLength && isSeparator(buffer[length - 1])) |
| 127 | { |
| 128 | length--; |
| 129 | } |
| 130 | (void)path.resize(length); |
| 131 | } |
| 132 | |
| 133 | static Result pathJoin(StringPath& output, StringSpan base, StringSpan leaf) |
| 134 | { |
no test coverage detected