/* * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. * Description: Implementation for Css style parser. * Create: 2020/03/31 */ #ifndef FOUNDATION_ACE_CORE_CSS_STYLE_PARSER_H #define FOUNDATION_ACE_CORE_CSS_STYLE_PARSER_H #include #include #include using ClassStyleMap = std::unordered_map>; class CssStyleParser { public: void parseCssStyle(const std::string& style); const std::unordered_map& getArributesMap(const std::string& key) const; static std::vector splitString(const std::string& srcString, const std::string& splitString); private: ClassStyleMap fStyleMap; }; #endif