MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / trim_trailing_empty_lines

Function trim_trailing_empty_lines

src/runner/cli_wide_posix.cpp:73–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

get_interactive_inputMethod · 0.85

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected