merge with master
[platform/framework/web/wrt-plugins-common.git] / src / Commons / Base64.cpp
index ec8f937..94ac901 100644 (file)
 
 namespace WrtDeviceApis {
 namespace Commons {
-
 const std::string Base64::chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-    "abcdefghijklmnopqrstuvwxyz"
-    "0123456789+/";
+                                  "abcdefghijklmnopqrstuvwxyz"
+                                  "0123456789+/";
 
 bool Base64::is_base64(unsigned char c)
 {
@@ -62,7 +61,7 @@ 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;
@@ -179,6 +178,5 @@ bool Base64::is_base64_string(const std::string& str)
 {
     return ((str.size() % 4) == 0);
 }
-
 }
 } //WrtDeviceApisCommon