/arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
H A D | extractor.cpp | 56 std::string relativePath = GetRelativePath(srcPath); in GetFileBuffer() local 57 if (!ExtractByName(relativePath, dest)) { in GetFileBuffer() 140 std::string relativePath = GetRelativePath(fileName); in GetData() local 141 return zipFile_.CreateFileMapper(relativePath, FileMapperType::NORMAL_MEM); in GetData() 146 std::string relativePath = GetRelativePath(fileName); in GetSafeData() local 147 if (!StringEndWith(relativePath, EXT_NAME_ABC, sizeof(EXT_NAME_ABC) - 1)) { in GetSafeData() 151 return zipFile_.CreateFileMapper(relativePath, FileMapperType::SAFE_ABC); in GetSafeData() 156 std::string relativePath = GetRelativePath(fileName); in GetMmapData() local 157 return zipFile_.CreateFileMapper(relativePath, FileMapperType::SHARED_MMAP); in GetMmapData() 172 std::string relativePath in ExtractToBufByName() local 178 std::string relativePath = GetRelativePath(fileName); GetFileInfo() local 217 std::string relativePath = GetRelativePath(fileName); IsHapCompress() local [all...] |
H A D | file_path_utils.cpp | 458 std::string relativePath = std::regex_replace(srcPath, srcPattern, ""); in GetRelativePath() local 459 if (relativePath.find(Constants::FILE_SEPARATOR) == 0) { in GetRelativePath() 460 relativePath = relativePath.substr(1); in GetRelativePath() 461 relativePath = relativePath.substr(relativePath.find(std::string(Constants::FILE_SEPARATOR)) + 1); in GetRelativePath() 463 return relativePath; in GetRelativePath()
|
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | path.cpp | 111 Path::Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *allocator) in Path() argument 113 Initializer(relativePath.Mutf8(), allocator); in Path() 122 Path::Path(const std::string &relativePath, const std::string &basePath, ArenaAllocator *allocator) in Path() argument 124 Initializer(relativePath, allocator); in Path()
|
H A D | path.h | 35 Path(const std::string &relativePath, const std::string &basePath, ArenaAllocator *allocator); 37 Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *allocator);
|
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
H A D | file.cpp | 148 std::string relativePath; in ResolveFilenameFromNative() local 154 relativePath = request.substr(0, suffixEnd) + ".abc"; in ResolveFilenameFromNative() 157 relativePath = dirname.substr(0, pos + 1) + request.substr(0, suffixEnd) + ".abc"; in ResolveFilenameFromNative() 161 if (RealPath(relativePath.c_str(), absPath)) { in ResolveFilenameFromNative()
|
/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
H A D | file.cpp | 154 std::string relativePath; in ResolveFilenameFromNative() local 157 relativePath = request.substr(0, suffixEnd) + ".abc"; in ResolveFilenameFromNative() 160 relativePath = dirname.substr(0, pos + 1) + request.substr(0, suffixEnd) + ".abc"; in ResolveFilenameFromNative() 164 if (RealPath(relativePath, absPath)) { in ResolveFilenameFromNative()
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | file.h | 112 static Expected<std::string, Error> GetAbsolutePath(std::string_view relativePath) in GetAbsolutePath() argument 115 auto fp = _fullpath(buffer.data(), relativePath.data(), buffer.size() - 1); in GetAbsolutePath()
|
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | file.h | 156 static Expected<std::string, Error> GetAbsolutePath(std::string_view relativePath) in GetAbsolutePath() argument 159 auto fp = realpath(relativePath.data(), buffer.data()); in GetAbsolutePath()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A D | aot_file_manager.cpp | 606 CString relativePath = ConvertToString(relativePathVal); in GetAbsolutePath() local 608 if (!GetAbsolutePath(relativePath, absPath)) { in GetAbsolutePath() 618 std::string relativePath = ConvertToStdString(relativePathCstr); in GetAbsolutePath() local 620 if (RealPath(relativePath, absPath)) { in GetAbsolutePath()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | module_path_helper.cpp | 812 CString relativePath = requestPath.substr(pos); in ParseCrossModuleFile() local 816 if (relativePath.find(PHYCICAL_FILE_PATH, 0) == 0) { in ParseCrossModuleFile()
|