MCPcopy Create free account
hub / github.com/NetHack/NetHack / nh_capitalize_words

Function nh_capitalize_words

win/Qt/qt_str.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36QString nh_capitalize_words(const QString& str)
37{
38 QStringList words = str.split(" ");
39 for (size_t i = 0; i < (size_t) words.size(); ++i) {
40 words[i] = str_titlecase(words[i]);
41 }
42 return words.join(" ");
43}
44
45int cp437(int ch)
46{

Callers 1

updateStatsMethod · 0.85

Calls 1

str_titlecaseFunction · 0.85

Tested by

no test coverage detected