Home | History | Annotate | Download | only in Common

Lines Matching defs:pathParts

87 void SplitPathToParts(const UString &path, UStringVector &pathParts)

89 pathParts.Clear();
99 pathParts.Add(name);
105 pathParts.Add(name);
170 bool CItem::CheckPath(const UStringVector &pathParts, bool isFile) const
174 int delta = (int)pathParts.Size() - (int)PathParts.Size();
197 for (i = 0; i < PathParts.Size(); i++)
198 if (!CompareWildCardWithName(PathParts[i], pathParts[i + d]))
200 if (i == PathParts.Size())
224 if (item.PathParts.Size() <= 1)
229 const UString &front = item.PathParts.Front();
238 item.PathParts.Delete(0);
245 SplitPathToParts(path, item.PathParts);
257 if (item.Recursive || item.PathParts.Size() > 1)
273 bool CCensorNode::CheckPathCurrent(bool include, const UStringVector &pathParts, bool isFile) const
277 if (items[i].CheckPath(pathParts, isFile))
282 bool CCensorNode::CheckPath(UStringVector &pathParts, bool isFile, bool &include) const
284 if (CheckPathCurrent(false, pathParts, isFile))
290 bool finded = CheckPathCurrent(true, pathParts, isFile);
291 if (pathParts.Size() == 1)
293 int index = FindSubNode(pathParts.Front());
296 UStringVector pathParts2 = pathParts;
306 UStringVector pathParts;
307 SplitPathToParts(path, pathParts);
308 return CheckPath(pathParts, isFile, include);
319 bool CCensorNode::CheckPathToRoot(bool include, UStringVector &pathParts, bool isFile) const
321 if (CheckPathCurrent(include, pathParts, isFile))
325 pathParts.Insert(0, Name);
326 return Parent->CheckPathToRoot(include, pathParts, isFile);
332 UStringVector pathParts;
333 SplitPathToParts(path, pathParts);
334 return CheckPathToRoot(include, pathParts, isFile);
376 UStringVector pathParts;
379 SplitPathToParts(path, pathParts);
381 if (pathParts.Back().IsEmpty())
384 pathParts.DeleteBack();
386 const UString &front = pathParts.Front();
394 for (int i = 0; i < pathParts.Size(); i++)
396 const UString &part = pathParts[i];
406 if (pathParts.Size() > 1)
407 numAbsParts = pathParts.Size() - 1;
413 const UString &front = pathParts.Front();
418 pathParts.Delete(0);
425 item.PathParts = pathParts;