The IsXDigit method
This method determines whether multibyte character c or wide character c is a hexadecimal number character according to the rules of the current locale.
ITBool IsXDigit(const char *c, int nbytes = ITLocale::ScanNoLimit) const
ITBool IsXDigit(ITWChar c) const
Only the ten ASCII digit characters are in the hexadecimal class. Multibyte versions of these digits or alternative representations of these digits (for example, Hindi or Kanji digits) are not in this class, but instead are in the alpha class.
The nbytes parameter specifies
the length of the corresponding multibyte character c You can
provide an integer to specify the number of bytes in c, in
which case this method reads up to this many bytes from c when
trying to form a complete character. Or you can set nbytes to ITLocale::ScanNoLimit
(the
default), in which case this method reads as many bytes as necessary
to form a complete character.
This method returns TRUE
if c is
a hexadecimal number character; otherwise it returns FALSE
.
If
there is an error, this method returns FALSE
. Call ITLocale::GetError() to
retrieve a specific error message.