| 279 | |
| 280 | |
| 281 | bool isHexDigit( char c ) |
| 282 | { |
| 283 | if ((c >= '0') && (c <= '9')) return true; |
| 284 | if ((c >= 'A') && (c <= 'F')) return true; |
| 285 | if ((c >= 'a') && (c <= 'f')) return true; |
| 286 | |
| 287 | return false; |
| 288 | } |
| 289 | |
| 290 | // TODO: Use nDstSz to prevent buffer overflow. |
| 291 | // Alternatively, Colorize() may simply return a std::string. |