Add toUShort to String
This commit is contained in:
@@ -569,6 +569,12 @@ short String::toShort(void)const
|
||||
return short(::atoi(str()));
|
||||
}
|
||||
|
||||
unsigned short String::toUShort(void)const
|
||||
{
|
||||
if(isNull())return 0;
|
||||
return unsigned short(::atoi(str()));
|
||||
}
|
||||
|
||||
float String::toFloat(void)const
|
||||
{
|
||||
if(isNull())return 0.00;
|
||||
|
||||
Reference in New Issue
Block a user