| 97 | } |
| 98 | |
| 99 | string uppercase_first(string s) |
| 100 | { |
| 101 | // Incorrect due to those pesky Dutch having "ij" as a single letter (wtf?). |
| 102 | // Too bad, there's no standard function to handle that character, and I |
| 103 | // don't care enough. |
| 104 | char32_t c; |
| 105 | if (!s.empty()) |
| 106 | { |
| 107 | utf8towc(&c, &s[0]); |
| 108 | wctoutf8(&s[0], towupper(c)); |
| 109 | } |
| 110 | return s; |
| 111 | } |
| 112 | |
| 113 | int codepoints(string str) |
| 114 | { |
no test coverage detected