30 if (v < 26)
return 'A' + v;
31 if (v < 52)
return 'a' + (v - 26);
32 if (v < 62)
return '0' + (v - 52);
33 if (v == 62)
return '+';
40 if ((
'A' <= v) && (v <=
'Z'))
return (v -
'A');
41 if ((
'a' <= v) && (v <=
'z'))
return (v -
'a') + 26;
42 if ((
'0' <= v) && (v <=
'9'))
return (v -
'0') + 52;
43 if (v ==
'+')
return 62;
44 if (v ==
'/')
return 63;
std::optional< T > Optional
Optional helper class to wrap optional values within.
static constexpr char PADDING
static constexpr std::size_t BITS_PER_CHAR
static constexpr uint8 DECODE_ERROR
static constexpr uint8 Decode(uint8 v)
static constexpr char Encode(uint8 v)
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)