Exemplo n.º 1
0
	JString JString::operator+(const char* rhs)
	{
		JString ret;
		unsigned _lenTotal = nLength + strlen(rhs);
		ret.Init(_lenTotal);

		strncat_s(ret, ret.GetLength() + 1, pBuffer, nLength);
		strncat_s(ret, ret.GetLength() + 1, rhs, strlen(rhs));

		return ret;
	}
Exemplo n.º 2
0
	JString JString::operator+(const JString& rhs)
	{
		JString ret;
		unsigned _lenTotal = nLength + rhs.GetLength();
		ret.Init(_lenTotal);

		strncat_s(ret, ret.GetLength() + 1, pBuffer, nLength);
		strncat_s(ret, ret.GetLength() + 1, rhs, rhs.GetLength());

		return ret;
	}