MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __compare

Method __compare

system/lib/libcxx/src/filesystem/path.cpp:350–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350int path::__compare(string_view_t __s) const {
351 auto LHS = PathParser::CreateBegin(__pn_);
352 auto RHS = PathParser::CreateBegin(__s);
353 int res;
354
355 if ((res = CompareRootName(&LHS, &RHS)) != 0)
356 return res;
357
358 if ((res = CompareRootDir(&LHS, &RHS)) != 0)
359 return res;
360
361 if ((res = CompareRelative(&LHS, &RHS)) != 0)
362 return res;
363
364 return CompareEndState(&LHS, &RHS);
365}
366
367////////////////////////////////////////////////////////////////////////////
368// path.nonmembers

Callers

nothing calls this directly

Calls 4

CompareRootNameFunction · 0.85
CompareRootDirFunction · 0.85
CompareRelativeFunction · 0.85
CompareEndStateFunction · 0.85

Tested by

no test coverage detected