add IsHexVal.
This commit is contained in:
@@ -43,6 +43,19 @@ bool IsAnInt( const CString &s )
|
|||||||
return true;
|
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 )
|
float TimeToSeconds( CString sHMS )
|
||||||
{
|
{
|
||||||
CStringArray arrayBits;
|
CStringArray arrayBits;
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ inline float froundf( const float f, const float fRoundInterval )
|
|||||||
|
|
||||||
int power_of_two(int input);
|
int power_of_two(int input);
|
||||||
bool IsAnInt( const CString &s );
|
bool IsAnInt( const CString &s );
|
||||||
|
bool IsHexVal( const CString &s );
|
||||||
float TimeToSeconds( CString sHMS );
|
float TimeToSeconds( CString sHMS );
|
||||||
CString SecondsToTime( float fSecs );
|
CString SecondsToTime( float fSecs );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user