27 bool autoescape)
const
37 bool autoescape)
const
47 bool autoescape)
const
52 ? QStringLiteral(
"true")
57 bool autoescape)
const
64 if (arg.get().isEmpty()) {
65 yes = QStringLiteral(
"yes");
66 no = QStringLiteral(
"no");
67 maybe = QStringLiteral(
"maybe");
69 auto argList = arg.get().split(QLatin1Char(
','));
70 auto numArgs = argList.size();
71 if ((numArgs < 2) || (numArgs > 3)) {
72 return input.toString();
73 }
else if (numArgs == 2) {
74 yes = argList.first();
76 maybe = argList.at(1);
77 }
else if (numArgs == 3) {
78 yes = argList.first();
80 maybe = argList.at(2);
QVariant doFilter(const QVariant &input, const QVariant &argument={}, bool autoescape={}) const override
QVariant doFilter(const QVariant &input, const QVariant &argument={}, bool autoescape={}) const override
QVariant doFilter(const QVariant &input, const QVariant &argument={}, bool autoescape={}) const override
QVariant doFilter(const QVariant &input, const QVariant &argument={}, bool autoescape={}) const override
Cutelee::SafeString getSafeString(const QVariant &input)
Utility functions used throughout Cutelee.