| 128 | }); |
| 129 | } |
| 130 | string string::lowercase() { |
| 131 | return apply_transform(*this, [](const std::string & s) { |
| 132 | std::string res = s; |
| 133 | std::transform(res.begin(), res.end(), res.begin(), ::tolower); |
| 134 | return res; |
| 135 | }); |
| 136 | } |
| 137 | string string::capitalize() { |
| 138 | return apply_transform(*this, [](const std::string & s) { |
| 139 | if (s.empty()) return s; |
no test coverage detected