minor clean ups
modified: src/lib/dns/tests/rdata_unittest.cc
modified: src/lib/util/str.h
string
Rdata_Unknown_Test::getLongestRdataTxt() {
ostringstream oss;
-
oss << "\\# " << MAX_RDLENGTH << " ";
-#if 0
- static_cast<void>(oss.fill('0'));
- oss << right << hex;
- for (unsigned i = 0; i < MAX_RDLENGTH; i++) {
- oss << setw(2) << (i & 0xff);
- }
-#else
for (unsigned i = 0; i < MAX_RDLENGTH; i++) {
oss << str::byteToHex(i);
}
-#endif
return (oss.str());
}
/// @brief Dumps a vector of bytes as a string of hexadecimal digits.
///
-/// @param vec vector to dump
+/// @param vec vector to dump.
std::string
dumpAsHex(const std::vector<uint8_t>& vec);
/// @brief Dumps a string as a string of hexadecimal digits.
///
-/// @param str string to dump
+/// @param str string to dump.
std::string
dumpAsHex(const std::string& str);