| 790 | } |
| 791 | |
| 792 | static std::list<std::string> toStringList(const std::string &s) |
| 793 | { |
| 794 | std::list<std::string> ret; |
| 795 | std::string::size_type pos1 = 0; |
| 796 | std::string::size_type pos2; |
| 797 | while ((pos2 = s.find(';',pos1)) != std::string::npos) { |
| 798 | ret.push_back(s.substr(pos1, pos2-pos1)); |
| 799 | pos1 = pos2 + 1; |
| 800 | if (pos1 >= s.size()) |
| 801 | break; |
| 802 | } |
| 803 | if (pos1 < s.size()) |
| 804 | ret.push_back(s.substr(pos1)); |
| 805 | return ret; |
| 806 | } |
| 807 | |
| 808 | static void importPropertyGroup(const tinyxml2::XMLElement *node, std::map<std::string, std::string, cppcheck::stricmp> &variables, std::string &includePath) |
| 809 | { |
no test coverage detected