source/util/Util.cpp
// todotodo: these Util::ToXXX functions don't fail gracefully,
// they just return garbage (in the uint case usually just -1 casted to an unsigned type it looks like)

these Util::ToXXX functions don't fail gracefully,
they just return garbage (in the uint case usually just -1 casted to an unsigned type it looks like)
these Util :: ToXXX functions don ' t fail gracefully they just return garbage ( in the uint case usually just - 1 casted to an unsigned type it looks like )
uint16_t Util::toUInt16( string &s )
{
	uint16_t result;
	stringstream SS;
	SS << s;
	SS >> result;
	return result;
}
uint16_t Util :: toUInt16 ( string & s ) { uint16_t result ; stringstream SS ; SS << s ; SS >> result ; return result ; }
todotodo: these Util::ToXXX functions don't fail gracefully,
they just return garbage (in the uint case usually just -1 casted to an unsigned type it looks like)
todotodo : these Util :: ToXXX functions don ' t fail gracefully they just return garbage ( in the uint case usually just - 1 casted to an unsigned type it looks like )