Lines Matching defs:LHS
302 static int CompareRootName(PathParser* LHS, PathParser* RHS) {
303 if (!LHS->inRootName() && !RHS->inRootName())
307 int res = GetRootName(LHS).compare(GetRootName(RHS));
308 ConsumeRootName(LHS);
313 static int CompareRootDir(PathParser* LHS, PathParser* RHS) {
314 if (!LHS->inRootDir() && RHS->inRootDir())
316 else if (LHS->inRootDir() && !RHS->inRootDir())
319 ConsumeRootDir(LHS);
326 auto& LHS = *LHSPtr;
330 while (LHS && RHS) {
331 if ((res = (*LHS).compare(*RHS)) != 0)
333 ++LHS;
339 static int CompareEndState(PathParser* LHS, PathParser* RHS) {
340 if (LHS->atEnd() && !RHS->atEnd())
342 else if (!LHS->atEnd() && RHS->atEnd())
348 auto LHS = PathParser::CreateBegin(__pn_);
352 if ((res = CompareRootName(&LHS, &RHS)) != 0)
355 if ((res = CompareRootDir(&LHS, &RHS)) != 0)
358 if ((res = CompareRelative(&LHS, &RHS)) != 0)
361 return CompareEndState(&LHS, &RHS);