mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 19:33:46 -04:00
adapt unicode file path on windows platform
Signed-off-by: liduo <liduo29@huawei.com>
This commit is contained in:
@@ -64,6 +64,11 @@ private:
|
||||
bool IsIgnore(const std::string &filename) const;
|
||||
static bool RemoveAllDirInner(const FileEntry &entry);
|
||||
static bool CreateDirsInner(const std::string &path, std::string::size_type offset);
|
||||
#ifdef _WIN32
|
||||
static std::wstring AdaptLongPathW(const std::string &path);
|
||||
static std::string Wstring2String(const std::wstring &wstr);
|
||||
static std::wstring String2Wstring(const std::string &str);
|
||||
#endif
|
||||
FilePath filePath_;
|
||||
bool isFile_;
|
||||
static const std::string SEPARATE;
|
||||
|
||||
@@ -50,7 +50,7 @@ const static std::string LONG_PATH_HEAD = "\\\\?\\";
|
||||
const static int32_t VERSION_MAX_LEN = 128;
|
||||
static const std::string RESTOOL_NAME = "Restool";
|
||||
static const std::string RESTOOLV2_NAME = "RestoolV2";
|
||||
static const std::string RESTOOL_VERSION = { " 6.1.0.002" };
|
||||
static const std::string RESTOOL_VERSION = { " 6.1.0.003" };
|
||||
const static int32_t TAG_LEN = 4;
|
||||
constexpr static int DEFAULT_POOL_SIZE = 8;
|
||||
static std::set<std::string> g_resourceSet;
|
||||
|
||||
Reference in New Issue
Block a user