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

Function CompareRootDir

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

Source from the content-addressed store, hash-verified

314}
315
316static int CompareRootDir(PathParser* LHS, PathParser* RHS) {
317 if (!LHS->inRootDir() && RHS->inRootDir())
318 return -1;
319 else if (LHS->inRootDir() && !RHS->inRootDir())
320 return 1;
321 else {
322 ConsumeRootDir(LHS);
323 ConsumeRootDir(RHS);
324 return 0;
325 }
326}
327
328static int CompareRelative(PathParser* LHSPtr, PathParser* RHSPtr) {
329 auto& LHS = *LHSPtr;

Callers 1

__compareMethod · 0.85

Calls 2

ConsumeRootDirFunction · 0.85
inRootDirMethod · 0.80

Tested by

no test coverage detected