MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / toStringList

Function toStringList

lib/importproject.cpp:792–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792static 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
808static void importPropertyGroup(const tinyxml2::XMLElement *node, std::map<std::string, std::string, cppcheck::stricmp> &variables, std::string &includePath)
809{

Callers 3

importVcxprojMethod · 0.85
importVcxitemsMethod · 0.85
importBcb6PrjMethod · 0.85

Calls 3

findMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected