We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hex_lower
1 parent a53822e commit a6c08edCopy full SHA for a6c08ed
src/lib/hash-util.hh
@@ -21,7 +21,6 @@
21
#include <vector>
22
23
#include <boost/algorithm/hex.hpp>
24
-#include <boost/algorithm/string.hpp>
25
26
/// compute TEng hash of `src` and return it as hex-encoded string
27
template <typename TEng, typename TSrc>
@@ -43,9 +42,6 @@ std::string hexHashStr(const TSrc &src)
43
42
44
// convert the hash to a hex string
45
std::string result;
46
- boost::algorithm::hex(hash.begin(), hash.end(), back_inserter(result));
47
-
48
- // convert uppercase letters to lowercase
49
- boost::algorithm::to_lower(result);
+ boost::algorithm::hex_lower(hash.begin(), hash.end(), back_inserter(result));
50
return result;
51
}
0 commit comments