MCPcopy Create free account
hub / github.com/allanrbo/filesremote / PrettifySentence

Function PrettifySentence

src/string.cpp:47–55  ·  view source on GitHub ↗

Make strings, such as error strings, a little easier on the eyes.

Source from the content-addressed store, hash-verified

45
46// Make strings, such as error strings, a little easier on the eyes.
47string 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

Callers 3

ConnectDialogMethod · 0.85
ConnectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected