find.hpp
来自「7Zip软件实现: 七种编码格式的压缩与解压缩功能。」· HPP 代码 · 共 49 行
HPP
49 行
#ifndef _RAR_FINDDATA_#define _RAR_FINDDATA_struct FindData{ char Name[NM]; wchar NameW[NM]; Int64 Size; uint FileAttr; uint FileTime; bool IsDir; RarTime mtime; RarTime ctime; RarTime atime;#ifdef _WIN_32 char ShortName[NM]; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; #endif bool Error;};class FindFile{ private:#ifdef _WIN_32 static HANDLE Win32Find(HANDLE hFind,const char *Mask,const wchar *MaskW,struct FindData *fd);#endif char FindMask[NM]; wchar FindMaskW[NM]; int FirstCall;#ifdef _WIN_32 HANDLE hFind;#else DIR *dirp;#endif public: FindFile(); ~FindFile(); void SetMask(const char *FindMask); void SetMaskW(const wchar *FindMaskW); bool Next(struct FindData *fd,bool GetSymLink=false); static bool FastFind(const char *FindMask,const wchar *FindMaskW,struct FindData *fd,bool GetSymLink=false);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?