Grantlee
0.3.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
templates
lib
util.h
Go to the documentation of this file.
1
/*
2
This file is part of the Grantlee template system.
3
4
Copyright (c) 2009,2010 Stephen Kelly <steveire@gmail.com>
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either version
9
2.1 of the Licence, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library. If not, see <http://www.gnu.org/licenses/>.
18
19
*/
20
21
#ifndef GRANTLEE_UTIL_P_H
22
#define GRANTLEE_UTIL_P_H
23
24
#include "context.h"
25
#include "grantlee_core_export.h"
26
#include "safestring.h"
27
28
#include <QtCore/QVariant>
29
31
32
namespace
Grantlee
33
{
34
40
GRANTLEE_CORE_EXPORT
bool
variantIsTrue
(
const
QVariant &variant );
41
46
GRANTLEE_CORE_EXPORT QVariantList
variantToList
(
const
QVariant &variant );
47
53
GRANTLEE_CORE_EXPORT QString
unescapeStringLiteral
(
const
QString &input );
54
58
GRANTLEE_CORE_EXPORT
Grantlee::SafeString
markSafe
(
const
Grantlee::SafeString
&input );
59
63
GRANTLEE_CORE_EXPORT
Grantlee::SafeString
markForEscaping
(
const
Grantlee::SafeString
&input );
64
68
GRANTLEE_CORE_EXPORT
Grantlee::SafeString
getSafeString
(
const
QVariant &input );
69
73
GRANTLEE_CORE_EXPORT
bool
isSafeString
(
const
QVariant &input );
74
79
GRANTLEE_CORE_EXPORT
bool
supportedOutputType
(
const
QVariant &input );
80
86
GRANTLEE_CORE_EXPORT
bool
equals
(
const
QVariant &lhs,
const
QVariant &rhs );
87
88
#ifndef Q_QDOC
89
93
GRANTLEE_CORE_EXPORT
Grantlee::SafeString
toString(
const
QVariantList &list );
94
#endif
95
96
}
97
98
#endif
99
Generated by
1.8.1.1