Core/String: Replace implicit operator std::string by ToStd::String
This commit is contained in:
@@ -4197,13 +4197,21 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Converts the string to std::string
|
||||
* \return std::string representation
|
||||
*/
|
||||
std::string String::ToStdString() const
|
||||
{
|
||||
return std::string(m_sharedString->string.get(), m_sharedString->size);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Converts the string to upper
|
||||
* \return Upper string
|
||||
*
|
||||
* \param flags Flag for the look up
|
||||
*/
|
||||
|
||||
String String::ToUpper(UInt32 flags) const
|
||||
{
|
||||
if (m_sharedString->size == 0)
|
||||
@@ -4481,16 +4489,6 @@ namespace Nz
|
||||
}
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \brief Converts the string to std::string
|
||||
* \return std::string representation
|
||||
*/
|
||||
|
||||
String::operator std::string() const
|
||||
{
|
||||
return std::string(m_sharedString->string.get(), m_sharedString->size);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets the ith character in the string
|
||||
* \return A reference to the character
|
||||
|
||||
Reference in New Issue
Block a user