diff options
| author | bunnei <bunneidev@gmail.com> | 2018-06-08 18:51:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-08 18:51:00 -0400 |
| commit | 9949e4d508ed686cd6b66461868c3a16445fa225 (patch) | |
| tree | 390ca18637ba51f2f5709a2bd01fb6ef55b6fdcc /src/common/string_util.h | |
| parent | c116b220e9e9a1228ed18a8912900b4da5ba36dd (diff) | |
| parent | a2efb1dd48cd2242ac9c435787915c1154266d60 (diff) | |
Merge pull request #533 from mailwl/array-to-buffer
Common/string_util: add StringFromBuffer() function
Diffstat (limited to 'src/common/string_util.h')
| -rw-r--r-- | src/common/string_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h index 65e4ea5d3..1f5a383cb 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h @@ -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); |
