@@ -2452,32 +2452,6 @@ void SymbolDatabase::printOut(const char *title) const
24522452 std::cout << std::resetiosflags (std::ios::boolalpha);
24532453}
24542454
2455- static std::string toxml (const std::string &str)
2456- {
2457- std::ostringstream xml;
2458- for (std::size_t i = 0U ; i < str.length (); i++) {
2459- char c = str[i];
2460- switch (c) {
2461- case ' <' :
2462- xml << " <" ;
2463- break ;
2464- case ' >' :
2465- xml << " >" ;
2466- break ;
2467- case ' &' :
2468- xml << " &" ;
2469- break ;
2470- case ' \" ' :
2471- xml << " "" ;
2472- break ;
2473- default :
2474- xml << c;
2475- break ;
2476- }
2477- }
2478- return xml.str ();
2479- }
2480-
24812455void SymbolDatabase::printXml (std::ostream &out) const
24822456{
24832457 out << std::setiosflags (std::ios::boolalpha);
@@ -2488,7 +2462,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
24882462 out << " id=\" " << &*scope << " \" " ;
24892463 out << " type=\" " << scope->type << " \" " ;
24902464 if (!scope->className .empty ())
2491- out << " className=\" " << toxml (scope->className ) << " \" " ;
2465+ out << " className=\" " << ErrorLogger:: toxml (scope->className ) << " \" " ;
24922466 if (scope->classStart )
24932467 out << " classStart=\" " << scope->classStart << ' \" ' ;
24942468 if (scope->classEnd )
@@ -2504,7 +2478,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
25042478 if (!scope->functionList .empty ()) {
25052479 out << " <functionList>" << std::endl;
25062480 for (std::list<Function>::const_iterator function = scope->functionList .begin (); function != scope->functionList .end (); ++function) {
2507- out << " <function id=\" " << &*function << " \" tokenDef=\" " << function->tokenDef << " \" name=\" " << toxml (function->name ()) << ' \" ' ;
2481+ out << " <function id=\" " << &*function << " \" tokenDef=\" " << function->tokenDef << " \" name=\" " << ErrorLogger:: toxml (function->name ()) << ' \" ' ;
25082482 if (function->argCount () == 0U )
25092483 out << " />" << std::endl;
25102484 else {
0 commit comments