Modified StepsID operators to consider 0 equal to all other hash values. See comment in source for details. Changed operator>>(RString&, int&) functions to be based off a template.

This commit is contained in:
Kyzentun
2015-04-10 09:10:51 -06:00
parent 60349d849e
commit 1c3db82537
4 changed files with 45 additions and 13 deletions
-10
View File
@@ -1845,16 +1845,6 @@ void MakeLower( wchar_t *p, size_t iLen )
UnicodeUpperLower( p, iLen, g_LowerCase );
}
bool operator>>(const RString& lhs, int& rhs)
{
return !!(istringstream(lhs) >> rhs);
}
bool operator>>(const RString& lhs, float& rhs)
{
return !!(istringstream(lhs) >> rhs);
}
int StringToInt( const RString &sString )
{
int ret;