Remove Nz::String and Nz::StringStream

This commit is contained in:
Jérôme Leclercq
2020-09-25 19:31:01 +02:00
parent d665af1f9d
commit 2b6a463a45
212 changed files with 1877 additions and 8721 deletions

View File

@@ -78,7 +78,8 @@ namespace Nz
* \param address Hostname or textual IP address
*/
inline IpAddress::IpAddress(const char* address)
inline IpAddress::IpAddress(const char* address) :
IpAddress()
{
BuildFromAddress(address);
}
@@ -88,17 +89,21 @@ namespace Nz
*
* \param address Hostname or textual IP address
*/
inline IpAddress::IpAddress(const String& address)
inline IpAddress::IpAddress(const std::string& address) :
IpAddress()
{
BuildFromAddress(address.GetConstBuffer());
BuildFromAddress(address);
}
inline bool IpAddress::BuildFromAddress(const std::string& address)
{
return BuildFromAddress(address.c_str());
}
/*!
* \brief Gets the port
* \return Port attached to the IP address
*/
inline UInt16 IpAddress::GetPort() const
{
return m_port;