27 #include <Exception/Exception.h> 47 long lresult =
str2l( txt, base );
49 if ( lresult < INT_MIN || INT_MAX < lresult )
50 throw Exception(
"suplib::str2i( " +
string( txt ) +
"int ) " 51 "Integer out of range" );
55 }
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