/external/lzma/CPP/Common/ |
Wildcard.cpp | 77 void SplitPathToParts(const UString &path, UStringVector &pathParts)
79 pathParts.Clear();
89 pathParts.Add(name);
93 pathParts.Add(name);
185 return ForFile && ForDir && WildcardMatching && PathParts.Size() == 1 && PathParts.Front() == L"*";
188 bool CItem::CheckPath(const UStringVector &pathParts, bool isFile) const
194 if (PathParts.IsEmpty())
196 // PathParts.IsEmpty() means all items (universal wildcard)
199 if (pathParts.Size() <= 1) [all...] |
Wildcard.h | 15 void SplitPathToParts(const UString &path, UStringVector &pathParts);
30 unsigned GetNumPrefixParts_if_DrivePath(UStringVector &pathParts);
35 UStringVector PathParts;
44 return PathParts.Size() == 1 && !ForFile && ForDir && IsDriveColonName(PathParts[0]);
51 bool CheckPath(const UStringVector &pathParts, bool isFile) const;
58 bool CheckPathCurrent(bool include, const UStringVector &pathParts, bool isFile) const;
61 bool CheckPathVect(const UStringVector &pathParts, bool isFile, bool &include) const;
85 bool CheckPathToRoot(bool include, UStringVector &pathParts, bool isFile) const;
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/ |
Ecc.py | 293 PathParts = TmpPath.split(os.sep)
294 if len(PathParts) == 0:
296 if len(PathParts) == 1:
297 if PathParts[0].strip().endswith(':'):
298 return PathParts[0].upper()
302 if Dir.upper() == PathParts[0].upper():
305 if PathParts[0].strip().endswith(':'):
306 PathParts[0] = PathParts[0].upper()
307 ParentDir = PathParts[0] [all...] |
/external/lzma/CPP/7zip/UI/Common/ |
EnumDirItems.cpp | 481 if (item.Recursive || item.PathParts.Size() != 1)
483 const UString &name = item.PathParts.Front();
541 const UString &name = item.PathParts.Front();
607 UStringVector pathParts;
608 pathParts.Add(fs2us(fi.Name));
609 if (curNode.CheckPathToRoot(false, pathParts, !isDir))
642 UStringVector pathParts;
643 pathParts.Add(fs2us(fi.Name));
645 fullPath, pathParts, dirItems));
739 if (item.PathParts.Size() < 1) [all...] |
OpenArchive.h | 228 UStringVector PathParts; // without altStream name, path from root or from _baseParentFolder, if _use_baseParentFolder_mode
|
OpenArchive.cpp | 794 item.PathParts.Clear();
877 RINOK(GetItemPathToParent(mainIndex, item._baseParentFolder, item.PathParts));
880 if ((item.WriteToAltStreamIfColon || needFindAltStream) && !item.PathParts.IsEmpty())
884 UString &s = item.PathParts.Back();
895 item.PathParts.DeleteBack();
908 , item.PathParts);
[all...] |
ArchiveExtractCallback.cpp | 495 if (node.CheckPathVect(item.PathParts, !item.MainIsDir, include))
513 UStringVector pathParts2 = item.PathParts;
770 UStringVector pathParts;
771 SplitPathToParts(linkPath, pathParts);
775 if (CompareFileNames(_removePathParts[i], pathParts[i]) != 0)
782 pathParts.DeleteFrontal(_removePathParts.Size());
783 linkPath = MakePathFromParts(pathParts);
800 UStringVector &pathParts = _item.PathParts;
811 if (!pathParts.IsEmpty()) [all...] |
ArchiveCommandLine.cpp | 627 if (item.Recursive || item.PathParts.Size() != 1)
631 ConvertToLongName(prefix, item.PathParts.Front());
[all...] |