30 if (v < 26)
return 'A'+v;
31 else return '2' + (v-26);
37 if (v ==
'0')
return Decode(
'O');
38 if (v ==
'1')
return Decode(
'l');
39 if (v ==
'8')
return Decode(
'B');
40 if ((
'A' <= v) && (v <=
'Z'))
return (v-
'A');
41 if ((
'a' <= v) && (v <=
'z'))
return (v-
'a');
42 if ((
'2' <= v) && (v <=
'7'))
return (v-
'2')+26;
std::optional< T > Optional
Optional helper class to wrap optional values within.
static constexpr std::size_t BITS_PER_CHAR
static constexpr char Encode(uint8 v)
static constexpr uint8 Decode(uint8 v)
static constexpr uint8 DECODE_ERROR
static constexpr char PADDING
static Optional< std::vector< uint8 > > Decode(std::string_view data)
static std::string Encode(std::vector< uint8 > const &data)
static std::string Encode(std::vector< uint8 > const &data)
static Optional< std::vector< uint8 > > Decode(std::string_view data)