add IsHexVal.

This commit is contained in:
Glenn Maynard
2003-01-03 22:51:01 +00:00
parent 6341356c9e
commit 07bb50ec90
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -43,6 +43,19 @@ bool IsAnInt( const CString &s )
return true;
}
bool IsHexVal( const CString &s )
{
if( s[0] == '\0' )
return false;
for( int i=0; s[i]; i++ )
if( !(s[i] >= '0' && s[i] <= '9') &&
!(toupper(s[i]) >= 'A' && toupper(s[i]) <= 'F'))
return false;
return true;
}
float TimeToSeconds( CString sHMS )
{
CStringArray arrayBits;