stringutil added util::base64_encode/decode
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define UTIL_STRINGUTIL_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "../typedefs.h"
|
||||
|
||||
namespace util {
|
||||
@@ -21,6 +22,10 @@ namespace util {
|
||||
extern void trim(std::string &s);
|
||||
|
||||
extern std::wstring to_wstring(double x, int precision);
|
||||
|
||||
extern std::string base64_encode(const ubyte* data, size_t size);
|
||||
extern std::vector<ubyte> base64_decode(const char* str, size_t size);
|
||||
extern std::vector<ubyte> base64_decode(const std::string& str);
|
||||
}
|
||||
|
||||
#endif // UTIL_STRINGUTIL_H_
|
||||
Reference in New Issue
Block a user