| 466 | |
| 467 | |
| 468 | void trimLeadingWhitespace(std::string& text) { |
| 469 | for (size_t s = 0; s < text.size(); s++) { |
| 470 | if (!isWhitespace(text[s])) { |
| 471 | if (s) { |
| 472 | text.erase(text.begin() + s - 1); |
| 473 | } |
| 474 | return; |
| 475 | } |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | std::string trimLeadingWhitespace(const std::string& text) { |
| 480 | std::string s = text; |
no test coverage detected