| 401 | } |
| 402 | |
| 403 | std::string string_strip(const std::string & str) { |
| 404 | size_t start = 0; |
| 405 | size_t end = str.size(); |
| 406 | while (start < end && std::isspace(str[start])) { |
| 407 | start++; |
| 408 | } |
| 409 | while (end > start && std::isspace(str[end - 1])) { |
| 410 | end--; |
| 411 | } |
| 412 | return str.substr(start, end - start); |
| 413 | } |
| 414 | |
| 415 | std::string string_get_sortable_timestamp() { |
| 416 | using clock = std::chrono::system_clock; |