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

Function CompareRelative

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

Source from the content-addressed store, hash-verified

326}
327
328static int CompareRelative(PathParser* LHSPtr, PathParser* RHSPtr) {
329 auto& LHS = *LHSPtr;
330 auto& RHS = *RHSPtr;
331
332 int res;
333 while (LHS && RHS) {
334 if ((res = (*LHS).compare(*RHS)) != 0)
335 return res;
336 ++LHS;
337 ++RHS;
338 }
339 return 0;
340}
341
342static int CompareEndState(PathParser* LHS, PathParser* RHS) {
343 if (LHS->atEnd() && !RHS->atEnd())

Callers 1

__compareMethod · 0.85

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected