Lines Matching refs:pathParts

79 void SplitPathToParts(const UString &path, UStringVector &pathParts)  in SplitPathToParts()  argument
81 pathParts.Clear(); in SplitPathToParts()
91 pathParts.Add(name); in SplitPathToParts()
95 pathParts.Add(name); in SplitPathToParts()
182 bool CItem::CheckPath(const UStringVector &pathParts, bool isFile) const in CheckPath() argument
199 int delta = (int)pathParts.Size() - (int)PathParts.Size(); in CheckPath()
232 if (!DoesWildcardMatchName(PathParts[i], pathParts[i + d])) in CheckPath()
237 if (CompareFileNames(PathParts[i], pathParts[i + d]) != 0) in CheckPath()
334 bool CCensorNode::CheckPathCurrent(bool include, const UStringVector &pathParts, bool isFile) const in CheckPathCurrent() argument
338 if (items[i].CheckPath(pathParts, isFile)) in CheckPathCurrent()
343 bool CCensorNode::CheckPathVect(const UStringVector &pathParts, bool isFile, bool &include) const in CheckPathVect() argument
345 if (CheckPathCurrent(false, pathParts, isFile)) in CheckPathVect()
351 bool finded = CheckPathCurrent(true, pathParts, isFile); in CheckPathVect()
352 if (pathParts.Size() <= 1) in CheckPathVect()
354 int index = FindSubNode(pathParts.Front()); in CheckPathVect()
357 UStringVector pathParts2 = pathParts; in CheckPathVect()
397 bool CCensorNode::CheckPathToRoot(bool include, UStringVector &pathParts, bool isFile) const in CheckPathToRoot() argument
399 if (CheckPathCurrent(include, pathParts, isFile)) in CheckPathToRoot()
403 pathParts.Insert(0, Name); in CheckPathToRoot()
404 return Parent->CheckPathToRoot(include, pathParts, isFile); in CheckPathToRoot()
460 unsigned GetNumPrefixParts_if_DrivePath(UStringVector &pathParts) in GetNumPrefixParts_if_DrivePath() argument
462 if (pathParts.IsEmpty()) in GetNumPrefixParts_if_DrivePath()
466 if (pathParts[0].IsEmpty()) in GetNumPrefixParts_if_DrivePath()
468 if (pathParts.Size() < 4 in GetNumPrefixParts_if_DrivePath()
469 || !pathParts[1].IsEmpty() in GetNumPrefixParts_if_DrivePath()
470 || pathParts[2] != L"?") in GetNumPrefixParts_if_DrivePath()
474 if (NWildcard::IsDriveColonName(pathParts[testIndex])) in GetNumPrefixParts_if_DrivePath()
481 static unsigned GetNumPrefixParts(const UStringVector &pathParts) in GetNumPrefixParts() argument
483 if (pathParts.IsEmpty()) in GetNumPrefixParts()
488 if (IsDriveColonName(pathParts[0])) in GetNumPrefixParts()
490 if (!pathParts[0].IsEmpty()) in GetNumPrefixParts()
493 if (pathParts.Size() == 1) in GetNumPrefixParts()
495 if (!pathParts[1].IsEmpty()) in GetNumPrefixParts()
497 if (pathParts.Size() == 2) in GetNumPrefixParts()
499 if (pathParts[2] == L".") in GetNumPrefixParts()
503 if (pathParts[2] == L"?") in GetNumPrefixParts()
505 if (pathParts.Size() == 3) in GetNumPrefixParts()
507 if (IsDriveColonName(pathParts[3])) in GetNumPrefixParts()
509 if (!pathParts[3].IsEqualTo_Ascii_NoCase("UNC")) in GetNumPrefixParts()
517 if (pathParts.Size() <= networkParts) in GetNumPrefixParts()
518 return pathParts.Size(); in GetNumPrefixParts()
523 return pathParts[0].IsEmpty() ? 1 : 0; in GetNumPrefixParts()
533 UStringVector pathParts; in AddItem() local
534 SplitPathToParts(path, pathParts); in AddItem()
537 if (pathParts.Back().IsEmpty()) in AddItem()
540 pathParts.DeleteBack(); in AddItem()
549 if (pathParts.Size() >= 3 in AddItem()
550 && pathParts[0].IsEmpty() in AddItem()
551 && pathParts[1].IsEmpty() in AddItem()
552 && pathParts[2] == L"?") in AddItem()
560 const unsigned numPrefixParts = GetNumPrefixParts(pathParts); in AddItem()
565 if (numPrefixParts != 0 && pathParts.Size() > numPrefixParts) in AddItem()
566 numSkipParts = pathParts.Size() - 1; in AddItem()
570 for (unsigned i = numPrefixParts; i < pathParts.Size(); i++) in AddItem()
572 const UString &part = pathParts[i]; in AddItem()
578 if (dotsIndex == (int)pathParts.Size() - 1) in AddItem()
579 numSkipParts = pathParts.Size(); in AddItem()
581 numSkipParts = pathParts.Size() - 1; in AddItem()
587 const UString &front = pathParts.Front(); in AddItem()
595 pathParts.Delete(0); in AddItem()
605 if (pathParts.IsEmpty() || pathParts.Size() == 1 && pathParts[0].IsEmpty()) in AddItem()
608 pathParts.Clear(); in AddItem()
609 pathParts.Add(UString("*")); in AddItem()
617 item.PathParts = pathParts; in AddItem()