Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

StringUtils.h 888B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Created by robin on 6/20/16.
  3. //
  4. #ifndef MIFARE_TOOLS_HEX_H
  5. #define MIFARE_TOOLS_HEX_H
  6. #include <string>
  7. #include <DBO/Result.h>
  8. class StringUtils
  9. {
  10. public:
  11. static const std::string hex;
  12. static std::string rawToHuman(unsigned char c);
  13. static std::string rawToHuman(char c);
  14. static std::string rawToHuman(unsigned short c);
  15. static std::string rawToHuman(short c);
  16. static std::string rawToHuman(unsigned int c);
  17. static std::string rawToHuman(int c);
  18. static std::string rawToHuman(unsigned long c);
  19. static std::string rawToHuman(long c);
  20. static std::string rawToHuman(std::string raw);
  21. static ResultString humanToRaw(std::string human);
  22. static std::string toLower(std::string str);
  23. static char toLower(char c);
  24. static std::string toUpper(std::string str);
  25. static char toUpper(char c);
  26. };
  27. #endif //MIFARE_TOOLS_HEX_H