1#if defined(HAVE_CONFIG_H)
18 h1 = toupper(
static_cast< unsigned char >(h1));
19 h2 = toupper(
static_cast< unsigned char >(h2));
24 if (isdigit(
static_cast< unsigned char >(h1)))
33 if (isdigit(
static_cast< unsigned char >(h2)))
48 const char *get = in.
data();
49 const char *end = get + in.
size();
50 char *ret =
new char[in.
size()];
58 *put =
fromHex(*(get+1), *(get+2));
73static char hexMap[] =
"0123456789ABCDEF";
114 case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
115 case '6':
case '7':
case '8':
case '9':
case 'a':
case 'b':
116 case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
117 case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
118 case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
119 case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z':
120 case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
121 case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
122 case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
123 case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
124 case 'Y':
case 'Z':
case '[':
case ']':
case ',':
case '?':
125 case ':':
case '+':
case '$':
case '-':
case '_':
case '.':
126 case '!':
case '~':
case '*':
case '\'':
case '(':
case ')':
134 unsigned char temp = dat[i];
135 int hi = (temp & 0xf0)>>4;
136 int low = (temp & 0xf);
char fromHex(char h1, char h2)
An iostream that operates on an existing Data.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
static const PreallocateType Preallocate
used only to disambiguate constructors
size_type size() const noexcept
Returns the number of bytes in this Data.
const char * data() const noexcept
Returns a pointer to the contents of this Data.
static Data encode(const Data &input)
static char * decode(const Data &input, unsigned int &decodedLength)
static const char * PERCENT
dcm! – add UnusedChecking(_enum) below;