示例#1
0
文件: tinystr.cpp 项目: oksangman/Ant
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;
}
示例#2
0
文件: tinystr.cpp 项目: oksangman/Ant
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;
}