Example #1
0
XmlString operator + (const XmlString & a, const XmlString & b)
{
	XmlString tmp;
	tmp.reserve(a.length() + b.length());
	tmp += a;
	tmp += b;
	return tmp;
}
Example #2
0
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;
}
Example #3
0
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;
}