Strips the comments from a string This is the compliment of trimLeft
| 137 | // Strips the comments from a string |
| 138 | // This is the compliment of trimLeft |
| 139 | std::string trimComments(const std::string& s, const std::string& c) { |
| 140 | return s.substr(0, s.find_first_of(c)); |
| 141 | } |
| 142 | |
| 143 | std::string toString(const time_t& time) { |
| 144 | return fmt::format("{:%c}", *std::localtime(&time)); |
no outgoing calls