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; }
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; }