MCPcopy Create free account
hub / github.com/KDE/kdevelop / doFilter

Method doFilter

kdevplatform/template/filters/kdevfilters.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53QVariant 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
66QVariant LowerCamelCaseFilter::doFilter(const QVariant& input, const QVariant& /*argument*/,
67 bool /*autoescape*/) const

Callers

nothing calls this directly

Calls 12

wordsFunction · 0.85
safeStringFunction · 0.85
joinMethod · 0.80
visitDeclarationsMethod · 0.80
QualifiedIdentifierClass · 0.50
isEmptyMethod · 0.45
splitMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
declarationMethod · 0.45
isForwardDeclarationMethod · 0.45

Tested by

no test coverage detected