XmlString operator + (const XmlString & a, const char* b) { XmlString tmp; XmlString::size_type b_len = static_cast<XmlString::size_type>( strlen(b) ); tmp.reserve(a.length() + b_len); tmp += a; tmp.append(b, b_len); return tmp; }
XmlString operator + (const char* a, const XmlString & b) { XmlString tmp; XmlString::size_type a_len = static_cast<XmlString::size_type>( strlen(a) ); tmp.reserve(a_len + b.length()); tmp.append(a, a_len); tmp += b; return tmp; }