Lines Matching refs:string
33 std::string fileName;
42 explicit Extractor(const std::string &source);
57 bool ExtractByName(const std::string &fileName, std::ostream &dest) const;
64 bool ExtractFile(const std::string &fileName, const std::string &targetPath) const;
70 bool HasEntry(const std::string &fileName) const;
71 bool IsDirExist(const std::string &dir) const;
72 bool GetFileBuffer(const std::string& srcPath, std::ostringstream& dest);
73 bool GetFileList(const std::string& srcPath, std::vector<std::string>& assetList);
74 bool GetFileList(const std::string &srcPath, std::set<std::string> &fileSet);
75 bool IsSameHap(const std::string& hapPath) const;
77 std::unique_ptr<FileMapper> GetData(const std::string &fileName, bool safeRegion = false) const;
83 std::unique_ptr<FileMapper> GetMmapData(const std::string &fileName);
88 bool GetFileInfo(const std::string &fileName, FileInfo &fileInfo) const;
90 bool IsHapCompress(const std::string &fileName) const;
92 …bool ExtractToBufByName(const std::string &fileName, std::unique_ptr<uint8_t[]> &dataPtr, size_t &…
96 std::shared_ptr<FileMapper> GetSafeData(const std::string &fileName);
100 std::string hapPath_;
106 static std::string GetLoadFilePath(const std::string &hapPath);
107 …static std::shared_ptr<Extractor> GetExtractor(const std::string &hapPath, bool &newCreate, bool c…
108 static void DeleteExtractor(const std::string &hapPath);
112 static std::unordered_map<std::string, std::shared_ptr<Extractor>> extractorMap_;