You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScCommand.cpp 264B

123456789101112131415161718
  1. //
  2. // Created by robin on 6/27/15.
  3. //
  4. #include "ScCommand.h"
  5. ScCommand::~ScCommand()
  6. {
  7. }
  8. int ScCommand::hexToDec(const char c)
  9. {
  10. if (c >= 'a')
  11. return 10 + (c - ('a' - 'A')) - 'A';
  12. if (c >= 'A')
  13. return 10 + c - 'A';
  14. return c - '0';
  15. }