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 | |
| std::string | ToLimitedUtf8 (std::string &&data, size_t limit) |
| std::string utils::log::ToLimitedUtf8 | ( | std::string && | data, |
| size_t | limit ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Does not copy data if it is returned as is