28 #include <Exception/Exception.h> 48 long lresult =
str2l( txt, base );
50 if ( lresult < INT_MIN || INT_MAX < lresult )
51 throw Exception(
"suplib::str2i( " + std::string( txt ) +
"int ) " 52 "Integer out of range" );
56 }
catch( Exception& E ) {
long str2l(const char *txt, int base=10)
convert string to long number
int str2i(const char *txt, int base=10)
convert string to integer number