Common/string_util: add StringFromBuffer function

convert input buffer (std::vector<u8>) to string, stripping zero chars
This commit is contained in:
mailwl 2018-06-06 16:38:54 +03:00
parent ee1eb8cfdf
commit a2efb1dd48
3 changed files with 15 additions and 22 deletions

View file

@ -21,6 +21,8 @@ std::string ToUpper(std::string str);
std::string ArrayToString(const u8* data, size_t size, int line_len = 20, bool spaces = true);
std::string StringFromBuffer(const std::vector<u8>& data);
std::string StripSpaces(const std::string& s);
std::string StripQuotes(const std::string& s);