Lines Matching defs:const
45 static const char * const kCantAutoRename = "Cannot create file with auto name";
46 static const char * const kCantRenameFile = "Cannot rename existing file";
47 static const char * const kCantDeleteOutputFile = "Cannot delete output file";
48 static const char * const kCantDeleteOutputDir = "Cannot delete output folder";
49 static const char * const kCantOpenOutFile = "Cannot open output file";
50 static const char * const kCantOpenInFile = "Cannot open input file";
51 static const char * const kCantSetFileLen = "Cannot set length for output file";
53 static const char * const kCantCreateHardLink = "Cannot create hard link";
54 static const char * const kCantCreateSymLink = "Cannot create symbolic link";
59 Z7_COM7F_IMF(COutStreamWithHash::Write(const void *data, UInt32 size, UInt32 *processedSize))
101 static const char * const kOfficeExtensions =
110 static bool FindExt2(const char *p, const UString &name)
112 const int pathPos = name.ReverseFind_PathSepar();
113 const int dotPos = name.ReverseFind_Dot();
122 const wchar_t c = name[pos];
133 if (s.Len() == j - i && memcmp(p + i, (const char *)s, s.Len()) == 0)
141 static const FChar * const k_ZoneId_StreamName = FTEXT(":Zone.Identifier");
164 static bool WriteZoneFile(CFSTR fileName, const CByteBuffer &buf)
177 int CHardLinkNode::Compare(const CHardLinkNode &a) const
205 HRESULT CArchiveExtractCallback::PrepareHardLinks(const CRecordVector<UInt32> *realIndices)
228 const UInt32 realIndex = realIndices ? (*realIndices)[i] : i;
297 const CExtractNtOptions &ntOptions,
298 const NWildcard::CCensorNode *wildcardCensor,
299 const CArc *arc,
302 const FString &directoryPath,
303 const UStringVector &removePathParts, bool removePartsForAltStreams,
398 const UInt64 kMax = (UInt64)1 << 31;
417 Z7_COM7F_IMF(CArchiveExtractCallback::SetCompleted(const UInt64 *completeValue))
438 Z7_COM7F_IMF(CArchiveExtractCallback::SetRatioInfo(const UInt64 *inSize, const UInt64 *outSize))
446 void CArchiveExtractCallback::CreateComplexDirectory(const UStringVector &dirPathParts, FString &fullPath)
454 const UString &s = dirPathParts[0];
475 const UString &s = dirPathParts[i];
478 const bool isFinalDir = (i == dirPathParts.Size() - 1 && _item.IsDir);
534 static void AddPathToMessage(UString &s, const FString &path)
540 HRESULT CArchiveExtractCallback::SendMessageError(const char *message, const FString &path)
547 HRESULT CArchiveExtractCallback::SendMessageError_with_LastError(const char *message, const FString &path)
561 HRESULT CArchiveExtractCallback::SendMessageError2(HRESULT errorCode, const char *message, const FString &path1, const FString &path2)
596 static UString GetDirPrefixOf(const UString &src)
617 void Parse(const UString &path);
620 void CLinkLevelsInfo::Parse(const UString &path)
633 const UString &s = parts[i];
656 bool IsSafePath(const UString &path);
657 bool IsSafePath(const UString &path)
667 bool CensorNode_CheckPath2(const NWildcard::CCensorNode &node, const CReadArcItem &item, bool &include);
668 bool CensorNode_CheckPath2(const NWildcard::CCensorNode &node, const CReadArcItem &item, bool &include)
713 bool CensorNode_CheckPath(const NWildcard::CCensorNode &node, const CReadArcItem &item)
722 static FString MakePath_from_2_Parts(const FString &prefix, const FString &path)
751 const size_t kBufSize = 1 << 16;
782 const UInt32 index = _index;
834 const void *data;
853 bool isOkReparse = reparse.Parse((const Byte *)data, dataSize);
869 // const AString s = GetAnsiString(_link.linkPath);
964 const UString s = prop.bstrVal;
984 const UInt32 index = _index;
1174 const int slashPos = fullProcessedPath.ReverseFind_PathSepar();
1175 const FString realFullProcessedPath = fullProcessedPath.Left((unsigned)(slashPos + 1)) + fileInfo.Name;
1300 const UInt32 index = _index;
1324 const int renIndex = _renamedFiles.FindInSorted(CIndexToPathPair(_item.ParentIndex));
1327 const CIndexToPathPair &pair = _renamedFiles[(unsigned)renIndex];
1401 const int linkIndex = _hardLinks.IDs.FindInSorted2(h);
1890 const UInt64 processedSize = _outFileStreamSpec->ProcessedSize;
1893 const bool res = _outFileStreamSpec->File.SetLength(processedSize);
1897 const HRESULT hres2 = SendMessageError_with_LastError(kCantSetFileLen, us2fs(_item.Path));
1915 const FString path = _diskFilePath + k_ZoneId_StreamName;
1946 const FString &fullProcessedPath,
1947 const CLinkInfo &linkInfo,
1998 const HRESULT errorCode = GetLastError_noZero_HRESULT();
2104 bool CLinkInfo::Parse(const Byte *data, size_t dataSize, bool isLinuxData)
2116 utf.SetFrom_CalcLen((const char *)data, (unsigned)dataSize);
2126 const wchar_t c = u[0];
2197 const HRESULT res2 = WriteStream(_outFileStream, _outMemBuf, reparseSize);
2207 const HRESULT res2 = CloseFile();
2286 // const AString s = GetAnsiString(_diskFilePath);
2336 const void *data;
2344 if (CheckNtSecure((const Byte *)data, dataSize))
2349 ::SetFileSecurityW(fs2us(_diskFilePath), securInfo, (PSECURITY_DESCRIPTOR)(void *)(const Byte *)(data));
2436 const UStringVector &pathParts = _item.PathParts;
2437 const UString processedPath (MakePathFromParts(pathParts));
2458 const FString fullProcessedPath = Hash_GetFullFilePath();
2479 const FString fullProcessedPath = Hash_GetFullFilePath();
2506 void CDirPathSortPair::SetNumSlashes(const FChar *s)
2522 bool CDirPathTime::SetDirTime() const
2553 const CDirPathTime &dpt = _extractedFolders[pairs[i].Index];
2566 const CDelayedSymLink &link = _delayedSymLinks[i];
2587 const HRESULT res2 = SetDirsTimes();