| 71 | } |
| 72 | |
| 73 | void trim_trailing_empty_lines(std::vector<std::string>& lines) { |
| 74 | while (lines.size() > 1 && lines.back().empty()) { |
| 75 | lines.pop_back(); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | void pop_last_utf8_char(std::string& text) { |
| 80 | if (text.empty()) { |
no test coverage detected