Made To<type> const
This was SVN commit r50.
This commit is contained in:
parent
24d48f2308
commit
eb527a59c3
@ -75,33 +75,33 @@ CStr::~CStr()
|
||||
}
|
||||
|
||||
|
||||
_int CStr::ToInt()
|
||||
_int CStr::ToInt() const
|
||||
{
|
||||
return _ttoi(m_String.c_str());
|
||||
}
|
||||
|
||||
_uint CStr::ToUInt()
|
||||
_uint CStr::ToUInt() const
|
||||
{
|
||||
return _uint(_ttoi(m_String.c_str()));
|
||||
}
|
||||
|
||||
_long CStr::ToLong()
|
||||
_long CStr::ToLong() const
|
||||
{
|
||||
return _ttol(m_String.c_str());
|
||||
}
|
||||
|
||||
_ulong CStr::ToULong()
|
||||
_ulong CStr::ToULong() const
|
||||
{
|
||||
return _ulong(_ttol(m_String.c_str()));
|
||||
}
|
||||
|
||||
|
||||
_float CStr::ToFloat()
|
||||
_float CStr::ToFloat() const
|
||||
{
|
||||
return _tstod(m_String.c_str(), NULL);
|
||||
}
|
||||
|
||||
_double CStr::ToDouble()
|
||||
_double CStr::ToDouble() const
|
||||
{
|
||||
return _tstod(m_String.c_str(), NULL);
|
||||
}
|
||||
|
@ -102,12 +102,12 @@ public:
|
||||
~CStr(); // Destructor
|
||||
|
||||
// Conversions
|
||||
_int ToInt();
|
||||
_uint ToUInt();
|
||||
_long ToLong();
|
||||
_ulong ToULong();
|
||||
_float ToFloat();
|
||||
_double ToDouble();
|
||||
_int ToInt() const;
|
||||
_uint ToUInt() const;
|
||||
_long ToLong() const;
|
||||
_ulong ToULong() const;
|
||||
_float ToFloat() const;
|
||||
_double ToDouble() const;
|
||||
|
||||
_long Length(){return m_String.length();}
|
||||
// Retrieves the substring within the string
|
||||
|
Loading…
Reference in New Issue
Block a user