Common/string_util: add StringFromBuffer function
convert input buffer (std::vector<u8>) to string, stripping zero chars
This commit is contained in:
parent
ee1eb8cfdf
commit
a2efb1dd48
3 changed files with 15 additions and 22 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue