| 415 | } |
| 416 | |
| 417 | std::string string_strip(const std::string & str) { |
| 418 | size_t start = 0; |
| 419 | size_t end = str.size(); |
| 420 | while (start < end && std::isspace(str[start])) { |
| 421 | start++; |
| 422 | } |
| 423 | while (end > start && std::isspace(str[end - 1])) { |
| 424 | end--; |
| 425 | } |
| 426 | return str.substr(start, end - start); |
| 427 | } |
| 428 | |
| 429 | std::string string_get_sortable_timestamp() { |
| 430 | using clock = std::chrono::system_clock; |