Go to the documentation of this file.
18 #ifndef KRADIO_UTILS_H
19 #define KRADIO_UTILS_H
30 #include <QtCore/QString>
31 #define __USE_ISOC99 1
37 extern QString
XMLEscape (
const QString &s);
38 QString
xmlOpenTag (
const QString &tag,
bool newline =
true);
39 QString
xmlTag (
const QString &tag,
const QString &s,
bool newline =
true);
40 QString
xmlTag (
const QString &tag,
int i,
bool newline =
true);
41 QString
xmlTag (
const QString &tag,
float f,
bool newline =
true);
42 QString
xmlCloseTag (
const QString &tag,
bool newline =
true);
44 template<
class T1,
class T2>
inline T1
min (T1 a, T2 b) {
return a < b ? a : b; }
45 template<
class T1,
class T2>
inline T1
max (T1 a, T2 b) {
return a < b ? b : a; }