| 637 | |
| 638 | |
| 639 | string trimTrailing( |
| 640 | const string& text, |
| 641 | const char c) |
| 642 | { |
| 643 | unsigned Pos = static_cast<unsigned>(text.length()); |
| 644 | while (Pos >= 1 && text.at(Pos-1) == c) |
| 645 | Pos--; |
| 646 | |
| 647 | if (Pos == 0) |
| 648 | return ""; |
| 649 | else |
| 650 | return text.substr(0, Pos); |
| 651 | } |
| 652 | |
| 653 | |
| 654 | void splitIntoWords( |
nothing calls this directly
no outgoing calls
no test coverage detected