| 51 | } |
| 52 | |
| 53 | QVariant CamelCaseFilter::doFilter(const QVariant& input, const QVariant& /*argument*/, |
| 54 | bool /*autoescape*/) const |
| 55 | { |
| 56 | QString ret; |
| 57 | const auto words = ::words(input); |
| 58 | for (const QString& word : words) { |
| 59 | QString w = word; |
| 60 | w[0] = w[0].toUpper(); |
| 61 | ret += w; |
| 62 | } |
| 63 | return KTextTemplate::SafeString(ret); |
| 64 | } |
| 65 | |
| 66 | QVariant LowerCamelCaseFilter::doFilter(const QVariant& input, const QVariant& /*argument*/, |
| 67 | bool /*autoescape*/) const |
nothing calls this directly
no test coverage detected