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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user