diff options
author | B Stack <bgstack15@gmail.com> | 2020-11-01 17:16:37 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-11-01 17:16:37 -0500 |
commit | 2a57306c461964f860ba1cb51f1bf96c954173e0 (patch) | |
tree | 9939cdd1735bf15e97ad6700419c0604cac7c59e /zen/string_tools.h | |
parent | Merge branch '11.2' into 'master' (diff) | |
download | FreeFileSync-2a57306c461964f860ba1cb51f1bf96c954173e0.tar.gz FreeFileSync-2a57306c461964f860ba1cb51f1bf96c954173e0.tar.bz2 FreeFileSync-2a57306c461964f860ba1cb51f1bf96c954173e0.zip |
add upstream 11.3
Diffstat (limited to 'zen/string_tools.h')
-rw-r--r-- | zen/string_tools.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/string_tools.h b/zen/string_tools.h index fc715961..83d87244 100644 --- a/zen/string_tools.h +++ b/zen/string_tools.h @@ -83,7 +83,7 @@ template <class Num, class S> Num stringTo(const S& str); std::pair<char, char> hexify (unsigned char c, bool upperCase = true); char unhexify(char high, char low); -std::string formatAsHexString(const std::string& blob); //bytes -> (human-readable) hex string +std::string formatAsHexString(const std::string_view& blob); //bytes -> (human-readable) hex string template <class S, class T, class Num> S printNumber(const T& format, const Num& number); //format a single number using std::snprintf() @@ -859,7 +859,7 @@ char unhexify(char high, char low) inline -std::string formatAsHexString(const std::string& blob) +std::string formatAsHexString(const std::string_view& blob) { std::string output; for (const char c : blob) |