Lines Matching full:path
85 // Splits path to strings
87 void SplitPathToParts(const UString &path, UStringVector &pathParts)
91 int len = path.Length();
96 wchar_t c = path[i];
108 void SplitPathToParts(const UString &path, UString &dirPrefix, UString &name)
111 for (i = path.Length() - 1; i >= 0; i--)
112 if (IsCharDirLimiter(path[i]))
114 dirPrefix = path.Left(i + 1);
115 name = path.Mid(i + 1);
118 UString ExtractDirPrefixFromPath(const UString &path)
121 for (i = path.Length() - 1; i >= 0; i--)
122 if (IsCharDirLimiter(path[i]))
124 return path.Left(i + 1);
127 UString ExtractFileNameFromPath(const UString &path)
130 for (i = path.Length() - 1; i >= 0; i--)
131 if (IsCharDirLimiter(path[i]))
133 return path.Mid(i + 1);
142 bool DoesNameContainWildCard(const UString &path)
144 return (path.FindOneOf(kWildCardCharSet) >= 0);
242 void CCensorNode::AddItem(bool include, const UString &path, bool recursive, bool forFile, bool forDir)
245 SplitPathToParts(path, item.PathParts);
304 bool CCensorNode::CheckPath(const UString &path, bool isFile, bool &include) const
307 SplitPathToParts(path, pathParts);
311 bool CCensorNode::CheckPath(const UString &path, bool isFile) const
314 if (CheckPath(path, isFile, include))
330 bool CCensorNode::CheckPathToRoot(bool include, const UString &path, bool isFile) const
333 SplitPathToParts(path, pathParts);
338 void CCensorNode::AddItem2(bool include, const UString &path, bool recursive)
340 if (path.IsEmpty())
344 UString path2 = path;
345 if (IsCharDirLimiter(path[path.Length() - 1]))
347 path2.Delete(path.Length() - 1);
374 void CCensor::AddItem(bool include, const UString &path, bool recursive)
377 if (path.IsEmpty())
378 throw "Empty file path";
379 SplitPathToParts(path, pathParts);
432 bool CCensor::CheckPath(const UString &path, bool isFile) const
438 if (Pairs[i].Head.CheckPath(path, isFile, include))