G
Ghost
I am trying to determine if a string consists entirely of Hexidecimal
digits. Is there some way to check a string or a character to see if
it passes this criteria? I know in C, there is the isxdigit(char)
function.
The only solution I have found so far is to try to convert the string
to Hex and if there are any Exceptions thrown, then the string does not
contain all hex digits. I don't want to have to write my own function
although it would not be hard to do. Thanks for any advice.
digits. Is there some way to check a string or a character to see if
it passes this criteria? I know in C, there is the isxdigit(char)
function.
The only solution I have found so far is to try to convert the string
to Hex and if there are any Exceptions thrown, then the string does not
contain all hex digits. I don't want to have to write my own function
although it would not be hard to do. Thanks for any advice.