Merge branch 'master' of gitee.com:openharmony/developtools_global_resource_tool into master

Signed-off-by: 张婷 <zhangting201@huawei.com>
This commit is contained in:
张婷
2024-02-28 01:47:02 +00:00
committed by Gitee
6 changed files with 18 additions and 30 deletions
-1
View File
@@ -32,7 +32,6 @@ public:
std::vector<ResourceId> GetHeaderId() const;
int32_t GetId(ResType resType, const std::string &name) const;
int32_t GetSystemId(ResType resType, const std::string &name) const;
bool IsValidName(const std::string &name) const;
bool PushCache(ResType resType, const std::string &name, int32_t id);
void PushDelId(int32_t id);
+7 -6
View File
@@ -222,17 +222,18 @@ public:
*/
static void RemoveSpaces(std::string &str);
/**
* @brief Check whether the system resource name is valid
* @param str system resource name
*/
static bool IsValidSystemName(const std::string &name);
/**
* @brief Check whether the value is int
* @param snode cJSON node
*/
static bool IsIntValue(const cJSON *node);
/**
* @brief Check whether the resource name is valid
* @param str resource name
*/
static bool IsValidName(const std::string &name);
private:
enum class IgnoreType {
IGNORE_FILE,