KDECore
kglobal.h File Reference
#include "kdelibs_export.h"
#include <kinstance.h>
Include dependency graph for kglobal.h:
Go to the source code of this file.
Classes | |
class | KGlobal |
Access to the KDE global objects. More... | |
Defines | |
#define | KABS(a) kAbs(a) |
#define | KCLAMP(x, low, high) kClamp(x,low,high) |
#define | KMAX(a, b) kMax(a,b) |
#define | KMIN(a, b) kMin(a,b) |
Functions | |
template<class T > | |
T | kAbs (const T &a) |
int | kasciistricmp (const char *str1, const char *str2) |
template<class T > | |
const T & | kClamp (const T &x, const T &low, const T &high) |
template<class T > | |
const T & | kMax (const T &a, const T &b) |
template<class T > | |
const T & | kMin (const T &a, const T &b) |
Define Documentation
#define KABS | ( | a | ) | kAbs(a) [related] |
#define KCLAMP | ( | x, | |||
low, | |||||
high | ) | kClamp(x,low,high) [related] |
#define KMAX | ( | a, | |||
b | ) | kMax(a,b) [related] |
#define KMIN | ( | a, | |||
b | ) | kMin(a,b) [related] |
Function Documentation
int kasciistricmp | ( | const char * | str1, | |
const char * | str2 | |||
) |
Locale-independent qstricmp.
Use this for comparing ascii keywords in a case-insensitive way. qstricmp fails with e.g. the Turkish locale where 'I'.lower() != 'i'
- Since:
- 3.4
Definition at line 241 of file kglobal.cpp.
template<class T >
const T& kClamp | ( | const T & | x, | |
const T & | low, | |||
const T & | high | |||
) | [inline] |
template<class T >
const T& kMax | ( | const T & | a, | |
const T & | b | |||
) | [inline] |
template<class T >
const T& kMin | ( | const T & | a, | |
const T & | b | |||
) | [inline] |