23 #ifndef TUFAO_IBYTEARRAY_H
24 #define TUFAO_IBYTEARRAY_H
26 #include <QtCore/QByteArray>
27 #include "tufao_global.h"
63 inline IByteArray::IByteArray()
66 inline IByteArray::IByteArray(
const QByteArray &ba) :
70 inline IByteArray::IByteArray(
const char *str) :
74 inline IByteArray::IByteArray(
const char *data,
int size) :
75 QByteArray(data, size)
78 inline IByteArray::IByteArray(
int size,
char ch) :
82 inline IByteArray &IByteArray::operator =(
const QByteArray &ba)
84 static_cast<QByteArray&
>(*this) = ba;
90 inline bool operator !=(
const IByteArray &lhs,
const IByteArray &rhs)
92 return qstricmp(lhs.constData(), rhs.constData()) != 0;
95 inline bool operator <(
const IByteArray &lhs,
const IByteArray &rhs)
97 return qstricmp(lhs.constData(), rhs.constData()) < 0;
100 inline bool operator <=(
const IByteArray &lhs,
const IByteArray &rhs)
102 return qstricmp(lhs.constData(), rhs.constData()) <= 0;
105 inline bool operator ==(
const IByteArray &lhs,
const IByteArray &rhs)
107 return qstricmp(lhs.constData(), rhs.constData()) == 0;
110 inline bool operator >(
const IByteArray &lhs,
const IByteArray &rhs)
112 return qstricmp(lhs.constData(), rhs.constData()) > 0;
115 inline bool operator >=(
const IByteArray &lhs,
const IByteArray &rhs)
117 return qstricmp(lhs.constData(), rhs.constData()) >= 0;
120 inline uint qHash(
const IByteArray &key)
122 return qHash(key.toLower());
127 #endif // TUFAO_IBYTEARRAY_H
This class provides a case insensitive QByteArray.
Definition: ibytearray.h:51
This is the namespace where all Tufão facilities are grouped.
Definition: abstracthttpserverrequesthandler.h:30