MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / toXMLString

Function toXMLString

base/poco/XML/src/XMLString.cpp:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45XMLString toXMLString(const std::string& str)
46{
47 XMLString result;
48 result.reserve(str.size());
49
50 for (std::string::const_iterator it = str.begin(); it != str.end();)
51 {
52 wchar_t c;
53 int n = mbtowc(&c, &*it, MB_CUR_MAX);
54 result += c;
55 it += (n > 0 ? n : 1);
56 }
57 return result;
58}
59
60
61#endif // XML_UNICODE_WCHAR_T

Callers 15

XMLWriter.cppFile · 0.85
addAttributesMethod · 0.85
writeMarkupMethod · 0.85
uniquePrefixMethod · 0.85
DOMParser.cppFile · 0.85
SAXParser.cppFile · 0.85
Document.cppFile · 0.85
AbstractNode.cppFile · 0.85
MutationEvent.cppFile · 0.85

Calls 4

reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected