/////////////////////////////////////////////////////////////////////// path.comparisons
| 303 | //////////////////////////////////////////////////////////////////////////// |
| 304 | // path.comparisons |
| 305 | static int CompareRootName(PathParser* LHS, PathParser* RHS) { |
| 306 | if (!LHS->inRootName() && !RHS->inRootName()) |
| 307 | return 0; |
| 308 | |
| 309 | auto GetRootName = [](PathParser* Parser) -> string_view_t { return Parser->inRootName() ? **Parser : PATHSTR(""); }; |
| 310 | int res = GetRootName(LHS).compare(GetRootName(RHS)); |
| 311 | ConsumeRootName(LHS); |
| 312 | ConsumeRootName(RHS); |
| 313 | return res; |
| 314 | } |
| 315 | |
| 316 | static int CompareRootDir(PathParser* LHS, PathParser* RHS) { |
| 317 | if (!LHS->inRootDir() && RHS->inRootDir()) |
no test coverage detected