Algorithms to aid logging.
Functions | |
std::string | ToLimitedHex (std::string_view data, size_t limit) |
returns data converted to hex and truncated to limit | |
std::string | ToLimitedUtf8 (std::string_view data, size_t limit) |
if data in utf-8, returns data truncated to limit otherwise returns stub | |