namespace WrtDeviceApis {
namespace Commons {
-
const std::string Base64::chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "abcdefghijklmnopqrstuvwxyz"
- "0123456789+/";
+ "abcdefghijklmnopqrstuvwxyz"
+ "0123456789+/";
bool Base64::is_base64(unsigned char c)
{
}
std::string Base64::encode(unsigned char* data,
- std::size_t num)
+ std::size_t num)
{
std::string ret;
int i = 0;
{
return ((str.size() % 4) == 0);
}
-
}
} //WrtDeviceApisCommon