12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // Created by robin on 6/20/16.
- //
-
- #ifndef MIFARE_TOOLS_HEX_H
- #define MIFARE_TOOLS_HEX_H
-
-
- #include <string>
- #include <DBO/Result.h>
-
- class StringUtils
- {
- public:
- static const std::string hex;
-
- static std::string rawToHuman(unsigned char c);
- static std::string rawToHuman(char c);
- static std::string rawToHuman(unsigned short c);
- static std::string rawToHuman(short c);
- static std::string rawToHuman(unsigned int c);
- static std::string rawToHuman(int c);
- static std::string rawToHuman(unsigned long c);
- static std::string rawToHuman(long c);
- static std::string rawToHuman(std::string raw);
-
- static ResultString humanToRaw(std::string human);
-
- static std::string toLower(std::string str);
- static char toLower(char c);
-
- static std::string toUpper(std::string str);
- static char toUpper(char c);
- };
-
-
- #endif //MIFARE_TOOLS_HEX_H
|