Make strings, such as error strings, a little easier on the eyes.
| 45 | |
| 46 | // Make strings, such as error strings, a little easier on the eyes. |
| 47 | string PrettifySentence(string s) { |
| 48 | if (s.size() > 0) { |
| 49 | s[0] = toupper(s[0]); |
| 50 | } |
| 51 | if (s.size() > 0 && s[s.size() - 1] != '.') { |
| 52 | s += "."; |
| 53 | } |
| 54 | return s; |
| 55 | } |
| 56 | |
| 57 | #ifdef __WXMSW__ |
| 58 |
no outgoing calls
no test coverage detected