mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-18 17:24:42 -04:00
Merge branch 'master' of gitee.com:openharmony/developtools_global_resource_tool into master
Signed-off-by: 张婷 <zhangting201@huawei.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user