initial import
[ICEs.git] / 200324 / blah.ii
1 // /usr/libexec/gcc/x86_64-pc-linux-gnu/4.1.2/cc1plus -fpreprocessed blah.ii -quiet -dumpbase blah.ii -march=athlon64 -auxbase blah -O2 -o - -frandom-seed=0
2 # 1 "generators/unix/unixmake2.cpp"
3 # 1 "<built-in>"
4 # 1 "<command line>"
5 # 1 "generators/unix/unixmake2.cpp"
6 # 39 "generators/unix/unixmake2.cpp"
7
8 # 1 "generators/unix/unixmake.h" 1
9 # 42 "generators/unix/unixmake.h"
10
11 # 1 "generators/makefile.h" 1
12 # 42 "generators/makefile.h"
13
14 # 1 "./option.h" 1
15 # 42 "./option.h"
16
17 # 1 "./project.h" 1
18 # 42 "./project.h"
19
20 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qstringlist.h" 1
21
22 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstringlist.h" 1
23 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstringlist.h"
24
25 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qalgorithms.h" 1
26
27 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h" 1
28 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h"
29
30 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
31
32 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 1
33 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
34
35 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 1 3 4
36 # 152 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 3 4
37 typedef long int ptrdiff_t;
38 # 214 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 3 4
39 typedef long unsigned int size_t;
40 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 2
41 # 57 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
42
43 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qconfig.h" 1
44 # 58 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 2
45 # 609 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
46 typedef signed char qint8;
47 typedef unsigned char quint8;
48 typedef short qint16;
49 typedef unsigned short quint16;
50 typedef int qint32;
51 typedef unsigned int quint32;
52 # 623 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
53 typedef long long qint64;
54 typedef unsigned long long quint64;
55
56
57 typedef qint64 qlonglong;
58 typedef quint64 qulonglong;
59 # 653 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
60 template <int> class QUintForSize { private: typedef void Type; };
61 template <> class QUintForSize<4> { public: typedef quint32 Type; };
62 template <> class QUintForSize<8> { public: typedef quint64 Type; };
63 template <typename T> class QUintForType : public QUintForSize<sizeof(T)> { };
64 typedef QUintForType<void *>::Type quintptr;
65
66 template <int> class QIntForSize { private: typedef void Type; };
67 template <> class QIntForSize<4> { public: typedef qint32 Type; };
68 template <> class QIntForSize<8> { public: typedef qint64 Type; };
69 template <typename T> class QIntForType : public QIntForSize<sizeof(T)> { };
70 typedef QIntForType<void *>::Type qptrdiff;
71
72
73
74
75
76 typedef unsigned char uchar;
77 typedef unsigned short ushort;
78 typedef unsigned int uint;
79 typedef unsigned long ulong;
80 # 697 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
81 # 837 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
82 typedef int QNoImplicitBoolCast;
83 # 848 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
84 typedef double qreal;
85
86
87
88
89
90
91 template <typename T>
92 inline T qAbs(const T &t) { return t >= 0 ? t : -t; }
93
94 inline int qRound(qreal d)
95 { return d >= 0.0 ? int(d + 0.5) : int(d - int(d-1) + 0.5) + int(d-1); }
96
97 inline qint64 qRound64(qreal d)
98 { return d >= 0.0 ? qint64(d + 0.5) : qint64(d - qint64(d-1) + 0.5) + qint64(d-1); }
99
100 template <typename T>
101 inline const T &qMin(const T &a, const T &b) { if (a < b) return a; return b; }
102 template <typename T>
103 inline const T &qMax(const T &a, const T &b) { if (a < b) return b; return a; }
104 template <typename T>
105 inline const T &qBound(const T &min, const T &val, const T &max)
106 { return qMax(min, qMin(max, val)); }
107 # 901 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
108 class QDataStream;
109 # 937 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
110
111 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qfeatures.h" 1
112
113 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qfeatures.h" 1
114 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qfeatures.h" 2
115 # 938 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h" 2
116 # 1104 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
117 class QString;
118 class QSysInfo {
119 public:
120 enum Sizes {
121 WordSize = (sizeof(void *)<<3)
122 };
123
124
125 enum Endian {
126 BigEndian,
127 LittleEndian
128 };
129
130 static const int ByteOrder;
131 # 1180 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
132 };
133
134 const char *qVersion();
135 bool qSharedBuild();
136 # 1251 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
137 void qDebug(const char *, ...)
138
139 __attribute__ ((format (printf, 1, 2)))
140
141 ;
142
143 void qWarning(const char *, ...)
144
145 __attribute__ ((format (printf, 1, 2)))
146
147 ;
148
149 class QString;
150 QString qt_error_string(int errorCode = -1);
151 void qCritical(const char *, ...)
152
153 __attribute__ ((format (printf, 1, 2)))
154
155 ;
156 void qFatal(const char *, ...)
157
158 __attribute__ ((format (printf, 1, 2)))
159
160 ;
161
162
163
164
165 void qErrnoWarning(int code, const char *msg, ...);
166 void qErrnoWarning(const char *msg, ...);
167 # 1291 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
168 class QDebug;
169 class QNoDebug;
170
171 inline QDebug qDebug();
172 inline QDebug qWarning();
173 inline QDebug qCritical();
174 # 1310 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
175 inline void qt_noop() {}
176
177 void qt_assert(const char *assertion, const char *file, int line);
178 # 1326 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
179 void qt_assert_x(const char *where, const char *what, const char *file, int line);
180 # 1336 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
181 void qt_check_pointer(const char *, int);
182 # 1371 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
183 enum QtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg = QtCriticalMsg };
184
185 void qt_message_output(QtMsgType, const char *buf);
186
187 typedef void (*QtMsgHandler)(QtMsgType, const char *);
188 QtMsgHandler qInstallMsgHandler(QtMsgHandler);
189 # 1385 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
190 template <typename T>
191 class QGlobalStatic
192 {
193 public:
194 T *pointer;
195 inline QGlobalStatic(T *p) : pointer(p) { }
196 inline ~QGlobalStatic() { pointer = 0; }
197 };
198 # 1481 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
199 class QBool
200 {
201 bool b;
202
203 public:
204 inline explicit QBool(bool B) : b(B) {}
205 inline operator const void *() const
206 { return b ? static_cast<const void *>(this) : static_cast<const void *>(0); }
207 };
208
209 inline bool operator==(QBool b1, bool b2) { return !b1 == !b2; }
210 inline bool operator==(bool b1, QBool b2) { return !b1 == !b2; }
211 inline bool operator==(QBool b1, QBool b2) { return !b1 == !b2; }
212 inline bool operator!=(QBool b1, bool b2) { return !b1 != !b2; }
213 inline bool operator!=(bool b1, QBool b2) { return !b1 != !b2; }
214 inline bool operator!=(QBool b1, QBool b2) { return !b1 != !b2; }
215
216 static inline bool qFuzzyCompare(double p1, double p2)
217 {
218 return qAbs(p1 - p2) < 0.00000000001;
219 }
220
221 static inline bool qFuzzyCompare(float p1, float p2)
222 {
223 return qAbs(p1 - p2) < 0.000001;
224 }
225
226
227
228
229
230
231 static inline bool qIsNull(double d)
232 {
233 union U {
234 double d;
235 quint64 u;
236 };
237 U val;
238 val.d = d;
239 return val.u == quint64(0);
240 }
241
242
243
244
245
246
247 static inline bool qIsNull(float f)
248 {
249 union U {
250 float f;
251 quint32 u;
252 };
253 U val;
254 val.f = f;
255 return val.u == 0u;
256 }
257 # 1571 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
258 template <typename T> inline bool qIsDetached(T &) { return true; }
259
260 template <typename T>
261 class QTypeInfo
262 {
263 public:
264 enum {
265 isPointer = false,
266 isComplex = true,
267 isStatic = true,
268 isLarge = (sizeof(T)>sizeof(void*)),
269 isDummy = false
270 };
271 };
272
273 template <typename T>
274 class QTypeInfo<T*>
275 {
276 public:
277 enum {
278 isPointer = true,
279 isComplex = false,
280 isStatic = false,
281 isLarge = false,
282 isDummy = false
283 };
284 };
285 # 1629 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
286 enum {
287 Q_COMPLEX_TYPE = 0,
288 Q_PRIMITIVE_TYPE = 0x1,
289 Q_STATIC_TYPE = 0,
290 Q_MOVABLE_TYPE = 0x2,
291 Q_DUMMY_TYPE = 0x4
292 };
293 # 1692 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
294 template <> class QTypeInfo<bool> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(bool)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "bool"; } };
295 template <> class QTypeInfo<char> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(char)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "char"; } };
296 template <> class QTypeInfo<signed char> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(signed char)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "signed char"; } };
297 template <> class QTypeInfo<uchar> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(uchar)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "uchar"; } };
298 template <> class QTypeInfo<short> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(short)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "short"; } };
299 template <> class QTypeInfo<ushort> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(ushort)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "ushort"; } };
300 template <> class QTypeInfo<int> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(int)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "int"; } };
301 template <> class QTypeInfo<uint> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(uint)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "uint"; } };
302 template <> class QTypeInfo<long> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(long)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "long"; } };
303 template <> class QTypeInfo<ulong> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(ulong)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "ulong"; } };
304 template <> class QTypeInfo<qint64> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(qint64)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "qint64"; } };
305 template <> class QTypeInfo<quint64> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(quint64)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "quint64"; } };
306 template <> class QTypeInfo<float> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(float)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "float"; } };
307 template <> class QTypeInfo<double> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(double)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "double"; } };
308
309 template <> class QTypeInfo<long double> { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(long double)>sizeof(void*)), isPointer = false, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "long double"; } };
310
311
312
313
314
315
316 void *qMalloc(size_t size);
317 void qFree(void *ptr);
318 void *qRealloc(void *ptr, size_t size);
319 void *qMemCopy(void *dest, const void *src, size_t n);
320 void *qMemSet(void *dest, int c, size_t n);
321 # 1755 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
322 class QFlag
323 {
324 int i;
325 public:
326 inline QFlag(int i);
327 inline operator int() const { return i; }
328 };
329
330 inline QFlag::QFlag(int ai) : i(ai) {}
331
332
333
334
335 template<typename Enum>
336 class QFlags
337 {
338 typedef void **Zero;
339 int i;
340 public:
341 typedef Enum enum_type;
342 inline QFlags(const QFlags &f) : i(f.i) {}
343 inline QFlags(Enum f) : i(f) {}
344 inline QFlags(Zero = 0) : i(0) {}
345 inline QFlags(QFlag f) : i(f) {}
346
347 inline QFlags &operator=(const QFlags &f) { i = f.i; return *this; }
348 inline QFlags &operator&=(int mask) { i &= mask; return *this; }
349 inline QFlags &operator&=(uint mask) { i &= mask; return *this; }
350 inline QFlags &operator|=(QFlags f) { i |= f.i; return *this; }
351 inline QFlags &operator|=(Enum f) { i |= f; return *this; }
352 inline QFlags &operator^=(QFlags f) { i ^= f.i; return *this; }
353 inline QFlags &operator^=(Enum f) { i ^= f; return *this; }
354
355 inline operator int() const { return i; }
356
357 inline QFlags operator|(QFlags f) const { QFlags g; g.i = i | f.i; return g; }
358 inline QFlags operator|(Enum f) const { QFlags g; g.i = i | f; return g; }
359 inline QFlags operator^(QFlags f) const { QFlags g; g.i = i ^ f.i; return g; }
360 inline QFlags operator^(Enum f) const { QFlags g; g.i = i ^ f; return g; }
361 inline QFlags operator&(int mask) const { QFlags g; g.i = i & mask; return g; }
362 inline QFlags operator&(uint mask) const { QFlags g; g.i = i & mask; return g; }
363 inline QFlags operator&(Enum f) const { QFlags g; g.i = i & f; return g; }
364 inline QFlags operator~() const { QFlags g; g.i = ~i; return g; }
365
366 inline bool operator!() const { return !i; }
367
368 inline bool testFlag(Enum f) const { return i & f; }
369
370 private:
371
372
373
374 };
375 # 1827 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
376 template <typename T>
377 class QForeachContainer {
378 public:
379 inline QForeachContainer(const T& t) : c(t), brk(0), i(c.begin()), e(c.end()) { }
380 const T c;
381 int brk;
382 typename T::const_iterator i, e;
383 };
384 # 1939 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
385 class QByteArray;
386 QByteArray qgetenv(const char *varName);
387
388 inline int qIntCast(double f) { return int(f); }
389 inline int qIntCast(float f) { return int(f); }
390
391
392
393
394 void qsrand(uint seed);
395 int qrand();
396 # 2031 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qglobal.h"
397 enum QtValidLicenseForCoreModule { LicensedCore = true };
398
399
400 enum QtValidLicenseForGuiModule { LicensedGui = true };
401
402
403 enum QtValidLicenseForNetworkModule { LicensedNetwork = true };
404
405
406 enum QtValidLicenseForOpenGLModule { LicensedOpenGL = true };
407
408
409 enum QtValidLicenseForSqlModule { LicensedSql = true };
410
411
412 enum QtValidLicenseForXmlModule { LicensedXml = true };
413
414
415 enum QtValidLicenseForScriptModule { LicensedScript = true };
416
417
418 enum QtValidLicenseForQt3SupportLightModule { LicensedQt3SupportLight = true };
419
420
421 enum QtValidLicenseForQt3SupportModule { LicensedQt3Support = true };
422
423
424 enum QtValidLicenseForSvgModule { LicensedSvg = true };
425
426
427 enum QtValidLicenseForActiveQtModule { LicensedActiveQt = true };
428 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 2
429 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h" 2
430
431
432
433 typedef QtValidLicenseForCoreModule QtCoreModule;
434
435
436
437
438
439 namespace QAlgorithmsPrivate {
440
441 template <typename RandomAccessIterator, typename T, typename LessThan>
442 void qSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan);
443 template <typename RandomAccessIterator, typename T>
444 inline void qSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy);
445
446 template <typename RandomAccessIterator, typename T, typename LessThan>
447 void qStableSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan);
448 template <typename RandomAccessIterator, typename T>
449 inline void qStableSortHelper(RandomAccessIterator, RandomAccessIterator, const T &);
450
451 template <typename RandomAccessIterator, typename T, typename LessThan>
452 RandomAccessIterator qLowerBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
453 template <typename RandomAccessIterator, typename T, typename LessThan>
454 RandomAccessIterator qUpperBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
455 template <typename RandomAccessIterator, typename T, typename LessThan>
456 RandomAccessIterator qBinaryFindHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan);
457
458 }
459
460 template <typename InputIterator, typename OutputIterator>
461 inline OutputIterator qCopy(InputIterator begin, InputIterator end, OutputIterator dest)
462 {
463 while (begin != end)
464 *dest++ = *begin++;
465 return dest;
466 }
467
468 template <typename BiIterator1, typename BiIterator2>
469 inline BiIterator2 qCopyBackward(BiIterator1 begin, BiIterator1 end, BiIterator2 dest)
470 {
471 while (begin != end)
472 *--dest = *--end;
473 return dest;
474 }
475
476 template <typename InputIterator1, typename InputIterator2>
477 inline bool qEqual(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2)
478 {
479 for (; first1 != last1; ++first1, ++first2)
480 if (!(*first1 == *first2))
481 return false;
482 return true;
483 }
484
485 template <typename ForwardIterator, typename T>
486 inline void qFill(ForwardIterator first, ForwardIterator last, const T &val)
487 {
488 for (; first != last; ++first)
489 *first = val;
490 }
491
492 template <typename Container, typename T>
493 inline void qFill(Container &container, const T &val)
494 {
495 qFill(container.begin(), container.end(), val);
496 }
497
498 template <typename InputIterator, typename T>
499 inline InputIterator qFind(InputIterator first, InputIterator last, const T &val)
500 {
501 while (first != last && !(*first == val))
502 ++first;
503 return first;
504 }
505
506 template <typename Container, typename T>
507 inline typename Container::const_iterator qFind(const Container &container, const T &val)
508 {
509 return qFind(container.constBegin(), container.constEnd(), val);
510 }
511
512 template <typename InputIterator, typename T, typename Size>
513 inline void qCount(InputIterator first, InputIterator last, const T &value, Size &n)
514 {
515 for (; first != last; ++first)
516 if (*first == value)
517 ++n;
518 }
519
520 template <typename Container, typename T, typename Size>
521 inline void qCount(const Container &container, const T &value, Size &n)
522 {
523 qCount(container.constBegin(), container.constEnd(), value, n);
524 }
525 # 147 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h"
526 template <typename T>
527 inline void qSwap(T &value1, T &value2)
528 {
529 T t = value1;
530 value1 = value2;
531 value2 = t;
532 }
533 # 167 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qalgorithms.h"
534 template <typename T>
535 class qLess
536 {
537 public:
538 inline bool operator()(const T &t1, const T &t2) const
539 {
540 return (t1 < t2);
541 }
542 };
543
544 template <typename T>
545 class qGreater
546 {
547 public:
548 inline bool operator()(const T &t1, const T &t2) const
549 {
550 return (t2 < t1);
551 }
552 };
553
554
555 template <typename RandomAccessIterator>
556 inline void qSort(RandomAccessIterator start, RandomAccessIterator end)
557 {
558 if (start != end)
559 QAlgorithmsPrivate::qSortHelper(start, end, *start);
560 }
561
562 template <typename RandomAccessIterator, typename LessThan>
563 inline void qSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
564 {
565 if (start != end)
566 QAlgorithmsPrivate::qSortHelper(start, end, *start, lessThan);
567 }
568
569 template<typename Container>
570 inline void qSort(Container &c)
571 {
572
573
574
575
576 if (!c.empty())
577 QAlgorithmsPrivate::qSortHelper(c.begin(), c.end(), *c.begin());
578 }
579
580 template <typename RandomAccessIterator>
581 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end)
582 {
583 if (start != end)
584 QAlgorithmsPrivate::qStableSortHelper(start, end, *start);
585 }
586
587 template <typename RandomAccessIterator, typename LessThan>
588 inline void qStableSort(RandomAccessIterator start, RandomAccessIterator end, LessThan lessThan)
589 {
590 if (start != end)
591 QAlgorithmsPrivate::qStableSortHelper(start, end, *start, lessThan);
592 }
593
594 template<typename Container>
595 inline void qStableSort(Container &c)
596 {
597
598
599
600
601 if (!c.empty())
602 QAlgorithmsPrivate::qStableSortHelper(c.begin(), c.end(), *c.begin());
603 }
604
605 template <typename RandomAccessIterator, typename T>
606 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
607 {
608
609
610
611 RandomAccessIterator middle;
612 int n = end - begin;
613 int half;
614
615 while (n > 0) {
616 half = n >> 1;
617 middle = begin + half;
618 if (*middle < value) {
619 begin = middle + 1;
620 n -= half + 1;
621 } else {
622 n = half;
623 }
624 }
625 return begin;
626 }
627
628 template <typename RandomAccessIterator, typename T, typename LessThan>
629 RandomAccessIterator qLowerBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
630 {
631 return QAlgorithmsPrivate::qLowerBoundHelper(begin, end, value, lessThan);
632 }
633
634 template <typename Container, typename T>
635 typename Container::const_iterator qLowerBound(const Container &container, const T &value)
636 {
637 return QAlgorithmsPrivate::qLowerBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
638 }
639
640 template <typename RandomAccessIterator, typename T>
641 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
642 {
643
644 RandomAccessIterator middle;
645 int n = end - begin;
646 int half;
647
648 while (n > 0) {
649 half = n >> 1;
650 middle = begin + half;
651 if (value < *middle) {
652 n = half;
653 } else {
654 begin = middle + 1;
655 n -= half + 1;
656 }
657 }
658 return begin;
659 }
660
661 template <typename RandomAccessIterator, typename T, typename LessThan>
662 RandomAccessIterator qUpperBound(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
663 {
664 return QAlgorithmsPrivate::qUpperBoundHelper(begin, end, value, lessThan);
665 }
666
667 template <typename Container, typename T>
668 typename Container::const_iterator qUpperBound(const Container &container, const T &value)
669 {
670 return QAlgorithmsPrivate::qUpperBoundHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
671 }
672
673 template <typename RandomAccessIterator, typename T>
674 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value)
675 {
676
677 int l = 0;
678 int r = end - begin - 1;
679 if (r < 0)
680 return end;
681 int i = (l + r + 1) / 2;
682
683 while (r != l) {
684 if (value < begin[i])
685 r = i - 1;
686 else
687 l = i;
688 i = (l + r + 1) / 2;
689 }
690 if (begin[i] < value || value < begin[i])
691 return end;
692 else
693 return begin + i;
694 }
695
696 template <typename RandomAccessIterator, typename T, typename LessThan>
697 RandomAccessIterator qBinaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
698 {
699 return QAlgorithmsPrivate::qBinaryFindHelper(begin, end, value, lessThan);
700 }
701
702 template <typename Container, typename T>
703 typename Container::const_iterator qBinaryFind(const Container &container, const T &value)
704 {
705 return QAlgorithmsPrivate::qBinaryFindHelper(container.constBegin(), container.constEnd(), value, qLess<T>());
706 }
707
708 template <typename ForwardIterator>
709 void qDeleteAll(ForwardIterator begin, ForwardIterator end)
710 {
711 while (begin != end) {
712 delete *begin;
713 ++begin;
714 }
715 }
716
717 template <typename Container>
718 inline void qDeleteAll(const Container &c)
719 {
720 qDeleteAll(c.begin(), c.end());
721 }
722
723
724
725
726
727 namespace QAlgorithmsPrivate {
728
729 template <typename RandomAccessIterator, typename T, typename LessThan>
730 void qSortHelper(RandomAccessIterator start, RandomAccessIterator end, const T &t, LessThan lessThan)
731 {
732 top:
733 int span = end - start;
734 if (span < 2)
735 return;
736
737 --end;
738 RandomAccessIterator low = start, high = end - 1;
739 RandomAccessIterator pivot = start + span / 2;
740
741 if (lessThan(*end, *start))
742 qSwap(*end, *start);
743 if (span == 2)
744 return;
745
746 if (lessThan(*pivot, *start))
747 qSwap(*pivot, *start);
748 if (lessThan(*end, *pivot))
749 qSwap(*end, *pivot);
750 if (span == 3)
751 return;
752
753 qSwap(*pivot, *end);
754
755 while (low < high) {
756 while (low < high && lessThan(*low, *end))
757 ++low;
758
759 while (high > low && lessThan(*end, *high))
760 --high;
761
762 if (low < high) {
763 qSwap(*low, *high);
764 ++low;
765 --high;
766 } else {
767 break;
768 }
769 }
770
771 if (lessThan(*low, *end))
772 ++low;
773
774 qSwap(*end, *low);
775 qSortHelper(start, low, t, lessThan);
776
777 start = low + 1;
778 ++end;
779 goto top;
780 }
781
782 template <typename RandomAccessIterator, typename T>
783 inline void qSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
784 {
785 qSortHelper(begin, end, dummy, qLess<T>());
786 }
787
788 template <typename RandomAccessIterator>
789 void qReverse(RandomAccessIterator begin, RandomAccessIterator end)
790 {
791 --end;
792 while (begin < end)
793 qSwap(*begin++, *end--);
794 }
795
796 template <typename RandomAccessIterator>
797 void qRotate(RandomAccessIterator begin, RandomAccessIterator middle, RandomAccessIterator end)
798 {
799 qReverse(begin, middle);
800 qReverse(middle, end);
801 qReverse(begin, end);
802 }
803
804 template <typename RandomAccessIterator, typename T, typename LessThan>
805 void qMerge(RandomAccessIterator begin, RandomAccessIterator pivot, RandomAccessIterator end, T &t, LessThan lessThan)
806 {
807 const int len1 = pivot - begin;
808 const int len2 = end - pivot;
809
810 if (len1 == 0 || len2 == 0)
811 return;
812
813 if (len1 + len2 == 2) {
814 if (lessThan(*(begin + 1), *(begin)))
815 qSwap(*begin, *(begin + 1));
816 return;
817 }
818
819 RandomAccessIterator firstCut;
820 RandomAccessIterator secondCut;
821 int len2Half;
822 if (len1 > len2) {
823 const int len1Half = len1 / 2;
824 firstCut = begin + len1Half;
825 secondCut = qLowerBound(pivot, end, *firstCut, lessThan);
826 len2Half = secondCut - pivot;
827 } else {
828 len2Half = len2 / 2;
829 secondCut = pivot + len2Half;
830 firstCut = qUpperBound(begin, pivot, *secondCut, lessThan);
831 }
832
833 qRotate(firstCut, pivot, secondCut);
834 const RandomAccessIterator newPivot = firstCut + len2Half;
835 qMerge(begin, firstCut, newPivot, t, lessThan);
836 qMerge(newPivot, secondCut, end, t, lessThan);
837 }
838
839 template <typename RandomAccessIterator, typename T, typename LessThan>
840 void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &t, LessThan lessThan)
841 {
842 const int span = end - begin;
843 if (span < 2)
844 return;
845
846 const RandomAccessIterator middle = begin + span / 2;
847 qStableSortHelper(begin, middle, t, lessThan);
848 qStableSortHelper(middle, end, t, lessThan);
849 qMerge(begin, middle, end, t, lessThan);
850 }
851
852 template <typename RandomAccessIterator, typename T>
853 inline void qStableSortHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &dummy)
854 {
855 qStableSortHelper(begin, end, dummy, qLess<T>());
856 }
857
858 template <typename RandomAccessIterator, typename T, typename LessThan>
859 RandomAccessIterator qLowerBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
860 {
861 RandomAccessIterator middle;
862 int n = end - begin;
863 int half;
864
865 while (n > 0) {
866 half = n >> 1;
867 middle = begin + half;
868 if (lessThan(*middle, value)) {
869 begin = middle + 1;
870 n -= half + 1;
871 } else {
872 n = half;
873 }
874 }
875 return begin;
876 }
877
878
879 template <typename RandomAccessIterator, typename T, typename LessThan>
880 RandomAccessIterator qUpperBoundHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
881 {
882 RandomAccessIterator middle;
883 int n = end - begin;
884 int half;
885
886 while (n > 0) {
887 half = n >> 1;
888 middle = begin + half;
889 if (lessThan(value, *middle)) {
890 n = half;
891 } else {
892 begin = middle + 1;
893 n -= half + 1;
894 }
895 }
896 return begin;
897 }
898
899 template <typename RandomAccessIterator, typename T, typename LessThan>
900 RandomAccessIterator qBinaryFindHelper(RandomAccessIterator begin, RandomAccessIterator end, const T &value, LessThan lessThan)
901 {
902 int l = 0;
903 int r = end - begin - 1;
904 if (r < 0)
905 return end;
906 int i = (l + r + 1) / 2;
907
908 while (r != l) {
909 if (lessThan(value, begin[i]))
910 r = i - 1;
911 else
912 l = i;
913 i = (l + r + 1) / 2;
914 }
915 if (lessThan(begin[i], value) || lessThan(value, begin[i]))
916 return end;
917 else
918 return begin + i;
919 }
920
921 }
922 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qalgorithms.h" 2
923 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstringlist.h" 2
924
925 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qdatastream.h" 1
926
927 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qdatastream.h" 1
928 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qdatastream.h"
929
930 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qiodevice.h" 1
931
932 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qiodevice.h" 1
933 # 45 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qiodevice.h"
934
935 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qobjectdefs.h" 1
936
937 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h" 1
938 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h"
939
940 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qnamespace.h" 1
941
942 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h" 1
943 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
944
945 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
946 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h" 2
947
948
949
950 typedef QtValidLicenseForCoreModule QtCoreModule;
951
952
953 namespace
954
955
956
957 Qt {
958 # 75 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
959 enum GlobalColor {
960 color0,
961 color1,
962 black,
963 white,
964 darkGray,
965 gray,
966 lightGray,
967 red,
968 green,
969 blue,
970 cyan,
971 magenta,
972 yellow,
973 darkRed,
974 darkGreen,
975 darkBlue,
976 darkCyan,
977 darkMagenta,
978 darkYellow,
979 transparent
980 };
981
982 enum KeyboardModifier {
983 NoModifier = 0x00000000,
984 ShiftModifier = 0x02000000,
985 ControlModifier = 0x04000000,
986 AltModifier = 0x08000000,
987 MetaModifier = 0x10000000,
988 KeypadModifier = 0x20000000,
989 GroupSwitchModifier = 0x40000000,
990
991 KeyboardModifierMask = 0xfe000000
992 };
993 typedef QFlags<KeyboardModifier> KeyboardModifiers;
994
995
996 enum Modifier {
997 META = Qt::MetaModifier,
998 SHIFT = Qt::ShiftModifier,
999 CTRL = Qt::ControlModifier,
1000 ALT = Qt::AltModifier,
1001 MODIFIER_MASK = KeyboardModifierMask,
1002 UNICODE_ACCEL = 0x00000000
1003 };
1004
1005 enum MouseButton {
1006 NoButton = 0x00000000,
1007 LeftButton = 0x00000001,
1008 RightButton = 0x00000002,
1009 MidButton = 0x00000004,
1010 XButton1 = 0x00000008,
1011 XButton2 = 0x00000010,
1012 MouseButtonMask = 0x000000ff
1013 };
1014 typedef QFlags<MouseButton> MouseButtons;
1015 # 144 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1016 enum Orientation {
1017 Horizontal = 0x1,
1018 Vertical = 0x2
1019 };
1020
1021 typedef QFlags<Orientation> Orientations;
1022
1023 enum FocusPolicy {
1024 NoFocus = 0,
1025 TabFocus = 0x1,
1026 ClickFocus = 0x2,
1027 StrongFocus = TabFocus | ClickFocus | 0x8,
1028 WheelFocus = StrongFocus | 0x4
1029 };
1030
1031 enum SortOrder {
1032 AscendingOrder,
1033 DescendingOrder
1034
1035
1036
1037
1038 };
1039
1040
1041
1042
1043
1044 enum AlignmentFlag {
1045 AlignLeft = 0x0001,
1046 AlignLeading = AlignLeft,
1047 AlignRight = 0x0002,
1048 AlignTrailing = AlignRight,
1049 AlignHCenter = 0x0004,
1050 AlignJustify = 0x0008,
1051 AlignAbsolute = 0x0010,
1052 AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute,
1053
1054 AlignTop = 0x0020,
1055 AlignBottom = 0x0040,
1056 AlignVCenter = 0x0080,
1057 AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
1058
1059 AlignCenter = AlignVCenter | AlignHCenter
1060
1061
1062
1063 };
1064
1065 typedef QFlags<AlignmentFlag> Alignment;
1066
1067 enum TextFlag {
1068 TextSingleLine = 0x0100,
1069 TextDontClip = 0x0200,
1070 TextExpandTabs = 0x0400,
1071 TextShowMnemonic = 0x0800,
1072 TextWordWrap = 0x1000,
1073 TextWrapAnywhere = 0x2000,
1074 TextDontPrint = 0x4000,
1075 TextIncludeTrailingSpaces = 0x08000000,
1076 TextHideMnemonic = 0x8000,
1077 TextJustificationForced = 0x10000
1078 # 218 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1079 };
1080
1081
1082
1083
1084 enum TextElideMode {
1085 ElideLeft,
1086 ElideRight,
1087 ElideMiddle,
1088 ElideNone
1089 };
1090
1091 enum WindowType {
1092 Widget = 0x00000000,
1093 Window = 0x00000001,
1094 Dialog = 0x00000002 | Window,
1095 Sheet = 0x00000004 | Window,
1096 Drawer = 0x00000006 | Window,
1097 Popup = 0x00000008 | Window,
1098 Tool = 0x0000000a | Window,
1099 ToolTip = 0x0000000c | Window,
1100 SplashScreen = 0x0000000e | Window,
1101 Desktop = 0x00000010 | Window,
1102 SubWindow = 0x00000012,
1103
1104 WindowType_Mask = 0x000000ff,
1105 MSWindowsFixedSizeDialogHint = 0x00000100,
1106 MSWindowsOwnDC = 0x00000200,
1107 X11BypassWindowManagerHint = 0x00000400,
1108 FramelessWindowHint = 0x00000800,
1109 WindowTitleHint = 0x00001000,
1110 WindowSystemMenuHint = 0x00002000,
1111 WindowMinimizeButtonHint = 0x00004000,
1112 WindowMaximizeButtonHint = 0x00008000,
1113 WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint,
1114 WindowContextHelpButtonHint = 0x00010000,
1115 WindowShadeButtonHint = 0x00020000,
1116 WindowStaysOnTopHint = 0x00040000,
1117 CustomizeWindowHint = 0x02000000
1118 # 307 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1119 };
1120
1121 typedef QFlags<WindowType> WindowFlags;
1122
1123 enum WindowState {
1124 WindowNoState = 0x00000000,
1125 WindowMinimized = 0x00000001,
1126 WindowMaximized = 0x00000002,
1127 WindowFullScreen = 0x00000004,
1128 WindowActive = 0x00000008
1129 };
1130
1131 typedef QFlags<WindowState> WindowStates;
1132
1133 enum WidgetAttribute {
1134 WA_Disabled = 0,
1135 WA_UnderMouse = 1,
1136 WA_MouseTracking = 2,
1137 WA_ContentsPropagated = 3,
1138 WA_OpaquePaintEvent = 4,
1139 WA_NoBackground = WA_OpaquePaintEvent,
1140 WA_StaticContents = 5,
1141 WA_LaidOut = 7,
1142 WA_PaintOnScreen = 8,
1143 WA_NoSystemBackground = 9,
1144 WA_UpdatesDisabled = 10,
1145 WA_Mapped = 11,
1146 WA_MacNoClickThrough = 12,
1147 WA_PaintOutsidePaintEvent = 13,
1148 WA_InputMethodEnabled = 14,
1149 WA_WState_Visible = 15,
1150 WA_WState_Hidden = 16,
1151
1152 WA_ForceDisabled = 32,
1153 WA_KeyCompression = 33,
1154 WA_PendingMoveEvent = 34,
1155 WA_PendingResizeEvent = 35,
1156 WA_SetPalette = 36,
1157 WA_SetFont = 37,
1158 WA_SetCursor = 38,
1159 WA_NoChildEventsFromChildren = 39,
1160 WA_WindowModified = 41,
1161 WA_Resized = 42,
1162 WA_Moved = 43,
1163 WA_PendingUpdate = 44,
1164 WA_InvalidSize = 45,
1165 WA_MacBrushedMetal = 46,
1166 WA_MacMetalStyle = WA_MacBrushedMetal,
1167 WA_CustomWhatsThis = 47,
1168 WA_LayoutOnEntireRect = 48,
1169 WA_OutsideWSRange = 49,
1170 WA_GrabbedShortcut = 50,
1171 WA_TransparentForMouseEvents = 51,
1172 WA_PaintUnclipped = 52,
1173 WA_SetWindowIcon = 53,
1174 WA_NoMouseReplay = 54,
1175 WA_DeleteOnClose = 55,
1176 WA_RightToLeft = 56,
1177 WA_SetLayoutDirection = 57,
1178 WA_NoChildEventsForParent = 58,
1179 WA_ForceUpdatesDisabled = 59,
1180
1181 WA_WState_Created = 60,
1182 WA_WState_CompressKeys = 61,
1183 WA_WState_InPaintEvent = 62,
1184 WA_WState_Reparented = 63,
1185 WA_WState_ConfigPending = 64,
1186 WA_WState_Polished = 66,
1187 WA_WState_DND = 67,
1188 WA_WState_OwnSizePolicy = 68,
1189 WA_WState_ExplicitShowHide = 69,
1190
1191 WA_ShowModal = 70,
1192 WA_MouseNoMask = 71,
1193 WA_GroupLeader = 72,
1194 WA_NoMousePropagation = 73,
1195 WA_Hover = 74,
1196 WA_InputMethodTransparent = 75,
1197 WA_QuitOnClose = 76,
1198
1199 WA_KeyboardFocusChange = 77,
1200
1201 WA_AcceptDrops = 78,
1202 WA_DropSiteRegistered = 79,
1203 WA_ForceAcceptDrops = WA_DropSiteRegistered,
1204
1205 WA_WindowPropagation = 80,
1206
1207 WA_NoX11EventCompression = 81,
1208 WA_TintedBackground = 82,
1209 WA_X11OpenGLOverlay = 83,
1210 WA_AlwaysShowToolTips = 84,
1211 WA_MacOpaqueSizeGrip = 85,
1212 WA_SetStyle = 86,
1213
1214 WA_SetLocale = 87,
1215 WA_MacShowFocusRect = 88,
1216
1217 WA_MacNormalSize = 89,
1218 WA_MacSmallSize = 90,
1219 WA_MacMiniSize = 91,
1220
1221 WA_LayoutUsesWidgetRect = 92,
1222 WA_StyledBackground = 93,
1223 WA_MSWindowsUseDirect3D = 94,
1224 WA_CanHostQMdiSubWindowTitleBar = 95,
1225
1226 WA_MacAlwaysShowToolWindow = 96,
1227
1228 WA_StyleSheet = 97,
1229
1230
1231 WA_AttributeCount
1232 };
1233
1234 enum ApplicationAttribute
1235 {
1236 AA_ImmediateWidgetCreation = 0,
1237 AA_MSWindowsUseDirect3DByDefault = 1,
1238
1239
1240 AA_AttributeCount
1241 };
1242
1243
1244
1245
1246
1247 enum ImageConversionFlag {
1248 ColorMode_Mask = 0x00000003,
1249 AutoColor = 0x00000000,
1250 ColorOnly = 0x00000003,
1251 MonoOnly = 0x00000002,
1252
1253
1254 AlphaDither_Mask = 0x0000000c,
1255 ThresholdAlphaDither = 0x00000000,
1256 OrderedAlphaDither = 0x00000004,
1257 DiffuseAlphaDither = 0x00000008,
1258 NoAlpha = 0x0000000c,
1259
1260 Dither_Mask = 0x00000030,
1261 DiffuseDither = 0x00000000,
1262 OrderedDither = 0x00000010,
1263 ThresholdDither = 0x00000020,
1264
1265
1266 DitherMode_Mask = 0x000000c0,
1267 AutoDither = 0x00000000,
1268 PreferDither = 0x00000040,
1269 AvoidDither = 0x00000080
1270 };
1271 typedef QFlags<ImageConversionFlag> ImageConversionFlags;
1272
1273 enum BGMode {
1274 TransparentMode,
1275 OpaqueMode
1276 };
1277 # 485 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1278 enum Key {
1279 Key_Escape = 0x01000000,
1280 Key_Tab = 0x01000001,
1281 Key_Backtab = 0x01000002,
1282
1283
1284
1285 Key_Backspace = 0x01000003,
1286
1287
1288
1289 Key_Return = 0x01000004,
1290 Key_Enter = 0x01000005,
1291 Key_Insert = 0x01000006,
1292 Key_Delete = 0x01000007,
1293 Key_Pause = 0x01000008,
1294 Key_Print = 0x01000009,
1295 Key_SysReq = 0x0100000a,
1296 Key_Clear = 0x0100000b,
1297 Key_Home = 0x01000010,
1298 Key_End = 0x01000011,
1299 Key_Left = 0x01000012,
1300 Key_Up = 0x01000013,
1301 Key_Right = 0x01000014,
1302 Key_Down = 0x01000015,
1303 Key_PageUp = 0x01000016,
1304
1305
1306
1307 Key_PageDown = 0x01000017,
1308
1309
1310
1311 Key_Shift = 0x01000020,
1312 Key_Control = 0x01000021,
1313 Key_Meta = 0x01000022,
1314 Key_Alt = 0x01000023,
1315 Key_CapsLock = 0x01000024,
1316 Key_NumLock = 0x01000025,
1317 Key_ScrollLock = 0x01000026,
1318 Key_F1 = 0x01000030,
1319 Key_F2 = 0x01000031,
1320 Key_F3 = 0x01000032,
1321 Key_F4 = 0x01000033,
1322 Key_F5 = 0x01000034,
1323 Key_F6 = 0x01000035,
1324 Key_F7 = 0x01000036,
1325 Key_F8 = 0x01000037,
1326 Key_F9 = 0x01000038,
1327 Key_F10 = 0x01000039,
1328 Key_F11 = 0x0100003a,
1329 Key_F12 = 0x0100003b,
1330 Key_F13 = 0x0100003c,
1331 Key_F14 = 0x0100003d,
1332 Key_F15 = 0x0100003e,
1333 Key_F16 = 0x0100003f,
1334 Key_F17 = 0x01000040,
1335 Key_F18 = 0x01000041,
1336 Key_F19 = 0x01000042,
1337 Key_F20 = 0x01000043,
1338 Key_F21 = 0x01000044,
1339 Key_F22 = 0x01000045,
1340 Key_F23 = 0x01000046,
1341 Key_F24 = 0x01000047,
1342 Key_F25 = 0x01000048,
1343 Key_F26 = 0x01000049,
1344 Key_F27 = 0x0100004a,
1345 Key_F28 = 0x0100004b,
1346 Key_F29 = 0x0100004c,
1347 Key_F30 = 0x0100004d,
1348 Key_F31 = 0x0100004e,
1349 Key_F32 = 0x0100004f,
1350 Key_F33 = 0x01000050,
1351 Key_F34 = 0x01000051,
1352 Key_F35 = 0x01000052,
1353 Key_Super_L = 0x01000053,
1354 Key_Super_R = 0x01000054,
1355 Key_Menu = 0x01000055,
1356 Key_Hyper_L = 0x01000056,
1357 Key_Hyper_R = 0x01000057,
1358 Key_Help = 0x01000058,
1359 Key_Direction_L = 0x01000059,
1360 Key_Direction_R = 0x01000060,
1361 Key_Space = 0x20,
1362 Key_Any = Key_Space,
1363 Key_Exclam = 0x21,
1364 Key_QuoteDbl = 0x22,
1365 Key_NumberSign = 0x23,
1366 Key_Dollar = 0x24,
1367 Key_Percent = 0x25,
1368 Key_Ampersand = 0x26,
1369 Key_Apostrophe = 0x27,
1370 Key_ParenLeft = 0x28,
1371 Key_ParenRight = 0x29,
1372 Key_Asterisk = 0x2a,
1373 Key_Plus = 0x2b,
1374 Key_Comma = 0x2c,
1375 Key_Minus = 0x2d,
1376 Key_Period = 0x2e,
1377 Key_Slash = 0x2f,
1378 Key_0 = 0x30,
1379 Key_1 = 0x31,
1380 Key_2 = 0x32,
1381 Key_3 = 0x33,
1382 Key_4 = 0x34,
1383 Key_5 = 0x35,
1384 Key_6 = 0x36,
1385 Key_7 = 0x37,
1386 Key_8 = 0x38,
1387 Key_9 = 0x39,
1388 Key_Colon = 0x3a,
1389 Key_Semicolon = 0x3b,
1390 Key_Less = 0x3c,
1391 Key_Equal = 0x3d,
1392 Key_Greater = 0x3e,
1393 Key_Question = 0x3f,
1394 Key_At = 0x40,
1395 Key_A = 0x41,
1396 Key_B = 0x42,
1397 Key_C = 0x43,
1398 Key_D = 0x44,
1399 Key_E = 0x45,
1400 Key_F = 0x46,
1401 Key_G = 0x47,
1402 Key_H = 0x48,
1403 Key_I = 0x49,
1404 Key_J = 0x4a,
1405 Key_K = 0x4b,
1406 Key_L = 0x4c,
1407 Key_M = 0x4d,
1408 Key_N = 0x4e,
1409 Key_O = 0x4f,
1410 Key_P = 0x50,
1411 Key_Q = 0x51,
1412 Key_R = 0x52,
1413 Key_S = 0x53,
1414 Key_T = 0x54,
1415 Key_U = 0x55,
1416 Key_V = 0x56,
1417 Key_W = 0x57,
1418 Key_X = 0x58,
1419 Key_Y = 0x59,
1420 Key_Z = 0x5a,
1421 Key_BracketLeft = 0x5b,
1422 Key_Backslash = 0x5c,
1423 Key_BracketRight = 0x5d,
1424 Key_AsciiCircum = 0x5e,
1425 Key_Underscore = 0x5f,
1426 Key_QuoteLeft = 0x60,
1427 Key_BraceLeft = 0x7b,
1428 Key_Bar = 0x7c,
1429 Key_BraceRight = 0x7d,
1430 Key_AsciiTilde = 0x7e,
1431
1432 Key_nobreakspace = 0x0a0,
1433 Key_exclamdown = 0x0a1,
1434 Key_cent = 0x0a2,
1435 Key_sterling = 0x0a3,
1436 Key_currency = 0x0a4,
1437 Key_yen = 0x0a5,
1438 Key_brokenbar = 0x0a6,
1439 Key_section = 0x0a7,
1440 Key_diaeresis = 0x0a8,
1441 Key_copyright = 0x0a9,
1442 Key_ordfeminine = 0x0aa,
1443 Key_guillemotleft = 0x0ab,
1444 Key_notsign = 0x0ac,
1445 Key_hyphen = 0x0ad,
1446 Key_registered = 0x0ae,
1447 Key_macron = 0x0af,
1448 Key_degree = 0x0b0,
1449 Key_plusminus = 0x0b1,
1450 Key_twosuperior = 0x0b2,
1451 Key_threesuperior = 0x0b3,
1452 Key_acute = 0x0b4,
1453 Key_mu = 0x0b5,
1454 Key_paragraph = 0x0b6,
1455 Key_periodcentered = 0x0b7,
1456 Key_cedilla = 0x0b8,
1457 Key_onesuperior = 0x0b9,
1458 Key_masculine = 0x0ba,
1459 Key_guillemotright = 0x0bb,
1460 Key_onequarter = 0x0bc,
1461 Key_onehalf = 0x0bd,
1462 Key_threequarters = 0x0be,
1463 Key_questiondown = 0x0bf,
1464 Key_Agrave = 0x0c0,
1465 Key_Aacute = 0x0c1,
1466 Key_Acircumflex = 0x0c2,
1467 Key_Atilde = 0x0c3,
1468 Key_Adiaeresis = 0x0c4,
1469 Key_Aring = 0x0c5,
1470 Key_AE = 0x0c6,
1471 Key_Ccedilla = 0x0c7,
1472 Key_Egrave = 0x0c8,
1473 Key_Eacute = 0x0c9,
1474 Key_Ecircumflex = 0x0ca,
1475 Key_Ediaeresis = 0x0cb,
1476 Key_Igrave = 0x0cc,
1477 Key_Iacute = 0x0cd,
1478 Key_Icircumflex = 0x0ce,
1479 Key_Idiaeresis = 0x0cf,
1480 Key_ETH = 0x0d0,
1481 Key_Ntilde = 0x0d1,
1482 Key_Ograve = 0x0d2,
1483 Key_Oacute = 0x0d3,
1484 Key_Ocircumflex = 0x0d4,
1485 Key_Otilde = 0x0d5,
1486 Key_Odiaeresis = 0x0d6,
1487 Key_multiply = 0x0d7,
1488 Key_Ooblique = 0x0d8,
1489 Key_Ugrave = 0x0d9,
1490 Key_Uacute = 0x0da,
1491 Key_Ucircumflex = 0x0db,
1492 Key_Udiaeresis = 0x0dc,
1493 Key_Yacute = 0x0dd,
1494 Key_THORN = 0x0de,
1495 Key_ssharp = 0x0df,
1496 # 728 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1497 Key_division = 0x0f7,
1498 # 738 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1499 Key_ydiaeresis = 0x0ff,
1500
1501
1502
1503
1504
1505
1506 Key_AltGr = 0x01001103,
1507 Key_Multi_key = 0x01001120,
1508 Key_Codeinput = 0x01001137,
1509 Key_SingleCandidate = 0x0100113c,
1510 Key_MultipleCandidate = 0x0100113d,
1511 Key_PreviousCandidate = 0x0100113e,
1512
1513
1514 Key_Mode_switch = 0x0100117e,
1515
1516
1517
1518 Key_Kanji = 0x01001121,
1519 Key_Muhenkan = 0x01001122,
1520
1521 Key_Henkan = 0x01001123,
1522 Key_Romaji = 0x01001124,
1523 Key_Hiragana = 0x01001125,
1524 Key_Katakana = 0x01001126,
1525 Key_Hiragana_Katakana = 0x01001127,
1526 Key_Zenkaku = 0x01001128,
1527 Key_Hankaku = 0x01001129,
1528 Key_Zenkaku_Hankaku = 0x0100112a,
1529 Key_Touroku = 0x0100112b,
1530 Key_Massyo = 0x0100112c,
1531 Key_Kana_Lock = 0x0100112d,
1532 Key_Kana_Shift = 0x0100112e,
1533 Key_Eisu_Shift = 0x0100112f,
1534 Key_Eisu_toggle = 0x01001130,
1535 # 783 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1536 Key_Hangul = 0x01001131,
1537 Key_Hangul_Start = 0x01001132,
1538 Key_Hangul_End = 0x01001133,
1539 Key_Hangul_Hanja = 0x01001134,
1540 Key_Hangul_Jamo = 0x01001135,
1541 Key_Hangul_Romaja = 0x01001136,
1542
1543 Key_Hangul_Jeonja = 0x01001138,
1544 Key_Hangul_Banja = 0x01001139,
1545 Key_Hangul_PreHanja = 0x0100113a,
1546 Key_Hangul_PostHanja = 0x0100113b,
1547
1548
1549
1550 Key_Hangul_Special = 0x0100113f,
1551
1552
1553
1554 Key_Dead_Grave = 0x01001250,
1555 Key_Dead_Acute = 0x01001251,
1556 Key_Dead_Circumflex = 0x01001252,
1557 Key_Dead_Tilde = 0x01001253,
1558 Key_Dead_Macron = 0x01001254,
1559 Key_Dead_Breve = 0x01001255,
1560 Key_Dead_Abovedot = 0x01001256,
1561 Key_Dead_Diaeresis = 0x01001257,
1562 Key_Dead_Abovering = 0x01001258,
1563 Key_Dead_Doubleacute = 0x01001259,
1564 Key_Dead_Caron = 0x0100125a,
1565 Key_Dead_Cedilla = 0x0100125b,
1566 Key_Dead_Ogonek = 0x0100125c,
1567 Key_Dead_Iota = 0x0100125d,
1568 Key_Dead_Voiced_Sound = 0x0100125e,
1569 Key_Dead_Semivoiced_Sound = 0x0100125f,
1570 Key_Dead_Belowdot = 0x01001260,
1571 Key_Dead_Hook = 0x01001261,
1572 Key_Dead_Horn = 0x01001262,
1573
1574
1575
1576 Key_Back = 0x01000061,
1577 Key_Forward = 0x01000062,
1578 Key_Stop = 0x01000063,
1579 Key_Refresh = 0x01000064,
1580
1581 Key_VolumeDown = 0x01000070,
1582 Key_VolumeMute = 0x01000071,
1583 Key_VolumeUp = 0x01000072,
1584 Key_BassBoost = 0x01000073,
1585 Key_BassUp = 0x01000074,
1586 Key_BassDown = 0x01000075,
1587 Key_TrebleUp = 0x01000076,
1588 Key_TrebleDown = 0x01000077,
1589
1590 Key_MediaPlay = 0x01000080,
1591 Key_MediaStop = 0x01000081,
1592 Key_MediaPrevious = 0x01000082,
1593
1594
1595
1596 Key_MediaNext = 0x01000083,
1597 Key_MediaRecord = 0x01000084,
1598
1599 Key_HomePage = 0x01000090,
1600 Key_Favorites = 0x01000091,
1601 Key_Search = 0x01000092,
1602 Key_Standby = 0x01000093,
1603 Key_OpenUrl = 0x01000094,
1604
1605 Key_LaunchMail = 0x010000a0,
1606 Key_LaunchMedia = 0x010000a1,
1607 Key_Launch0 = 0x010000a2,
1608 Key_Launch1 = 0x010000a3,
1609 Key_Launch2 = 0x010000a4,
1610 Key_Launch3 = 0x010000a5,
1611 Key_Launch4 = 0x010000a6,
1612 Key_Launch5 = 0x010000a7,
1613 Key_Launch6 = 0x010000a8,
1614 Key_Launch7 = 0x010000a9,
1615 Key_Launch8 = 0x010000aa,
1616 Key_Launch9 = 0x010000ab,
1617 Key_LaunchA = 0x010000ac,
1618 Key_LaunchB = 0x010000ad,
1619 Key_LaunchC = 0x010000ae,
1620 Key_LaunchD = 0x010000af,
1621 Key_LaunchE = 0x010000b0,
1622 Key_LaunchF = 0x010000b1,
1623
1624 Key_MediaLast = 0x0100ffff,
1625
1626
1627 Key_Select = 0x01010000,
1628 Key_Yes = 0x01010001,
1629 Key_No = 0x01010002,
1630
1631
1632 Key_Cancel = 0x01020001,
1633 Key_Printer = 0x01020002,
1634 Key_Execute = 0x01020003,
1635 Key_Sleep = 0x01020004,
1636 Key_Play = 0x01020005,
1637 Key_Zoom = 0x01020006,
1638
1639
1640
1641
1642
1643 Key_Context1 = 0x01100000,
1644 Key_Context2 = 0x01100001,
1645 Key_Context3 = 0x01100002,
1646 Key_Context4 = 0x01100003,
1647 Key_Call = 0x01100004,
1648 Key_Hangup = 0x01100005,
1649 Key_Flip = 0x01100006,
1650
1651 Key_unknown = 0x01ffffff
1652 };
1653
1654 enum ArrowType {
1655 NoArrow,
1656 UpArrow,
1657 DownArrow,
1658 LeftArrow,
1659 RightArrow
1660 };
1661
1662 enum PenStyle {
1663 NoPen,
1664 SolidLine,
1665 DashLine,
1666 DotLine,
1667 DashDotLine,
1668 DashDotDotLine,
1669 CustomDashLine
1670
1671 , MPenStyle = 0x0f
1672
1673 };
1674
1675 enum PenCapStyle {
1676 FlatCap = 0x00,
1677 SquareCap = 0x10,
1678 RoundCap = 0x20,
1679 MPenCapStyle = 0x30
1680 };
1681
1682 enum PenJoinStyle {
1683 MiterJoin = 0x00,
1684 BevelJoin = 0x40,
1685 RoundJoin = 0x80,
1686 SvgMiterJoin = 0x100,
1687 MPenJoinStyle = 0x1c0
1688 };
1689
1690 enum BrushStyle {
1691 NoBrush,
1692 SolidPattern,
1693 Dense1Pattern,
1694 Dense2Pattern,
1695 Dense3Pattern,
1696 Dense4Pattern,
1697 Dense5Pattern,
1698 Dense6Pattern,
1699 Dense7Pattern,
1700 HorPattern,
1701 VerPattern,
1702 CrossPattern,
1703 BDiagPattern,
1704 FDiagPattern,
1705 DiagCrossPattern,
1706 LinearGradientPattern,
1707 RadialGradientPattern,
1708 ConicalGradientPattern,
1709 TexturePattern = 24
1710
1711
1712
1713 };
1714 # 1020 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1715 enum UIEffect {
1716 UI_General,
1717 UI_AnimateMenu,
1718 UI_FadeMenu,
1719 UI_AnimateCombo,
1720 UI_AnimateTooltip,
1721 UI_FadeTooltip,
1722 UI_AnimateToolBox
1723 };
1724
1725 enum CursorShape {
1726 ArrowCursor,
1727 UpArrowCursor,
1728 CrossCursor,
1729 WaitCursor,
1730 IBeamCursor,
1731 SizeVerCursor,
1732 SizeHorCursor,
1733 SizeBDiagCursor,
1734 SizeFDiagCursor,
1735 SizeAllCursor,
1736 BlankCursor,
1737 SplitVCursor,
1738 SplitHCursor,
1739 PointingHandCursor,
1740 ForbiddenCursor,
1741 WhatsThisCursor,
1742 BusyCursor,
1743 OpenHandCursor,
1744 ClosedHandCursor,
1745 LastCursor = ClosedHandCursor,
1746 BitmapCursor = 24,
1747 CustomCursor = 25
1748 # 1073 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1749 };
1750
1751 enum TextFormat {
1752 PlainText,
1753 RichText,
1754 AutoText,
1755 LogText
1756 };
1757
1758 enum AspectRatioMode {
1759 IgnoreAspectRatio,
1760 KeepAspectRatio,
1761 KeepAspectRatioByExpanding
1762
1763
1764
1765
1766
1767 };
1768
1769
1770
1771
1772 enum AnchorAttribute {
1773 AnchorName,
1774 AnchorHref
1775 };
1776
1777 enum DockWidgetArea {
1778 LeftDockWidgetArea = 0x1,
1779 RightDockWidgetArea = 0x2,
1780 TopDockWidgetArea = 0x4,
1781 BottomDockWidgetArea = 0x8,
1782
1783 DockWidgetArea_Mask = 0xf,
1784 AllDockWidgetAreas = DockWidgetArea_Mask,
1785 NoDockWidgetArea = 0
1786 };
1787 enum DockWidgetAreaSizes {
1788 NDockWidgetAreas = 4
1789 };
1790
1791 typedef QFlags<DockWidgetArea> DockWidgetAreas;
1792
1793 enum ToolBarArea {
1794 LeftToolBarArea = 0x1,
1795 RightToolBarArea = 0x2,
1796 TopToolBarArea = 0x4,
1797 BottomToolBarArea = 0x8,
1798
1799 ToolBarArea_Mask = 0xf,
1800 AllToolBarAreas = ToolBarArea_Mask,
1801 NoToolBarArea = 0
1802 };
1803
1804 enum ToolBarAreaSizes {
1805 NToolBarAreas = 4
1806 };
1807
1808 typedef QFlags<ToolBarArea> ToolBarAreas;
1809 # 1156 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1810 enum DateFormat {
1811 TextDate,
1812 ISODate,
1813 SystemLocaleDate,
1814 LocalDate = SystemLocaleDate,
1815 LocaleDate
1816 };
1817
1818 enum TimeSpec {
1819 LocalTime,
1820 UTC
1821 };
1822
1823 enum DayOfWeek {
1824 Monday = 1,
1825 Tuesday = 2,
1826 Wednesday = 3,
1827 Thursday = 4,
1828 Friday = 5,
1829 Saturday = 6,
1830 Sunday = 7
1831 };
1832
1833 enum ScrollBarPolicy {
1834 ScrollBarAsNeeded,
1835 ScrollBarAlwaysOff,
1836 ScrollBarAlwaysOn
1837 };
1838 # 1210 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
1839 enum CaseSensitivity {
1840 CaseInsensitive,
1841 CaseSensitive
1842 };
1843
1844 enum Corner {
1845 TopLeftCorner = 0x00000,
1846 TopRightCorner = 0x00001,
1847 BottomLeftCorner = 0x00002,
1848 BottomRightCorner = 0x00003
1849
1850
1851
1852
1853
1854
1855 };
1856
1857 enum ConnectionType {
1858 AutoConnection,
1859 DirectConnection,
1860 QueuedConnection,
1861 AutoCompatConnection,
1862 BlockingQueuedConnection
1863 };
1864
1865 enum ShortcutContext {
1866 WidgetShortcut,
1867 WindowShortcut,
1868 ApplicationShortcut
1869 };
1870
1871 enum FillRule {
1872 OddEvenFill,
1873 WindingFill
1874 };
1875
1876 enum MaskMode {
1877 MaskInColor,
1878 MaskOutColor
1879 };
1880
1881 enum ClipOperation {
1882 NoClip,
1883 ReplaceClip,
1884 IntersectClip,
1885 UniteClip
1886 };
1887
1888
1889 enum ItemSelectionMode {
1890 ContainsItemShape = 0x0,
1891 IntersectsItemShape = 0x1,
1892 ContainsItemBoundingRect = 0x2,
1893 IntersectsItemBoundingRect = 0x3
1894 };
1895
1896 enum TransformationMode {
1897 FastTransformation,
1898 SmoothTransformation
1899 };
1900
1901 enum Axis {
1902 XAxis,
1903 YAxis,
1904 ZAxis
1905 };
1906
1907 enum FocusReason {
1908 MouseFocusReason,
1909 TabFocusReason,
1910 BacktabFocusReason,
1911 ActiveWindowFocusReason,
1912 PopupFocusReason,
1913 ShortcutFocusReason,
1914 MenuBarFocusReason,
1915 OtherFocusReason,
1916 NoFocusReason
1917 };
1918
1919 enum ContextMenuPolicy {
1920 NoContextMenu,
1921 DefaultContextMenu,
1922 ActionsContextMenu,
1923 CustomContextMenu,
1924 PreventContextMenu
1925 };
1926
1927 enum InputMethodQuery {
1928 ImMicroFocus,
1929 ImFont,
1930 ImCursorPosition,
1931 ImSurroundingText,
1932 ImCurrentSelection
1933 };
1934
1935 enum ToolButtonStyle {
1936 ToolButtonIconOnly,
1937 ToolButtonTextOnly,
1938 ToolButtonTextBesideIcon,
1939 ToolButtonTextUnderIcon
1940 };
1941
1942 enum LayoutDirection {
1943 LeftToRight,
1944 RightToLeft
1945 };
1946
1947 enum DropAction {
1948 CopyAction = 0x1,
1949 MoveAction = 0x2,
1950 LinkAction = 0x4,
1951 ActionMask = 0xff,
1952 TargetMoveAction = 0x8002,
1953 IgnoreAction = 0x0
1954 };
1955 typedef QFlags<DropAction> DropActions;
1956
1957 enum CheckState {
1958 Unchecked,
1959 PartiallyChecked,
1960 Checked
1961 };
1962
1963 enum ItemDataRole {
1964 DisplayRole = 0,
1965 DecorationRole = 1,
1966 EditRole = 2,
1967 ToolTipRole = 3,
1968 StatusTipRole = 4,
1969 WhatsThisRole = 5,
1970
1971 FontRole = 6,
1972 TextAlignmentRole = 7,
1973 BackgroundColorRole = 8,
1974 BackgroundRole = 8,
1975 TextColorRole = 9,
1976 ForegroundRole = 9,
1977 CheckStateRole = 10,
1978
1979 AccessibleTextRole = 11,
1980 AccessibleDescriptionRole = 12,
1981
1982 SizeHintRole = 13,
1983
1984 UserRole = 32
1985 };
1986
1987 enum ItemFlag {
1988 ItemIsSelectable = 1,
1989 ItemIsEditable = 2,
1990 ItemIsDragEnabled = 4,
1991 ItemIsDropEnabled = 8,
1992 ItemIsUserCheckable = 16,
1993 ItemIsEnabled = 32,
1994 ItemIsTristate = 64
1995 };
1996 typedef QFlags<ItemFlag> ItemFlags;
1997
1998 enum MatchFlag {
1999 MatchExactly = 0,
2000 MatchContains = 1,
2001 MatchStartsWith = 2,
2002 MatchEndsWith = 3,
2003 MatchRegExp = 4,
2004 MatchWildcard = 5,
2005 MatchFixedString = 8,
2006 MatchCaseSensitive = 16,
2007 MatchWrap = 32,
2008 MatchRecursive = 64
2009 };
2010 typedef QFlags<MatchFlag> MatchFlags;
2011
2012
2013
2014
2015
2016
2017 typedef unsigned long HANDLE;
2018
2019
2020
2021 typedef WindowFlags WFlags;
2022
2023 enum WindowModality {
2024 NonModal,
2025 WindowModal,
2026 ApplicationModal
2027 };
2028
2029 enum TextInteractionFlag {
2030 NoTextInteraction = 0,
2031 TextSelectableByMouse = 1,
2032 TextSelectableByKeyboard = 2,
2033 LinksAccessibleByMouse = 4,
2034 LinksAccessibleByKeyboard = 8,
2035 TextEditable = 16,
2036
2037 TextEditorInteraction = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable,
2038 TextBrowserInteraction = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard
2039 };
2040 typedef QFlags<TextInteractionFlag> TextInteractionFlags;
2041
2042 enum EventPriority {
2043 HighEventPriority = 1,
2044 NormalEventPriority = 0,
2045 LowEventPriority = -1
2046 };
2047 }
2048
2049
2050
2051
2052
2053 inline QFlags<Qt::MouseButtons::enum_type> operator|(Qt::MouseButtons::enum_type f1, Qt::MouseButtons::enum_type f2) { return QFlags<Qt::MouseButtons::enum_type>(f1) | f2; } inline QFlags<Qt::MouseButtons::enum_type> operator|(Qt::MouseButtons::enum_type f1, QFlags<Qt::MouseButtons::enum_type> f2) { return f2 | f1; }
2054 inline QFlags<Qt::Orientations::enum_type> operator|(Qt::Orientations::enum_type f1, Qt::Orientations::enum_type f2) { return QFlags<Qt::Orientations::enum_type>(f1) | f2; } inline QFlags<Qt::Orientations::enum_type> operator|(Qt::Orientations::enum_type f1, QFlags<Qt::Orientations::enum_type> f2) { return f2 | f1; }
2055 inline QFlags<Qt::KeyboardModifiers::enum_type> operator|(Qt::KeyboardModifiers::enum_type f1, Qt::KeyboardModifiers::enum_type f2) { return QFlags<Qt::KeyboardModifiers::enum_type>(f1) | f2; } inline QFlags<Qt::KeyboardModifiers::enum_type> operator|(Qt::KeyboardModifiers::enum_type f1, QFlags<Qt::KeyboardModifiers::enum_type> f2) { return f2 | f1; }
2056 inline QFlags<Qt::WindowFlags::enum_type> operator|(Qt::WindowFlags::enum_type f1, Qt::WindowFlags::enum_type f2) { return QFlags<Qt::WindowFlags::enum_type>(f1) | f2; } inline QFlags<Qt::WindowFlags::enum_type> operator|(Qt::WindowFlags::enum_type f1, QFlags<Qt::WindowFlags::enum_type> f2) { return f2 | f1; }
2057 inline QFlags<Qt::Alignment::enum_type> operator|(Qt::Alignment::enum_type f1, Qt::Alignment::enum_type f2) { return QFlags<Qt::Alignment::enum_type>(f1) | f2; } inline QFlags<Qt::Alignment::enum_type> operator|(Qt::Alignment::enum_type f1, QFlags<Qt::Alignment::enum_type> f2) { return f2 | f1; }
2058 inline QFlags<Qt::ImageConversionFlags::enum_type> operator|(Qt::ImageConversionFlags::enum_type f1, Qt::ImageConversionFlags::enum_type f2) { return QFlags<Qt::ImageConversionFlags::enum_type>(f1) | f2; } inline QFlags<Qt::ImageConversionFlags::enum_type> operator|(Qt::ImageConversionFlags::enum_type f1, QFlags<Qt::ImageConversionFlags::enum_type> f2) { return f2 | f1; }
2059 inline QFlags<Qt::DockWidgetAreas::enum_type> operator|(Qt::DockWidgetAreas::enum_type f1, Qt::DockWidgetAreas::enum_type f2) { return QFlags<Qt::DockWidgetAreas::enum_type>(f1) | f2; } inline QFlags<Qt::DockWidgetAreas::enum_type> operator|(Qt::DockWidgetAreas::enum_type f1, QFlags<Qt::DockWidgetAreas::enum_type> f2) { return f2 | f1; }
2060 inline QFlags<Qt::ToolBarAreas::enum_type> operator|(Qt::ToolBarAreas::enum_type f1, Qt::ToolBarAreas::enum_type f2) { return QFlags<Qt::ToolBarAreas::enum_type>(f1) | f2; } inline QFlags<Qt::ToolBarAreas::enum_type> operator|(Qt::ToolBarAreas::enum_type f1, QFlags<Qt::ToolBarAreas::enum_type> f2) { return f2 | f1; }
2061 inline QFlags<Qt::WindowStates::enum_type> operator|(Qt::WindowStates::enum_type f1, Qt::WindowStates::enum_type f2) { return QFlags<Qt::WindowStates::enum_type>(f1) | f2; } inline QFlags<Qt::WindowStates::enum_type> operator|(Qt::WindowStates::enum_type f1, QFlags<Qt::WindowStates::enum_type> f2) { return f2 | f1; }
2062 inline QFlags<Qt::DropActions::enum_type> operator|(Qt::DropActions::enum_type f1, Qt::DropActions::enum_type f2) { return QFlags<Qt::DropActions::enum_type>(f1) | f2; } inline QFlags<Qt::DropActions::enum_type> operator|(Qt::DropActions::enum_type f1, QFlags<Qt::DropActions::enum_type> f2) { return f2 | f1; }
2063 inline QFlags<Qt::ItemFlags::enum_type> operator|(Qt::ItemFlags::enum_type f1, Qt::ItemFlags::enum_type f2) { return QFlags<Qt::ItemFlags::enum_type>(f1) | f2; } inline QFlags<Qt::ItemFlags::enum_type> operator|(Qt::ItemFlags::enum_type f1, QFlags<Qt::ItemFlags::enum_type> f2) { return f2 | f1; }
2064 inline QFlags<Qt::MatchFlags::enum_type> operator|(Qt::MatchFlags::enum_type f1, Qt::MatchFlags::enum_type f2) { return QFlags<Qt::MatchFlags::enum_type>(f1) | f2; } inline QFlags<Qt::MatchFlags::enum_type> operator|(Qt::MatchFlags::enum_type f1, QFlags<Qt::MatchFlags::enum_type> f2) { return f2 | f1; }
2065 inline QFlags<Qt::TextInteractionFlags::enum_type> operator|(Qt::TextInteractionFlags::enum_type f1, Qt::TextInteractionFlags::enum_type f2) { return QFlags<Qt::TextInteractionFlags::enum_type>(f1) | f2; } inline QFlags<Qt::TextInteractionFlags::enum_type> operator|(Qt::TextInteractionFlags::enum_type f1, QFlags<Qt::TextInteractionFlags::enum_type> f2) { return f2 | f1; }
2066
2067 typedef bool (*qInternalCallback)(void **);
2068
2069 class QInternal {
2070 public:
2071 enum PaintDeviceFlags {
2072 UnknownDevice = 0x00,
2073 Widget = 0x01,
2074 Pixmap = 0x02,
2075 Image = 0x03,
2076 Printer = 0x04,
2077 Picture = 0x05,
2078 Pbuffer = 0x06,
2079 FramebufferObject = 0x07,
2080 CustomRaster = 0x08
2081 };
2082 enum RelayoutType {
2083 RelayoutNormal,
2084 RelayoutDragging,
2085 RelayoutDropped
2086 };
2087
2088
2089 enum Callback {
2090 ConnectCallback,
2091 DisconnectCallback,
2092 AdoptCurrentThread,
2093 EventNotifyCallback,
2094 LastCallback
2095 };
2096
2097 enum InternalFunction {
2098 CreateThreadForAdoption,
2099 RefAdoptedThread,
2100 DerefAdoptedThread,
2101 SetCurrentThreadToMainThread,
2102 LastInternalFunction
2103 };
2104
2105 enum DockPosition {
2106 LeftDock,
2107 RightDock,
2108 TopDock,
2109 BottomDock,
2110 DockCount
2111 };
2112
2113 static bool registerCallback(Callback, qInternalCallback);
2114 static bool unregisterCallback(Callback, qInternalCallback);
2115
2116 static bool activateCallbacks(Callback, void **);
2117 static bool callFunction(InternalFunction func, void **);
2118 };
2119 # 1499 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/global/qnamespace.h"
2120 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qnamespace.h" 2
2121 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h" 2
2122
2123
2124
2125 typedef QtValidLicenseForCoreModule QtCoreModule;
2126
2127 class QString;
2128
2129 class QByteArray;
2130 # 133 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h"
2131 template <typename T>
2132 inline int qYouForgotTheQ_OBJECT_Macro(T, T) { return 0; }
2133
2134 template <typename T1, typename T2>
2135 inline void qYouForgotTheQ_OBJECT_Macro(T1, T2) {}
2136 # 209 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/kernel/qobjectdefs.h"
2137 class QObject;
2138 class QMetaMethod;
2139 class QMetaEnum;
2140 class QMetaProperty;
2141 class QMetaClassInfo;
2142
2143
2144 class QGenericArgument
2145 {
2146 public:
2147 inline QGenericArgument(const char *aName = 0, const void *aData = 0)
2148 : _data(aData), _name(aName) {}
2149 inline void *data() const { return const_cast<void *>(_data); }
2150 inline const char *name() const { return _name; }
2151
2152 private:
2153 const void *_data;
2154 const char *_name;
2155 };
2156
2157 class QGenericReturnArgument: public QGenericArgument
2158 {
2159 public:
2160 inline QGenericReturnArgument(const char *aName = 0, void *aData = 0)
2161 : QGenericArgument(aName, aData)
2162 {}
2163 };
2164
2165 template <class T>
2166 class QArgument: public QGenericArgument
2167 {
2168 public:
2169 inline QArgument(const char *aName, const T &aData)
2170 : QGenericArgument(aName, static_cast<const void *>(&aData))
2171 {}
2172 };
2173
2174
2175 template <typename T>
2176 class QReturnArgument: public QGenericReturnArgument
2177 {
2178 public:
2179 inline QReturnArgument(const char *aName, T &aData)
2180 : QGenericReturnArgument(aName, static_cast<void *>(&aData))
2181 {}
2182 };
2183
2184 struct QMetaObject
2185 {
2186 const char *className() const;
2187 const QMetaObject *superClass() const;
2188
2189 QObject *cast(QObject *obj) const;
2190
2191
2192
2193 QString tr(const char *s, const char *c) const;
2194 QString trUtf8(const char *s, const char *c) const;
2195 QString tr(const char *s, const char *c, int n) const;
2196 QString trUtf8(const char *s, const char *c, int n) const;
2197
2198
2199 int methodOffset() const;
2200 int enumeratorOffset() const;
2201 int propertyOffset() const;
2202 int classInfoOffset() const;
2203
2204 int methodCount() const;
2205 int enumeratorCount() const;
2206 int propertyCount() const;
2207 int classInfoCount() const;
2208
2209 int indexOfMethod(const char *method) const;
2210 int indexOfSignal(const char *signal) const;
2211 int indexOfSlot(const char *slot) const;
2212 int indexOfEnumerator(const char *name) const;
2213 int indexOfProperty(const char *name) const;
2214 int indexOfClassInfo(const char *name) const;
2215
2216 QMetaMethod method(int index) const;
2217 QMetaEnum enumerator(int index) const;
2218 QMetaProperty property(int index) const;
2219 QMetaClassInfo classInfo(int index) const;
2220 QMetaProperty userProperty() const;
2221
2222 static bool checkConnectArgs(const char *signal, const char *method);
2223 static QByteArray normalizedSignature(const char *method);
2224 static QByteArray normalizedType(const char *type);
2225
2226
2227 static bool connect(const QObject *sender, int signal_index,
2228 const QObject *receiver, int method_index,
2229 int type = 0, int *types = 0);
2230
2231 static bool disconnect(const QObject *sender, int signal_index,
2232 const QObject *receiver, int method_index);
2233
2234 static void connectSlotsByName(QObject *o);
2235
2236
2237 static void activate(QObject *sender, int signal_index, void **argv);
2238 static void activate(QObject *sender, int from_signal_index, int to_signal_index, void **argv);
2239 static void activate(QObject *sender, const QMetaObject *, int local_signal_index, void **argv);
2240 static void activate(QObject *sender, const QMetaObject *, int from_local_signal_index, int to_local_signal_index, void **argv);
2241
2242 static void addGuard(QObject **ptr);
2243 static void removeGuard(QObject **ptr);
2244 static void changeGuard(QObject **ptr, QObject *o);
2245
2246 static bool invokeMethod(QObject *obj, const char *member,
2247 Qt::ConnectionType,
2248 QGenericReturnArgument ret,
2249 QGenericArgument val0 = QGenericArgument(0),
2250 QGenericArgument val1 = QGenericArgument(),
2251 QGenericArgument val2 = QGenericArgument(),
2252 QGenericArgument val3 = QGenericArgument(),
2253 QGenericArgument val4 = QGenericArgument(),
2254 QGenericArgument val5 = QGenericArgument(),
2255 QGenericArgument val6 = QGenericArgument(),
2256 QGenericArgument val7 = QGenericArgument(),
2257 QGenericArgument val8 = QGenericArgument(),
2258 QGenericArgument val9 = QGenericArgument());
2259
2260 static inline bool invokeMethod(QObject *obj, const char *member,
2261 QGenericReturnArgument ret,
2262 QGenericArgument val0 = QGenericArgument(0),
2263 QGenericArgument val1 = QGenericArgument(),
2264 QGenericArgument val2 = QGenericArgument(),
2265 QGenericArgument val3 = QGenericArgument(),
2266 QGenericArgument val4 = QGenericArgument(),
2267 QGenericArgument val5 = QGenericArgument(),
2268 QGenericArgument val6 = QGenericArgument(),
2269 QGenericArgument val7 = QGenericArgument(),
2270 QGenericArgument val8 = QGenericArgument(),
2271 QGenericArgument val9 = QGenericArgument())
2272 {
2273 return invokeMethod(obj, member, Qt::AutoConnection, ret, val0, val1, val2, val3,
2274 val4, val5, val6, val7, val8, val9);
2275 }
2276
2277 static inline bool invokeMethod(QObject *obj, const char *member,
2278 Qt::ConnectionType type,
2279 QGenericArgument val0 = QGenericArgument(0),
2280 QGenericArgument val1 = QGenericArgument(),
2281 QGenericArgument val2 = QGenericArgument(),
2282 QGenericArgument val3 = QGenericArgument(),
2283 QGenericArgument val4 = QGenericArgument(),
2284 QGenericArgument val5 = QGenericArgument(),
2285 QGenericArgument val6 = QGenericArgument(),
2286 QGenericArgument val7 = QGenericArgument(),
2287 QGenericArgument val8 = QGenericArgument(),
2288 QGenericArgument val9 = QGenericArgument())
2289 {
2290 return invokeMethod(obj, member, type, QGenericReturnArgument(), val0, val1, val2,
2291 val3, val4, val5, val6, val7, val8, val9);
2292 }
2293
2294
2295 static inline bool invokeMethod(QObject *obj, const char *member,
2296 QGenericArgument val0 = QGenericArgument(0),
2297 QGenericArgument val1 = QGenericArgument(),
2298 QGenericArgument val2 = QGenericArgument(),
2299 QGenericArgument val3 = QGenericArgument(),
2300 QGenericArgument val4 = QGenericArgument(),
2301 QGenericArgument val5 = QGenericArgument(),
2302 QGenericArgument val6 = QGenericArgument(),
2303 QGenericArgument val7 = QGenericArgument(),
2304 QGenericArgument val8 = QGenericArgument(),
2305 QGenericArgument val9 = QGenericArgument())
2306 {
2307 return invokeMethod(obj, member, Qt::AutoConnection, QGenericReturnArgument(), val0,
2308 val1, val2, val3, val4, val5, val6, val7, val8, val9);
2309 }
2310
2311 enum Call {
2312 InvokeMetaMethod,
2313 ReadProperty,
2314 WriteProperty,
2315 ResetProperty,
2316 QueryPropertyDesignable,
2317 QueryPropertyScriptable,
2318 QueryPropertyStored,
2319 QueryPropertyEditable,
2320 QueryPropertyUser
2321 };
2322
2323
2324
2325
2326
2327 struct {
2328 const QMetaObject *superdata;
2329 const char *stringdata;
2330 const uint *data;
2331 const QMetaObject **extradata;
2332 } d;
2333 };
2334
2335 inline const char *QMetaObject::className() const
2336 { return d.stringdata; }
2337
2338 inline const QMetaObject *QMetaObject::superClass() const
2339 { return d.superdata; }
2340 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qobjectdefs.h" 2
2341 # 46 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/io/qiodevice.h" 2
2342
2343
2344 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qstring.h" 1
2345
2346 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 1
2347 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
2348
2349 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qchar.h" 1
2350
2351 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h" 1
2352 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h"
2353
2354 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2355 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h" 2
2356
2357
2358
2359 typedef QtValidLicenseForCoreModule QtCoreModule;
2360
2361 class QString;
2362
2363 struct QLatin1Char
2364 {
2365 public:
2366 inline explicit QLatin1Char(char c) : ch(c) {}
2367 inline const char toLatin1() const { return ch; }
2368 inline const ushort unicode() const { return ushort(uchar(ch)); }
2369
2370 private:
2371 char ch;
2372 };
2373
2374
2375 class QChar {
2376 public:
2377 QChar();
2378
2379 QChar(char c);
2380 QChar(uchar c);
2381
2382 QChar(QLatin1Char ch);
2383 QChar(uchar c, uchar r);
2384 inline QChar(ushort rc) : ucs(rc){}
2385 QChar(short rc);
2386 QChar(uint rc);
2387 QChar(int rc);
2388 enum SpecialCharacter {
2389 Null = 0x0000,
2390 Nbsp = 0x00a0,
2391 ReplacementCharacter = 0xfffd,
2392 ObjectReplacementCharacter = 0xfffc,
2393 ByteOrderMark = 0xfeff,
2394 ByteOrderSwapped = 0xfffe,
2395
2396
2397
2398
2399
2400
2401
2402 ParagraphSeparator = 0x2029,
2403 LineSeparator = 0x2028
2404 };
2405 QChar(SpecialCharacter sc);
2406
2407
2408
2409 enum Category
2410 {
2411 NoCategory,
2412
2413 Mark_NonSpacing,
2414 Mark_SpacingCombining,
2415 Mark_Enclosing,
2416
2417 Number_DecimalDigit,
2418 Number_Letter,
2419 Number_Other,
2420
2421 Separator_Space,
2422 Separator_Line,
2423 Separator_Paragraph,
2424
2425 Other_Control,
2426 Other_Format,
2427 Other_Surrogate,
2428 Other_PrivateUse,
2429 Other_NotAssigned,
2430
2431 Letter_Uppercase,
2432 Letter_Lowercase,
2433 Letter_Titlecase,
2434 Letter_Modifier,
2435 Letter_Other,
2436
2437 Punctuation_Connector,
2438 Punctuation_Dash,
2439 Punctuation_Open,
2440 Punctuation_Close,
2441 Punctuation_InitialQuote,
2442 Punctuation_FinalQuote,
2443 Punctuation_Other,
2444
2445 Symbol_Math,
2446 Symbol_Currency,
2447 Symbol_Modifier,
2448 Symbol_Other,
2449
2450 Punctuation_Dask = Punctuation_Dash
2451 };
2452
2453 enum Direction
2454 {
2455 DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON,
2456 DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN
2457 };
2458
2459 enum Decomposition
2460 {
2461 NoDecomposition,
2462 Canonical,
2463 Font,
2464 NoBreak,
2465 Initial,
2466 Medial,
2467 Final,
2468 Isolated,
2469 Circle,
2470 Super,
2471 Sub,
2472 Vertical,
2473 Wide,
2474 Narrow,
2475 Small,
2476 Square,
2477 Compat,
2478 Fraction
2479
2480
2481
2482
2483 };
2484
2485 enum Joining
2486 {
2487 OtherJoining, Dual, Right, Center
2488 };
2489
2490 enum CombiningClass
2491 {
2492 Combining_BelowLeftAttached = 200,
2493 Combining_BelowAttached = 202,
2494 Combining_BelowRightAttached = 204,
2495 Combining_LeftAttached = 208,
2496 Combining_RightAttached = 210,
2497 Combining_AboveLeftAttached = 212,
2498 Combining_AboveAttached = 214,
2499 Combining_AboveRightAttached = 216,
2500
2501 Combining_BelowLeft = 218,
2502 Combining_Below = 220,
2503 Combining_BelowRight = 222,
2504 Combining_Left = 224,
2505 Combining_Right = 226,
2506 Combining_AboveLeft = 228,
2507 Combining_Above = 230,
2508 Combining_AboveRight = 232,
2509
2510 Combining_DoubleBelow = 233,
2511 Combining_DoubleAbove = 234,
2512 Combining_IotaSubscript = 240
2513 };
2514
2515 enum UnicodeVersion {
2516 Unicode_Unassigned,
2517 Unicode_1_1,
2518 Unicode_2_0,
2519 Unicode_2_1_2,
2520 Unicode_3_0,
2521 Unicode_3_1,
2522 Unicode_3_2,
2523 Unicode_4_0,
2524 Unicode_4_1,
2525 Unicode_5_0
2526 };
2527
2528
2529 Category category() const;
2530 Direction direction() const;
2531 Joining joining() const;
2532 bool hasMirrored() const;
2533 unsigned char combiningClass() const;
2534
2535 QChar mirroredChar() const;
2536 QString decomposition() const;
2537 Decomposition decompositionTag() const;
2538
2539 int digitValue() const;
2540 QChar toLower() const;
2541 QChar toUpper() const;
2542 QChar toTitleCase() const;
2543 QChar toCaseFolded() const;
2544
2545 UnicodeVersion unicodeVersion() const;
2546
2547 const char toAscii() const;
2548 inline const char toLatin1() const;
2549 inline const ushort unicode() const { return ucs; }
2550
2551
2552
2553 inline ushort &unicode() { return ucs; }
2554
2555
2556 static QChar fromAscii(char c);
2557 static QChar fromLatin1(char c);
2558
2559 inline bool isNull() const { return ucs == 0; }
2560 bool isPrint() const;
2561 bool isPunct() const;
2562 bool isSpace() const;
2563 bool isMark() const;
2564 bool isLetter() const;
2565 bool isNumber() const;
2566 bool isLetterOrNumber() const;
2567 bool isDigit() const;
2568 bool isSymbol() const;
2569 inline bool isLower() const { return category() == Letter_Lowercase; }
2570 inline bool isUpper() const { return category() == Letter_Uppercase; }
2571 inline bool isTitleCase() const { return category() == Letter_Titlecase; }
2572
2573 inline bool isHighSurrogate() const {
2574 return ((ucs & 0xfc00) == 0xd800);
2575 }
2576 inline bool isLowSurrogate() const {
2577 return ((ucs & 0xfc00) == 0xdc00);
2578 }
2579
2580 inline uchar cell() const { return uchar(ucs & 0xff); }
2581 inline uchar row() const { return uchar((ucs>>8)&0xff); }
2582 inline void setCell(uchar cell);
2583 inline void setRow(uchar row);
2584
2585 static inline uint surrogateToUcs4(ushort high, ushort low) {
2586 return (uint(high)<<10) + low - 0x35fdc00;
2587 }
2588 static inline uint surrogateToUcs4(QChar high, QChar low) {
2589 return (uint(high.ucs)<<10) + low.ucs - 0x35fdc00;
2590 }
2591 static inline ushort highSurrogate(uint ucs4) {
2592 return (ucs4>>10) + 0xd7c0;
2593 }
2594 static inline ushort lowSurrogate(uint ucs4) {
2595 return ucs4%0x400 + 0xdc00;
2596 }
2597
2598 static Category category(uint ucs4);
2599 static Category category(ushort ucs2);
2600 static Direction direction(uint ucs4);
2601 static Direction direction(ushort ucs2);
2602 static Joining joining(uint ucs4);
2603 static Joining joining(ushort ucs2);
2604 static unsigned char combiningClass(uint ucs4);
2605 static unsigned char combiningClass(ushort ucs2);
2606
2607 static uint mirroredChar(uint ucs4);
2608 static ushort mirroredChar(ushort ucs2);
2609 static Decomposition decompositionTag(uint ucs4);
2610
2611 static int digitValue(uint ucs4);
2612 static int digitValue(ushort ucs2);
2613 static uint toLower(uint ucs4);
2614 static ushort toLower(ushort ucs2);
2615 static uint toUpper(uint ucs4);
2616 static ushort toUpper(ushort ucs2);
2617 static uint toTitleCase(uint ucs4);
2618 static ushort toTitleCase(ushort ucs2);
2619 static uint toCaseFolded(uint ucs4);
2620 static ushort toCaseFolded(ushort ucs2);
2621
2622 static UnicodeVersion unicodeVersion(uint ucs4);
2623 static UnicodeVersion unicodeVersion(ushort ucs2);
2624
2625 static QString decomposition(uint ucs4);
2626 # 325 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qchar.h"
2627 private:
2628
2629
2630
2631
2632 ushort ucs;
2633 } ;
2634
2635 template <> class QTypeInfo<QChar> { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(QChar)>sizeof(void*)), isPointer = false, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "QChar"; } };
2636
2637 inline QChar::QChar() : ucs(0) {}
2638
2639 inline const char QChar::toLatin1() const { return ucs > 0xff ? '\0' : char(ucs); }
2640 inline QChar QChar::fromLatin1(char c) { return QChar(ushort(uchar(c))); }
2641
2642 inline QChar::QChar(uchar c, uchar r) : ucs((r << 8) | c){}
2643 inline QChar::QChar(short rc) : ucs(ushort(rc)){}
2644 inline QChar::QChar(uint rc) : ucs(ushort(rc & 0xffff)){}
2645 inline QChar::QChar(int rc) : ucs(ushort(rc & 0xffff)){}
2646 inline QChar::QChar(SpecialCharacter s) : ucs(ushort(s)) {}
2647 inline QChar::QChar(QLatin1Char ch) : ucs(ch.unicode()) {}
2648
2649 inline void QChar::setCell(uchar acell)
2650 { ucs = (ucs & 0xff00) + acell; }
2651 inline void QChar::setRow(uchar arow)
2652 { ucs = (ushort(arow)<<8) + (ucs&0xff); }
2653
2654 inline bool operator==(QChar c1, QChar c2) { return c1.unicode() == c2.unicode(); }
2655 inline bool operator!=(QChar c1, QChar c2) { return c1.unicode() != c2.unicode(); }
2656 inline bool operator<=(QChar c1, QChar c2) { return c1.unicode() <= c2.unicode(); }
2657 inline bool operator>=(QChar c1, QChar c2) { return c1.unicode() >= c2.unicode(); }
2658 inline bool operator<(QChar c1, QChar c2) { return c1.unicode() < c2.unicode(); }
2659 inline bool operator>(QChar c1, QChar c2) { return c1.unicode() > c2.unicode(); }
2660
2661
2662 QDataStream &operator<<(QDataStream &, const QChar &);
2663 QDataStream &operator>>(QDataStream &, QChar &);
2664 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qchar.h" 2
2665 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
2666
2667 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qbytearray.h" 1
2668
2669 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 1
2670 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
2671
2672 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2673 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
2674
2675 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic.h" 1
2676
2677 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h" 1
2678 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2679
2680 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic_generic.h" 1
2681
2682 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/arch/qatomic_generic.h" 1
2683 # 42 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/arch/qatomic_generic.h"
2684
2685 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2686 # 43 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/arch/qatomic_generic.h" 2
2687
2688
2689
2690 inline int q_atomic_test_and_set_int(volatile int *ptr, int expected, int newval)
2691 {
2692 if (*ptr == expected) {
2693 *ptr = newval;
2694 return 1;
2695 }
2696 return 0;
2697 }
2698
2699 inline int q_atomic_test_and_set_acquire_int(volatile int *ptr, int expected, int newval)
2700 {
2701 return q_atomic_test_and_set_int(ptr, expected, newval);
2702 }
2703
2704 inline int q_atomic_test_and_set_release_int(volatile int *ptr, int expected, int newval)
2705 {
2706 return q_atomic_test_and_set_int(ptr, expected, newval);
2707 }
2708
2709 inline int q_atomic_test_and_set_ptr(volatile void *ptr, void *expected, void *newval)
2710 {
2711 if (*reinterpret_cast<void * volatile *>(ptr) == expected) {
2712 *reinterpret_cast<void * volatile *>(ptr) = newval;
2713 return 1;
2714 }
2715 return 0;
2716 }
2717
2718 inline int q_atomic_increment(volatile int *ptr)
2719 { return ++(*ptr); }
2720
2721 inline int q_atomic_decrement(volatile int *ptr)
2722 { return --(*ptr); }
2723
2724 inline int q_atomic_set_int(volatile int *ptr, int newval)
2725 {
2726 register int ret = *ptr;
2727 *ptr = newval;
2728 return ret;
2729 }
2730
2731 inline void *q_atomic_set_ptr(volatile void *ptr, void *newval)
2732 {
2733 register void *ret = *reinterpret_cast<void * volatile *>(ptr);
2734 *reinterpret_cast<void * volatile *>(ptr) = newval;
2735 return ret;
2736 }
2737
2738 inline int q_atomic_fetch_and_add_int(volatile int *ptr, int value)
2739 {
2740 int originalValue = *ptr;
2741 *ptr += value;
2742 return originalValue;
2743 }
2744
2745 inline int q_atomic_fetch_and_add_acquire_int(volatile int *ptr, int value)
2746 {
2747 return q_atomic_fetch_and_add_int(ptr, value);
2748 }
2749
2750 inline int q_atomic_fetch_and_add_release_int(volatile int *ptr, int value)
2751 {
2752 return q_atomic_fetch_and_add_int(ptr, value);
2753 }
2754 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic_generic.h" 2
2755 # 44 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h" 2
2756
2757
2758
2759
2760 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qglobal.h" 1
2761 # 48 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h" 2
2762
2763
2764
2765 typedef QtValidLicenseForCoreModule QtCoreModule;
2766 # 83 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2767 struct QBasicAtomic {
2768 volatile int value;
2769
2770 void init(int x = 0)
2771 { value = x; }
2772
2773 inline bool ref()
2774 { return q_atomic_increment(&value) != 0; }
2775
2776 inline bool deref()
2777 { return q_atomic_decrement(&value) != 0; }
2778
2779 inline bool operator==(int x) const
2780 { return value == x; }
2781
2782 inline bool operator!=(int x) const
2783 { return value != x; }
2784
2785 inline bool operator!() const
2786 { return value == 0; }
2787
2788 inline operator int() const
2789 { return value; }
2790
2791 inline QBasicAtomic &operator=(int x)
2792 {
2793 value = x;
2794 return *this;
2795 }
2796
2797 inline bool testAndSet(int expected, int newval)
2798 { return q_atomic_test_and_set_int(&value, expected, newval) != 0; }
2799
2800 inline bool testAndSetAcquire(int expected, int newval)
2801 { return q_atomic_test_and_set_acquire_int(&value, expected, newval) != 0; }
2802
2803 inline bool testAndSetRelease(int expected, int newval)
2804 { return q_atomic_test_and_set_release_int(&value, expected, newval) != 0; }
2805
2806 inline int exchange(int newval)
2807 { return q_atomic_set_int(&value, newval); }
2808
2809 inline int fetchAndAdd(int aValue)
2810 { return q_atomic_fetch_and_add_int(&value, aValue); }
2811
2812 inline int fetchAndAddAcquire(int aValue)
2813 { return q_atomic_fetch_and_add_acquire_int(&value, aValue); }
2814
2815 inline int fetchAndAddRelease(int aValue)
2816 { return q_atomic_fetch_and_add_release_int(&value, aValue); }
2817 };
2818
2819 template <typename T>
2820 struct QBasicAtomicPointer
2821 {
2822 volatile T *value;
2823
2824 void init(T *t = 0)
2825 { value = t; }
2826
2827 inline bool operator==(T *t) const
2828 { return value == t; }
2829
2830 inline bool operator!=(T *t) const
2831 { return !operator==(t); }
2832
2833 inline bool operator!() const
2834 { return operator==(0); }
2835
2836 inline operator T *() const
2837 { return const_cast<T *>(value); }
2838
2839 inline T *operator->() const
2840 { return const_cast<T *>(value); }
2841
2842 inline QBasicAtomicPointer<T> &operator=(T *t)
2843 {
2844 value = t;
2845 return *this;
2846 }
2847
2848 inline bool testAndSet(T *expected, T *newval)
2849 { return q_atomic_test_and_set_ptr(&value, expected, newval); }
2850
2851 inline T *exchange(T * newval)
2852 { return static_cast<T *>(q_atomic_set_ptr(&value, newval)); }
2853 };
2854
2855
2856
2857
2858
2859 template <typename T>
2860 inline T qAtomicSetPtr(volatile T *ptr, T newval)
2861 { return static_cast<T>(q_atomic_set_ptr(ptr, newval)); }
2862
2863
2864 class QAtomic : public QBasicAtomic
2865 {
2866 public:
2867 inline QAtomic(int x = 0)
2868 { init(x); }
2869 inline QAtomic(const QAtomic &copy)
2870 { init(copy); }
2871
2872 inline QAtomic &operator=(int x)
2873 {
2874 (void) QBasicAtomic::operator=(x);
2875 return *this;
2876 }
2877
2878 inline QAtomic &operator=(const QAtomic &copy)
2879 {
2880 (void) QBasicAtomic::operator=(copy);
2881 return *this;
2882 }
2883 };
2884
2885
2886 template <typename T>
2887 class QAtomicPointer : public QBasicAtomicPointer<T>
2888 {
2889 public:
2890 inline QAtomicPointer(T *t = 0)
2891 { init(t); }
2892 inline QAtomicPointer(const QAtomicPointer<T> &copy)
2893 { init(copy); }
2894
2895 inline QAtomicPointer<T> &operator=(T *t)
2896 {
2897 (void) QBasicAtomicPointer<T>::operator=(t);
2898 return *this;
2899 }
2900
2901 inline QAtomicPointer<T> &operator=(const QAtomicPointer<T> &copy)
2902 {
2903 (void) QBasicAtomicPointer<T>::operator=(copy);
2904 return *this;
2905 }
2906 };
2907 # 233 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2908 template <typename T>
2909 inline void qAtomicAssign(T *&d, T *x)
2910 {
2911 if (d == x)
2912 return;
2913 x->ref.ref();
2914 if (!d->ref.deref())
2915 delete d;
2916 d = x;
2917 }
2918 # 255 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/thread/qatomic.h"
2919 template <typename T>
2920 inline void qAtomicDetach(T *&d)
2921 {
2922 if (d->ref == 1)
2923 return;
2924 T *x = d;
2925 d = new T(*d);
2926 if (!x->ref.deref())
2927 delete x;
2928 }
2929 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic.h" 2
2930 # 44 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
2931
2932
2933 # 1 "/usr/include/string.h" 1 3 4
2934 # 9 "/usr/include/string.h" 3 4
2935 # 1 "/usr/include/gentoo-multilib/amd64/string.h" 1 3 4
2936 # 26 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
2937
2938 # 1 "/usr/include/features.h" 1 3 4
2939 # 9 "/usr/include/features.h" 3 4
2940 # 1 "/usr/include/gentoo-multilib/amd64/features.h" 1 3 4
2941 # 322 "/usr/include/gentoo-multilib/amd64/features.h" 3 4
2942
2943 # 1 "/usr/include/sys/cdefs.h" 1 3 4
2944 # 9 "/usr/include/sys/cdefs.h" 3 4
2945 # 1 "/usr/include/gentoo-multilib/amd64/sys/cdefs.h" 1 3 4
2946 # 324 "/usr/include/gentoo-multilib/amd64/sys/cdefs.h" 3 4
2947
2948 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2949 # 9 "/usr/include/bits/wordsize.h" 3 4
2950 # 1 "/usr/include/gentoo-multilib/amd64/bits/wordsize.h" 1 3 4
2951 # 9 "/usr/include/bits/wordsize.h" 2 3 4
2952 # 325 "/usr/include/gentoo-multilib/amd64/sys/cdefs.h" 2 3 4
2953 # 9 "/usr/include/sys/cdefs.h" 2 3 4
2954 # 323 "/usr/include/gentoo-multilib/amd64/features.h" 2 3 4
2955 # 345 "/usr/include/gentoo-multilib/amd64/features.h" 3 4
2956
2957 # 1 "/usr/include/gnu/stubs.h" 1 3 4
2958 # 9 "/usr/include/gnu/stubs.h" 3 4
2959 # 1 "/usr/include/gentoo-multilib/amd64/gnu/stubs.h" 1 3 4
2960
2961
2962
2963
2964 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2965 # 9 "/usr/include/bits/wordsize.h" 3 4
2966 # 1 "/usr/include/gentoo-multilib/amd64/bits/wordsize.h" 1 3 4
2967 # 9 "/usr/include/bits/wordsize.h" 2 3 4
2968 # 5 "/usr/include/gentoo-multilib/amd64/gnu/stubs.h" 2 3 4
2969
2970
2971
2972
2973
2974 # 1 "/usr/include/gnu/stubs-64.h" 1 3 4
2975
2976
2977
2978
2979 # 1 "/usr/include/gentoo-multilib/amd64/gnu/stubs-64.h" 1 3 4
2980 # 5 "/usr/include/gnu/stubs-64.h" 2 3 4
2981 # 10 "/usr/include/gentoo-multilib/amd64/gnu/stubs.h" 2 3 4
2982 # 9 "/usr/include/gnu/stubs.h" 2 3 4
2983 # 346 "/usr/include/gentoo-multilib/amd64/features.h" 2 3 4
2984 # 9 "/usr/include/features.h" 2 3 4
2985 # 27 "/usr/include/gentoo-multilib/amd64/string.h" 2 3 4
2986
2987 extern "C" {
2988
2989
2990
2991
2992
2993 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stddef.h" 1 3 4
2994 # 34 "/usr/include/gentoo-multilib/amd64/string.h" 2 3 4
2995
2996
2997
2998
2999 extern void *memcpy (void *__restrict __dest,
3000 __const void *__restrict __src, size_t __n)
3001 throw () __attribute__ ((__nonnull__ (1, 2)));
3002
3003
3004 extern void *memmove (void *__dest, __const void *__src, size_t __n)
3005 throw () __attribute__ ((__nonnull__ (1, 2)));
3006
3007
3008
3009
3010
3011
3012 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
3013 int __c, size_t __n)
3014 throw () __attribute__ ((__nonnull__ (1, 2)));
3015
3016
3017
3018
3019
3020 extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3021
3022
3023 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
3024 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3025
3026
3027 extern void *memchr (__const void *__s, int __c, size_t __n)
3028 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3029
3030
3031
3032
3033
3034 extern void *rawmemchr (__const void *__s, int __c)
3035 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3036
3037
3038 extern void *memrchr (__const void *__s, int __c, size_t __n)
3039 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3040
3041
3042
3043
3044
3045 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
3046 throw () __attribute__ ((__nonnull__ (1, 2)));
3047
3048 extern char *strncpy (char *__restrict __dest,
3049 __const char *__restrict __src, size_t __n)
3050 throw () __attribute__ ((__nonnull__ (1, 2)));
3051
3052
3053 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
3054 throw () __attribute__ ((__nonnull__ (1, 2)));
3055
3056 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
3057 size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
3058
3059
3060 extern int strcmp (__const char *__s1, __const char *__s2)
3061 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3062
3063 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
3064 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3065
3066
3067 extern int strcoll (__const char *__s1, __const char *__s2)
3068 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3069
3070 extern size_t strxfrm (char *__restrict __dest,
3071 __const char *__restrict __src, size_t __n)
3072 throw () __attribute__ ((__nonnull__ (2)));
3073
3074
3075
3076
3077
3078
3079
3080 # 1 "/usr/include/xlocale.h" 1 3 4
3081 # 9 "/usr/include/xlocale.h" 3 4
3082 # 1 "/usr/include/gentoo-multilib/amd64/xlocale.h" 1 3 4
3083 # 28 "/usr/include/gentoo-multilib/amd64/xlocale.h" 3 4
3084 typedef struct __locale_struct
3085 {
3086
3087 struct locale_data *__locales[13];
3088
3089
3090 const unsigned short int *__ctype_b;
3091 const int *__ctype_tolower;
3092 const int *__ctype_toupper;
3093
3094
3095 const char *__names[13];
3096 } *__locale_t;
3097 # 9 "/usr/include/xlocale.h" 2 3 4
3098 # 119 "/usr/include/gentoo-multilib/amd64/string.h" 2 3 4
3099
3100
3101 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
3102 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3103
3104 extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
3105 __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));
3106
3107
3108
3109
3110 extern char *strdup (__const char *__s)
3111 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3112
3113
3114
3115
3116
3117
3118 extern char *strndup (__const char *__string, size_t __n)
3119 throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3120 # 165 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
3121
3122
3123 extern char *strchr (__const char *__s, int __c)
3124 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3125
3126 extern char *strrchr (__const char *__s, int __c)
3127 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3128
3129
3130
3131
3132
3133 extern char *strchrnul (__const char *__s, int __c)
3134 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3135
3136
3137
3138
3139
3140 extern size_t strcspn (__const char *__s, __const char *__reject)
3141 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3142
3143
3144 extern size_t strspn (__const char *__s, __const char *__accept)
3145 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3146
3147 extern char *strpbrk (__const char *__s, __const char *__accept)
3148 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3149
3150 extern char *strstr (__const char *__haystack, __const char *__needle)
3151 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3152
3153
3154
3155 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
3156 throw () __attribute__ ((__nonnull__ (2)));
3157
3158
3159
3160
3161 extern char *__strtok_r (char *__restrict __s,
3162 __const char *__restrict __delim,
3163 char **__restrict __save_ptr)
3164 throw () __attribute__ ((__nonnull__ (2, 3)));
3165
3166 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
3167 char **__restrict __save_ptr)
3168 throw () __attribute__ ((__nonnull__ (2, 3)));
3169
3170
3171
3172
3173 extern char *strcasestr (__const char *__haystack, __const char *__needle)
3174 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3175
3176
3177
3178
3179
3180
3181 extern void *memmem (__const void *__haystack, size_t __haystacklen,
3182 __const void *__needle, size_t __needlelen)
3183 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
3184
3185
3186
3187 extern void *__mempcpy (void *__restrict __dest,
3188 __const void *__restrict __src, size_t __n)
3189 throw () __attribute__ ((__nonnull__ (1, 2)));
3190 extern void *mempcpy (void *__restrict __dest,
3191 __const void *__restrict __src, size_t __n)
3192 throw () __attribute__ ((__nonnull__ (1, 2)));
3193
3194
3195
3196
3197
3198 extern size_t strlen (__const char *__s)
3199 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3200
3201
3202
3203
3204
3205 extern size_t strnlen (__const char *__string, size_t __maxlen)
3206 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3207
3208
3209
3210
3211
3212 extern char *strerror (int __errnum) throw ();
3213 # 281 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
3214 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
3215 throw () __attribute__ ((__nonnull__ (2)));
3216
3217
3218
3219
3220
3221 extern char *strerror_l (int __errnum, __locale_t __l) throw ();
3222
3223
3224
3225
3226
3227 extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3228
3229
3230
3231 extern void bcopy (__const void *__src, void *__dest, size_t __n)
3232 throw () __attribute__ ((__nonnull__ (1, 2)));
3233
3234
3235 extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3236
3237
3238 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
3239 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3240
3241
3242 extern char *index (__const char *__s, int __c)
3243 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3244
3245
3246 extern char *rindex (__const char *__s, int __c)
3247 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3248
3249
3250
3251 extern int ffs (int __i) throw () __attribute__ ((__const__));
3252
3253
3254
3255
3256 extern int ffsl (long int __l) throw () __attribute__ ((__const__));
3257
3258 __extension__ extern int ffsll (long long int __ll)
3259 throw () __attribute__ ((__const__));
3260
3261
3262
3263
3264 extern int strcasecmp (__const char *__s1, __const char *__s2)
3265 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3266
3267
3268 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
3269 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3270
3271
3272
3273
3274
3275 extern int strcasecmp_l (__const char *__s1, __const char *__s2,
3276 __locale_t __loc)
3277 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
3278
3279 extern int strncasecmp_l (__const char *__s1, __const char *__s2,
3280 size_t __n, __locale_t __loc)
3281 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
3282
3283
3284
3285
3286
3287 extern char *strsep (char **__restrict __stringp,
3288 __const char *__restrict __delim)
3289 throw () __attribute__ ((__nonnull__ (1, 2)));
3290
3291
3292
3293
3294 extern int strverscmp (__const char *__s1, __const char *__s2)
3295 throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3296
3297
3298 extern char *strsignal (int __sig) throw ();
3299
3300
3301 extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
3302 throw () __attribute__ ((__nonnull__ (1, 2)));
3303 extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
3304 throw () __attribute__ ((__nonnull__ (1, 2)));
3305
3306
3307
3308 extern char *__stpncpy (char *__restrict __dest,
3309 __const char *__restrict __src, size_t __n)
3310 throw () __attribute__ ((__nonnull__ (1, 2)));
3311 extern char *stpncpy (char *__restrict __dest,
3312 __const char *__restrict __src, size_t __n)
3313 throw () __attribute__ ((__nonnull__ (1, 2)));
3314
3315
3316 extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1)));
3317
3318
3319 extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
3320
3321
3322
3323
3324
3325
3326 extern char *basename (__const char *__filename) throw () __attribute__ ((__nonnull__ (1)));
3327 # 432 "/usr/include/gentoo-multilib/amd64/string.h" 3 4
3328 }
3329 # 9 "/usr/include/string.h" 2 3 4
3330 # 46 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
3331
3332 # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stdarg.h" 1 3 4
3333 # 43 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stdarg.h" 3 4
3334 typedef __builtin_va_list __gnuc_va_list;
3335 # 105 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/stdarg.h" 3 4
3336 typedef __gnuc_va_list va_list;
3337 # 47 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h" 2
3338
3339
3340
3341
3342
3343
3344
3345 typedef QtValidLicenseForCoreModule QtCoreModule;
3346
3347
3348
3349
3350
3351 char *qstrdup(const char *);
3352
3353 inline uint qstrlen(const char *str)
3354 { return str ? uint(strlen(str)) : 0; }
3355
3356 inline uint qstrnlen(const char *str, uint maxlen)
3357 {
3358 uint length = 0;
3359 if (str) {
3360 while (length < maxlen && *str++)
3361 length++;
3362 }
3363 return length;
3364 }
3365
3366 char *qstrcpy(char *dst, const char *src);
3367 char *qstrncpy(char *dst, const char *src, uint len);
3368
3369 int qstrcmp(const char *str1, const char *str2);
3370
3371 inline int qstrncmp(const char *str1, const char *str2, uint len)
3372 {
3373 return (str1 && str2) ? strncmp(str1, str2, len)
3374 : (str1 ? 1 : (str2 ? -1 : 0));
3375 }
3376 int qstricmp(const char *, const char *);
3377 int qstrnicmp(const char *, const char *, uint len);
3378
3379
3380 int qvsnprintf(char *str, size_t n, const char *fmt, va_list ap);
3381 int qsnprintf(char *str, size_t n, const char *fmt, ...);
3382 # 107 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3383 quint16 qChecksum(const char *s, uint len);
3384
3385 class QByteRef;
3386 class QString;
3387 class QDataStream;
3388 template <typename T> class QList;
3389
3390 class QByteArray
3391 {
3392 public:
3393 inline QByteArray();
3394 QByteArray(const char *);
3395 QByteArray(const char *, int size);
3396 QByteArray(int size, char c);
3397 inline QByteArray(const QByteArray &);
3398 inline ~QByteArray();
3399
3400 QByteArray &operator=(const QByteArray &);
3401 QByteArray &operator=(const char *str);
3402
3403 inline int size() const;
3404 bool isEmpty() const;
3405 void resize(int size);
3406
3407 QByteArray &fill(char c, int size = -1);
3408
3409 int capacity() const;
3410 void reserve(int size);
3411 void squeeze();
3412
3413 operator const char *() const;
3414 operator const void *() const;
3415 char *data();
3416 const char *data() const;
3417 inline const char *constData() const;
3418 inline void detach();
3419 bool isDetached() const;
3420 void clear();
3421
3422 const char at(int i) const;
3423 const char operator[](int i) const;
3424 QByteRef operator[](int i);
3425 const char operator[](uint i) const;
3426 QByteRef operator[](uint i);
3427
3428 int indexOf(char c, int from = 0) const;
3429 inline int indexOf(const char *c, int from = 0) const;
3430 int indexOf(const QByteArray &a, int from = 0) const;
3431 int lastIndexOf(char c, int from = -1) const;
3432 inline int lastIndexOf(const char *c, int from = -1) const;
3433 int lastIndexOf(const QByteArray &a, int from = -1) const;
3434
3435 QBool contains(char c) const;
3436 QBool contains(const char *a) const;
3437 QBool contains(const QByteArray &a) const;
3438 int count(char c) const;
3439 int count(const char *a) const;
3440 int count(const QByteArray &a) const;
3441
3442 QByteArray left(int len) const;
3443 QByteArray right(int len) const;
3444 QByteArray mid(int index, int len = -1) const;
3445
3446 bool startsWith(const QByteArray &a) const;
3447 bool startsWith(char c) const;
3448 bool startsWith(const char *c) const;
3449
3450 bool endsWith(const QByteArray &a) const;
3451 bool endsWith(char c) const;
3452 bool endsWith(const char *c) const;
3453
3454 void truncate(int pos);
3455 void chop(int n);
3456
3457 QByteArray toLower() const;
3458 QByteArray toUpper() const;
3459
3460 QByteArray trimmed() const;
3461 QByteArray simplified() const;
3462 QByteArray leftJustified(int width, char fill = ' ', bool truncate = false) const;
3463 QByteArray rightJustified(int width, char fill = ' ', bool truncate = false) const;
3464 # 196 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3465 QByteArray &prepend(char c);
3466 QByteArray &prepend(const char *s);
3467 QByteArray &prepend(const QByteArray &a);
3468 QByteArray &append(char c);
3469 QByteArray &append(const char *s);
3470 QByteArray &append(const QByteArray &a);
3471 QByteArray &insert(int i, char c);
3472 QByteArray &insert(int i, const char *s);
3473 QByteArray &insert(int i, const QByteArray &a);
3474 QByteArray &remove(int index, int len);
3475 QByteArray &replace(int index, int len, const char *s);
3476 QByteArray &replace(int index, int len, const QByteArray &s);
3477 QByteArray &replace(char before, const char *after);
3478 QByteArray &replace(char before, const QByteArray &after);
3479 QByteArray &replace(const char *before, const char *after);
3480 QByteArray &replace(const QByteArray &before, const QByteArray &after);
3481 QByteArray &replace(const QByteArray &before, const char *after);
3482 QByteArray &replace(const char *before, const QByteArray &after);
3483 QByteArray &replace(char before, char after);
3484 QByteArray &operator+=(char c);
3485 QByteArray &operator+=(const char *s);
3486 QByteArray &operator+=(const QByteArray &a);
3487
3488 QList<QByteArray> split(char sep) const;
3489
3490
3491 QByteArray &append(const QString &s);
3492 QByteArray &insert(int i, const QString &s);
3493 QByteArray &replace(const QString &before, const char *after);
3494 QByteArray &replace(char c, const QString &after);
3495 QByteArray &replace(const QString &before, const QByteArray &after);
3496
3497 QByteArray &operator+=(const QString &s);
3498 int indexOf(const QString &s, int from = 0) const;
3499 int lastIndexOf(const QString &s, int from = -1) const;
3500
3501
3502 inline bool operator==(const QString &s2) const;
3503 inline bool operator!=(const QString &s2) const;
3504 inline bool operator<(const QString &s2) const;
3505 inline bool operator>(const QString &s2) const;
3506 inline bool operator<=(const QString &s2) const;
3507 inline bool operator>=(const QString &s2) const;
3508
3509
3510 short toShort(bool *ok = 0, int base = 10) const;
3511 ushort toUShort(bool *ok = 0, int base = 10) const;
3512 int toInt(bool *ok = 0, int base = 10) const;
3513 uint toUInt(bool *ok = 0, int base = 10) const;
3514 long toLong(bool *ok = 0, int base = 10) const;
3515 ulong toULong(bool *ok = 0, int base = 10) const;
3516 qlonglong toLongLong(bool *ok = 0, int base = 10) const;
3517 qulonglong toULongLong(bool *ok = 0, int base = 10) const;
3518 float toFloat(bool *ok = 0) const;
3519 double toDouble(bool *ok = 0) const;
3520 QByteArray toBase64() const;
3521 QByteArray toHex() const;
3522
3523 QByteArray &setNum(short, int base = 10);
3524 QByteArray &setNum(ushort, int base = 10);
3525 QByteArray &setNum(int, int base = 10);
3526 QByteArray &setNum(uint, int base = 10);
3527 QByteArray &setNum(qlonglong, int base = 10);
3528 QByteArray &setNum(qulonglong, int base = 10);
3529 QByteArray &setNum(float, char f = 'g', int prec = 6);
3530 QByteArray &setNum(double, char f = 'g', int prec = 6);
3531
3532 static QByteArray number(int, int base = 10);
3533 static QByteArray number(uint, int base = 10);
3534 static QByteArray number(qlonglong, int base = 10);
3535 static QByteArray number(qulonglong, int base = 10);
3536 static QByteArray number(double, char f = 'g', int prec = 6);
3537 static QByteArray fromRawData(const char *, int size);
3538 static QByteArray fromBase64(const QByteArray &base64);
3539 static QByteArray fromHex(const QByteArray &hexEncoded);
3540
3541 typedef char *iterator;
3542 typedef const char *const_iterator;
3543 typedef iterator Iterator;
3544 typedef const_iterator ConstIterator;
3545 iterator begin();
3546 const_iterator begin() const;
3547 const_iterator constBegin() const;
3548 iterator end();
3549 const_iterator end() const;
3550 const_iterator constEnd() const;
3551
3552
3553 typedef const char & const_reference;
3554 typedef char & reference;
3555 void push_back(char c);
3556 void push_back(const char *c);
3557 void push_back(const QByteArray &a);
3558 void push_front(char c);
3559 void push_front(const char *c);
3560 void push_front(const QByteArray &a);
3561
3562 inline int count() const { return d->size; }
3563 int length() const { return d->size; }
3564 bool isNull() const;
3565 # 322 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3566 private:
3567 operator QNoImplicitBoolCast() const;
3568 struct Data {
3569 QBasicAtomic ref;
3570 int alloc, size;
3571 char *data;
3572 char array[1];
3573 };
3574 static Data shared_null;
3575 static Data shared_empty;
3576 Data *d;
3577 QByteArray(Data *dd, int , int ) : d(dd) {}
3578 void realloc(int alloc);
3579 void expand(int i);
3580
3581 friend class QByteRef;
3582 friend class QString;
3583 public:
3584 typedef Data * DataPtr;
3585 inline DataPtr &data_ptr() { return d; }
3586 };
3587
3588 inline QByteArray::QByteArray(): d(&shared_null) { d->ref.ref(); }
3589 inline QByteArray::~QByteArray() { if (!d->ref.deref()) qFree(d); }
3590 inline int QByteArray::size() const
3591 { return d->size; }
3592 inline const char QByteArray::at(int i) const
3593 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",349);} while (0); return d->data[i]; }
3594 inline const char QByteArray::operator[](int i) const
3595 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",351);} while (0); return d->data[i]; }
3596 inline const char QByteArray::operator[](uint i) const
3597 { do {if(!(i < uint(size())))qt_assert("i < uint(size())","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",353);} while (0); return d->data[i]; }
3598 inline bool QByteArray::isEmpty() const
3599 { return d->size == 0; }
3600 inline QByteArray::operator const char *() const
3601 { return d->data; }
3602 inline QByteArray::operator const void *() const
3603 { return d->data; }
3604 inline char *QByteArray::data()
3605 { detach(); return d->data; }
3606 inline const char *QByteArray::data() const
3607 { return d->data; }
3608 inline const char *QByteArray::constData() const
3609 { return d->data; }
3610 inline void QByteArray::detach()
3611 { if (d->ref != 1 || d->data != d->array) realloc(d->size); }
3612 inline bool QByteArray::isDetached() const
3613 { return d->ref == 1; }
3614 inline QByteArray::QByteArray(const QByteArray &a) : d(a.d)
3615 { d->ref.ref(); }
3616
3617
3618
3619
3620
3621 inline int QByteArray::capacity() const
3622 { return d->alloc; }
3623
3624 inline void QByteArray::reserve(int asize)
3625 { if (d->ref != 1 || asize > d->alloc) realloc(asize); }
3626
3627 inline void QByteArray::squeeze()
3628 { if (d->size < d->alloc) realloc(d->size); }
3629
3630 class QByteRef {
3631 QByteArray &a;
3632 int i;
3633 inline QByteRef(QByteArray &array, int idx)
3634 : a(array),i(idx) {}
3635 friend class QByteArray;
3636 public:
3637 inline operator const char() const
3638 { return i < a.d->size ? a.d->data[i] : 0; }
3639 inline QByteRef &operator=(char c)
3640 { if (a.d->ref != 1 || i >= a.d->size) a.expand(i);
3641 a.d->data[i] = c; return *this; }
3642 inline QByteRef &operator=(const QByteRef &c)
3643 { if (a.d->ref != 1 || i >= a.d->size) a.expand(i);
3644 a.d->data[i] = c.a.d->data[c.i]; return *this; }
3645 inline bool operator==(char c) const
3646 { return a.d->data[i] == c; }
3647 inline bool operator!=(char c) const
3648 { return a.d->data[i] != c; }
3649 inline bool operator>(char c) const
3650 { return a.d->data[i] > c; }
3651 inline bool operator>=(char c) const
3652 { return a.d->data[i] >= c; }
3653 inline bool operator<(char c) const
3654 { return a.d->data[i] < c; }
3655 inline bool operator<=(char c) const
3656 { return a.d->data[i] <= c; }
3657 };
3658
3659 inline QByteRef QByteArray::operator[](int i)
3660 { do {if(!(i >= 0))qt_assert("i >= 0","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h",416);} while (0); return QByteRef(*this, i); }
3661 inline QByteRef QByteArray::operator[](uint i)
3662 { return QByteRef(*this, i); }
3663 inline QByteArray::iterator QByteArray::begin()
3664 { detach(); return d->data; }
3665 inline QByteArray::const_iterator QByteArray::begin() const
3666 { return d->data; }
3667 inline QByteArray::const_iterator QByteArray::constBegin() const
3668 { return d->data; }
3669 inline QByteArray::iterator QByteArray::end()
3670 { detach(); return d->data + d->size; }
3671 inline QByteArray::const_iterator QByteArray::end() const
3672 { return d->data + d->size; }
3673 inline QByteArray::const_iterator QByteArray::constEnd() const
3674 { return d->data + d->size; }
3675 inline QByteArray &QByteArray::operator+=(char c)
3676 { return append(c); }
3677 inline QByteArray &QByteArray::operator+=(const char *s)
3678 { return append(s); }
3679 inline QByteArray &QByteArray::operator+=(const QByteArray &a)
3680 { return append(a); }
3681 inline void QByteArray::push_back(char c)
3682 { append(c); }
3683 inline void QByteArray::push_back(const char *c)
3684 { append(c); }
3685 inline void QByteArray::push_back(const QByteArray &a)
3686 { append(a); }
3687 inline void QByteArray::push_front(char c)
3688 { prepend(c); }
3689 inline void QByteArray::push_front(const char *c)
3690 { prepend(c); }
3691 inline void QByteArray::push_front(const QByteArray &a)
3692 { prepend(a); }
3693 inline QBool QByteArray::contains(const QByteArray &a) const
3694 { return QBool(indexOf(a) != -1); }
3695 inline QBool QByteArray::contains(char c) const
3696 { return QBool(indexOf(c) != -1); }
3697 inline bool operator==(const QByteArray &a1, const QByteArray &a2)
3698 { return (a1.size() == a2.size()) && (memcmp(a1, a2, a1.size())==0); }
3699 inline bool operator==(const QByteArray &a1, const char *a2)
3700 { return a2 ? strcmp(a1,a2) == 0 : a1.isEmpty(); }
3701 inline bool operator==(const char *a1, const QByteArray &a2)
3702 { return a1 ? strcmp(a1,a2) == 0 : a2.isEmpty(); }
3703 inline bool operator!=(const QByteArray &a1, const QByteArray &a2)
3704 { return !(a1==a2); }
3705 inline bool operator!=(const QByteArray &a1, const char *a2)
3706 { return a2 ? strcmp(a1,a2) != 0 : !a1.isEmpty(); }
3707 inline bool operator!=(const char *a1, const QByteArray &a2)
3708 { return a1 ? strcmp(a1,a2) != 0 : !a2.isEmpty(); }
3709 inline bool operator<(const QByteArray &a1, const QByteArray &a2)
3710 { return strcmp(a1, a2) < 0; }
3711 inline bool operator<(const QByteArray &a1, const char *a2)
3712 { return qstrcmp(a1, a2) < 0; }
3713 inline bool operator<(const char *a1, const QByteArray &a2)
3714 { return qstrcmp(a1, a2) < 0; }
3715 inline bool operator<=(const QByteArray &a1, const QByteArray &a2)
3716 { return strcmp(a1, a2) <= 0; }
3717 inline bool operator<=(const QByteArray &a1, const char *a2)
3718 { return qstrcmp(a1, a2) <= 0; }
3719 inline bool operator<=(const char *a1, const QByteArray &a2)
3720 { return qstrcmp(a1, a2) <= 0; }
3721 inline bool operator>(const QByteArray &a1, const QByteArray &a2)
3722 { return strcmp(a1, a2) > 0; }
3723 inline bool operator>(const QByteArray &a1, const char *a2)
3724 { return qstrcmp(a1, a2) > 0; }
3725 inline bool operator>(const char *a1, const QByteArray &a2)
3726 { return qstrcmp(a1, a2) > 0; }
3727 inline bool operator>=(const QByteArray &a1, const QByteArray &a2)
3728 { return strcmp(a1, a2) >= 0; }
3729 inline bool operator>=(const QByteArray &a1, const char *a2)
3730 { return qstrcmp(a1, a2) >= 0; }
3731 inline bool operator>=(const char *a1, const QByteArray &a2)
3732 { return qstrcmp(a1, a2) >= 0; }
3733 inline const QByteArray operator+(const QByteArray &a1, const QByteArray &a2)
3734 { return QByteArray(a1) += a2; }
3735 inline const QByteArray operator+(const QByteArray &a1, const char *a2)
3736 { return QByteArray(a1) += a2; }
3737 inline const QByteArray operator+(const QByteArray &a1, char a2)
3738 { return QByteArray(a1) += a2; }
3739 inline const QByteArray operator+(const char *a1, const QByteArray &a2)
3740 { return QByteArray(a1) += a2; }
3741 inline const QByteArray operator+(char a1, const QByteArray &a2)
3742 { return QByteArray(&a1, 1) += a2; }
3743 inline int QByteArray::indexOf(const char *c, int i) const
3744 { return indexOf(fromRawData(c, qstrlen(c)), i); }
3745 inline int QByteArray::lastIndexOf(const char *c, int i) const
3746 { return lastIndexOf(fromRawData(c, qstrlen(c)), i); }
3747 inline QBool QByteArray::contains(const char *c) const
3748 { return contains(fromRawData(c, qstrlen(c))); }
3749 inline QByteArray &QByteArray::replace(int index, int len, const char *c)
3750 { return replace(index, len, fromRawData(c, qstrlen(c))); }
3751 inline QByteArray &QByteArray::replace(char before, const char *c)
3752 { return replace(before, fromRawData(c, qstrlen(c))); }
3753 inline QByteArray &QByteArray::replace(const QByteArray &before, const char *c)
3754 { return replace(before, fromRawData(c, qstrlen(c))); }
3755 inline QByteArray &QByteArray::replace(const char *c, const QByteArray &after)
3756 { return replace(fromRawData(c, qstrlen(c)), after); }
3757 inline QByteArray &QByteArray::replace(const char *before, const char *after)
3758 { return replace(fromRawData(before, qstrlen(before)), fromRawData(after, qstrlen(after))); }
3759
3760 inline QByteArray &QByteArray::setNum(short n, int base)
3761 { return setNum(qlonglong(n), base); }
3762 inline QByteArray &QByteArray::setNum(ushort n, int base)
3763 { return setNum(qulonglong(n), base); }
3764 inline QByteArray &QByteArray::setNum(int n, int base)
3765 { return setNum(qlonglong(n), base); }
3766 inline QByteArray &QByteArray::setNum(uint n, int base)
3767 { return setNum(qulonglong(n), base); }
3768 inline QByteArray &QByteArray::setNum(float n, char f, int prec)
3769 { return setNum(double(n),f,prec); }
3770
3771
3772
3773 QDataStream &operator<<(QDataStream &, const QByteArray &);
3774 QDataStream &operator>>(QDataStream &, QByteArray &);
3775 # 542 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qbytearray.h"
3776 template <> class QTypeInfo<QByteArray> { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isLarge = (sizeof(QByteArray)>sizeof(void*)), isPointer = false, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0) }; static inline const char *name() { return "QByteArray"; } };
3777 template <> inline bool qIsDetached<QByteArray>(QByteArray &t) { return t.isDetached(); } template <typename T> inline void qSwap(T &, T &); template <> inline void qSwap<QByteArray>(QByteArray &value1, QByteArray &value2) { const QByteArray::DataPtr t = value1.data_ptr(); value1.data_ptr() = value2.data_ptr(); value2.data_ptr() = t; }
3778 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qbytearray.h" 2
3779 # 44 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
3780
3781 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qatomic.h" 1
3782 # 45 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
3783
3784 # 1 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/qnamespace.h" 1
3785 # 46 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h" 2
3786 # 73 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
3787
3788
3789 typedef QtValidLicenseForCoreModule QtCoreModule;
3790
3791 class QCharRef;
3792 class QRegExp;
3793 class QStringList;
3794 class QTextCodec;
3795 class QLatin1String;
3796 class QStringRef;
3797 template <typename T> class QVector;
3798
3799 class QString
3800 {
3801 public:
3802 inline QString();
3803 QString(const QChar *unicode, int size);
3804 QString(QChar c);
3805 QString(int size, QChar c);
3806 inline QString(const QLatin1String &latin1);
3807 inline QString(const QString &);
3808 inline ~QString();
3809 QString &operator=(QChar c);
3810 QString &operator=(const QString &);
3811 inline QString &operator=(const QLatin1String &);
3812
3813 inline int size() const { return d->size; }
3814 inline int count() const { return d->size; }
3815 inline int length() const;
3816 inline bool isEmpty() const;
3817 void resize(int size);
3818
3819 QString &fill(QChar c, int size = -1);
3820 void truncate(int pos);
3821 void chop(int n);
3822
3823 int capacity() const;
3824 inline void reserve(int size);
3825 inline void squeeze() { if (d->size < d->alloc) realloc(); d->capacity = 0;}
3826
3827 inline const QChar *unicode() const;
3828 inline QChar *data();
3829 inline const QChar *data() const;
3830 inline const QChar *constData() const;
3831
3832 inline void detach();
3833 inline bool isDetached() const;
3834 void clear();
3835
3836 inline const QChar at(int i) const;
3837 const QChar operator[](int i) const;
3838 QCharRef operator[](int i);
3839 const QChar operator[](uint i) const;
3840 QCharRef operator[](uint i);
3841
3842 QString arg(qlonglong a, int fieldwidth=0, int base=10,
3843 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3844 QString arg(qulonglong a, int fieldwidth=0, int base=10,
3845 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3846 QString arg(long a, int fieldwidth=0, int base=10,
3847 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3848 QString arg(ulong a, int fieldwidth=0, int base=10,
3849 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3850 QString arg(int a, int fieldWidth = 0, int base = 10,
3851 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3852 QString arg(uint a, int fieldWidth = 0, int base = 10,
3853 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3854 QString arg(short a, int fieldWidth = 0, int base = 10,
3855 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3856 QString arg(ushort a, int fieldWidth = 0, int base = 10,
3857 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3858 QString arg(double a, int fieldWidth = 0, char fmt = 'g', int prec = -1,
3859 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3860 QString arg(char a, int fieldWidth = 0,
3861 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3862 QString arg(QChar a, int fieldWidth = 0,
3863 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3864 QString arg(const QString &a, int fieldWidth = 0,
3865 const QChar &fillChar = QLatin1Char(' ')) const __attribute__ ((warn_unused_result));
3866 QString arg(const QString &a1, const QString &a2) const __attribute__ ((warn_unused_result));
3867 QString arg(const QString &a1, const QString &a2, const QString &a3) const __attribute__ ((warn_unused_result));
3868 QString arg(const QString &a1, const QString &a2, const QString &a3,
3869 const QString &a4) const __attribute__ ((warn_unused_result));
3870 QString arg(const QString &a1, const QString &a2, const QString &a3,
3871 const QString &a4, const QString &a5) const __attribute__ ((warn_unused_result));
3872 QString arg(const QString &a1, const QString &a2, const QString &a3,
3873 const QString &a4, const QString &a5, const QString &a6) const __attribute__ ((warn_unused_result));
3874 QString arg(const QString &a1, const QString &a2, const QString &a3,
3875 const QString &a4, const QString &a5, const QString &a6,
3876 const QString &a7) const __attribute__ ((warn_unused_result));
3877 QString arg(const QString &a1, const QString &a2, const QString &a3,
3878 const QString &a4, const QString &a5, const QString &a6,
3879 const QString &a7, const QString &a8) const __attribute__ ((warn_unused_result));
3880 QString arg(const QString &a1, const QString &a2, const QString &a3,
3881 const QString &a4, const QString &a5, const QString &a6,
3882 const QString &a7, const QString &a8, const QString &a9) const __attribute__ ((warn_unused_result));
3883
3884 QString &vsprintf(const char *format, va_list ap);
3885 QString &sprintf(const char *format, ...)
3886
3887 __attribute__ ((format (printf, 2, 3)))
3888
3889 ;
3890
3891 int indexOf(QChar c, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3892 int indexOf(const QString &s, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3893 int lastIndexOf(QChar c, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3894 int lastIndexOf(const QString &s, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3895
3896 inline QBool contains(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3897 inline QBool contains(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3898 int count(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3899 int count(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3900
3901
3902 int indexOf(const QRegExp &, int from = 0) const;
3903 int lastIndexOf(const QRegExp &, int from = -1) const;
3904 inline QBool contains(const QRegExp &rx) const { return QBool(indexOf(rx) != -1); }
3905 int count(const QRegExp &) const;
3906
3907
3908 enum SectionFlag {
3909 SectionDefault = 0x00,
3910 SectionSkipEmpty = 0x01,
3911 SectionIncludeLeadingSep = 0x02,
3912 SectionIncludeTrailingSep = 0x04,
3913 SectionCaseInsensitiveSeps = 0x08
3914 };
3915 typedef QFlags<SectionFlag> SectionFlags;
3916
3917 QString section(QChar sep, int start, int end = -1, SectionFlags flags = SectionDefault) const;
3918 QString section(const QString &in_sep, int start, int end = -1, SectionFlags flags = SectionDefault) const;
3919
3920 QString section(const QRegExp &reg, int start, int end = -1, SectionFlags flags = SectionDefault) const;
3921
3922
3923 QString left(int n) const __attribute__ ((warn_unused_result));
3924 QString right(int n) const __attribute__ ((warn_unused_result));
3925 QString mid(int position, int n = -1) const __attribute__ ((warn_unused_result));
3926
3927 bool startsWith(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3928 bool startsWith(const QLatin1String &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3929 bool startsWith(const QChar &c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3930 bool endsWith(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3931 bool endsWith(const QLatin1String &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3932 bool endsWith(const QChar &c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
3933
3934 QString leftJustified(int width, QChar fill = QLatin1Char(' '), bool trunc = false) const __attribute__ ((warn_unused_result));
3935 QString rightJustified(int width, QChar fill = QLatin1Char(' '), bool trunc = false) const __attribute__ ((warn_unused_result));
3936
3937 QString toLower() const __attribute__ ((warn_unused_result));
3938 QString toUpper() const __attribute__ ((warn_unused_result));
3939 QString toCaseFolded() const __attribute__ ((warn_unused_result));
3940
3941 QString trimmed() const __attribute__ ((warn_unused_result));
3942 QString simplified() const __attribute__ ((warn_unused_result));
3943
3944 QString &insert(int i, QChar c);
3945 QString &insert(int i, const QChar *uc, int len);
3946 inline QString &insert(int i, const QString &s) { return insert(i, s.constData(), s.length()); }
3947 QString &insert(int i, const QLatin1String &s);
3948 QString &append(QChar c);
3949 QString &append(const QString &s);
3950 QString &append(const QLatin1String &s);
3951 inline QString &prepend(QChar c) { return insert(0, c); }
3952 inline QString &prepend(const QString &s) { return insert(0, s); }
3953 inline QString &prepend(const QLatin1String &s) { return insert(0, s); }
3954 inline QString &operator+=(QChar c) { return append(c); }
3955 inline QString &operator+=(QChar::SpecialCharacter c) { return append(QChar(c)); }
3956 inline QString &operator+=(const QString &s) { return append(s); }
3957 inline QString &operator+=(const QLatin1String &s) { return append(s); }
3958
3959 QString &remove(int i, int len);
3960 QString &remove(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3961 QString &remove(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3962 QString &replace(int i, int len, QChar after);
3963 QString &replace(int i, int len, const QChar *s, int slen);
3964 QString &replace(int i, int len, const QString &after);
3965 QString &replace(QChar before, QChar after, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3966 QString &replace(QChar c, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive);
3967 QString &replace(const QString &before, const QString &after,
3968 Qt::CaseSensitivity cs = Qt::CaseSensitive);
3969
3970 QString &replace(const QRegExp &rx, const QString &after);
3971 inline QString &remove(const QRegExp &rx)
3972 { return replace(rx, QString()); }
3973
3974
3975 enum SplitBehavior { KeepEmptyParts, SkipEmptyParts };
3976
3977 QStringList split(const QString &sep, SplitBehavior behavior = KeepEmptyParts,
3978 Qt::CaseSensitivity cs = Qt::CaseSensitive) const __attribute__ ((warn_unused_result));
3979 QStringList split(const QChar &sep, SplitBehavior behavior = KeepEmptyParts,
3980 Qt::CaseSensitivity cs = Qt::CaseSensitive) const __attribute__ ((warn_unused_result));
3981
3982 QStringList split(const QRegExp &sep, SplitBehavior behavior = KeepEmptyParts) const __attribute__ ((warn_unused_result));
3983
3984
3985 enum NormalizationForm {
3986 NormalizationForm_D,
3987 NormalizationForm_C,
3988 NormalizationForm_KD,
3989 NormalizationForm_KC
3990 };
3991 QString normalized(NormalizationForm mode) const __attribute__ ((warn_unused_result));
3992 QString normalized(NormalizationForm mode, QChar::UnicodeVersion version) const __attribute__ ((warn_unused_result));
3993
3994 const ushort *utf16() const;
3995
3996 QByteArray toAscii() const __attribute__ ((warn_unused_result));
3997 QByteArray toLatin1() const __attribute__ ((warn_unused_result));
3998 QByteArray toUtf8() const __attribute__ ((warn_unused_result));
3999 QByteArray toLocal8Bit() const __attribute__ ((warn_unused_result));
4000 QVector<uint> toUcs4() const __attribute__ ((warn_unused_result));
4001
4002 static QString fromAscii(const char *, int size = -1);
4003 static QString fromLatin1(const char *, int size = -1);
4004 static QString fromUtf8(const char *, int size = -1);
4005 static QString fromLocal8Bit(const char *, int size = -1);
4006 static QString fromUtf16(const ushort *, int size = -1);
4007 static QString fromUcs4(const uint *, int size = -1);
4008 static QString fromRawData(const QChar *, int size);
4009
4010 int toWCharArray(wchar_t *array) const;
4011 static QString fromWCharArray(const wchar_t *, int size = -1);
4012
4013 QString &setUnicode(const QChar *unicode, int size);
4014 inline QString &setUtf16(const ushort *utf16, int size);
4015
4016
4017 int compare(const QString &s) const;
4018 int compare(const QString &s, Qt::CaseSensitivity cs) const;
4019
4020 int compare(const QLatin1String &other, Qt::CaseSensitivity cs = Qt::CaseSensitive) const;
4021
4022
4023 static inline int compare(const QString &s1, const QString &s2)
4024 { return s1.compare(s2); }
4025 static inline int compare(const QString &s1, const QString &s2, Qt::CaseSensitivity cs)
4026 { return s1.compare(s2, cs); }
4027
4028 static inline int compare(const QString& s1, const QLatin1String &s2,
4029 Qt::CaseSensitivity cs = Qt::CaseSensitive)
4030 { return s1.compare(s2, cs); }
4031 static inline int compare(const QLatin1String& s1, const QString &s2,
4032 Qt::CaseSensitivity cs = Qt::CaseSensitive)
4033 { return -s2.compare(s1, cs); }
4034
4035 int localeAwareCompare(const QString& s) const;
4036 static int localeAwareCompare(const QString& s1, const QString& s2)
4037 { return s1.localeAwareCompare(s2); }
4038
4039 short toShort(bool *ok=0, int base=10) const;
4040 ushort toUShort(bool *ok=0, int base=10) const;
4041 int toInt(bool *ok=0, int base=10) const;
4042 uint toUInt(bool *ok=0, int base=10) const;
4043 long toLong(bool *ok=0, int base=10) const;
4044 ulong toULong(bool *ok=0, int base=10) const;
4045 qlonglong toLongLong(bool *ok=0, int base=10) const;
4046 qulonglong toULongLong(bool *ok=0, int base=10) const;
4047 float toFloat(bool *ok=0) const;
4048 double toDouble(bool *ok=0) const;
4049
4050 QString &setNum(short, int base=10);
4051 QString &setNum(ushort, int base=10);
4052 QString &setNum(int, int base=10);
4053 QString &setNum(uint, int base=10);
4054 QString &setNum(long, int base=10);
4055 QString &setNum(ulong, int base=10);
4056 QString &setNum(qlonglong, int base=10);
4057 QString &setNum(qulonglong, int base=10);
4058 QString &setNum(float, char f='g', int prec=6);
4059 QString &setNum(double, char f='g', int prec=6);
4060
4061 static QString number(int, int base=10);
4062 static QString number(uint, int base=10);
4063 static QString number(long, int base=10);
4064 static QString number(ulong, int base=10);
4065 static QString number(qlonglong, int base=10);
4066 static QString number(qulonglong, int base=10);
4067 static QString number(double, char f='g', int prec=6);
4068
4069 bool operator==(const QString &s) const;
4070 bool operator<(const QString &s) const;
4071 inline bool operator>(const QString &s) const { return s < *this; }
4072 inline bool operator!=(const QString &s) const { return !operator==(s); }
4073 inline bool operator<=(const QString &s) const { return !operator>(s); }
4074 inline bool operator>=(const QString &s) const { return !operator<(s); }
4075
4076 bool operator==(const QLatin1String &s) const;
4077 bool operator<(const QLatin1String &s) const;
4078 bool operator>(const QLatin1String &s) const;
4079 inline bool operator!=(const QLatin1String &s) const { return !operator==(s); }
4080 inline bool operator<=(const QLatin1String &s) const { return !operator>(s); }
4081 inline bool operator>=(const QLatin1String &s) const { return !operator<(s); }
4082
4083
4084
4085 inline QString(const char *ch) : d(fromAscii_helper(ch))
4086 {}
4087 inline QString(const QByteArray &a)
4088 : d(fromAscii_helper(a.constData(), qstrnlen(a.constData(), a.size())))
4089 {}
4090 inline QString &operator=(const char *ch)
4091 { return (*this = fromAscii(ch)); }
4092 inline QString &operator=(const QByteArray &a)
4093 { return (*this = fromAscii(a.constData(), qstrnlen(a.constData(), a.size()))); }
4094 inline QString &operator=(char c)
4095 { return (*this = QChar::fromAscii(c)); }
4096
4097
4098 inline QString &prepend(const char *s)
4099 { return prepend(QString::fromAscii(s)); }
4100 inline QString &prepend(const QByteArray &s)
4101 { return prepend(QString::fromAscii(s.constData(), qstrnlen(s.constData(), s.size()))); }
4102 inline QString &append(const char *s)
4103 { return append(QString::fromAscii(s)); }
4104 inline QString &append(const QByteArray &s)
4105 { return append(QString::fromAscii(s.constData(), qstrnlen(s.constData(), s.size()))); }
4106 inline QString &operator+=(const char *s)
4107 { return append(QString::fromAscii(s)); }
4108 inline QString &operator+=(const QByteArray &s)
4109 { return append(QString::fromAscii(s.constData(), qstrnlen(s.constData(), s.size()))); }
4110 inline QString &operator+=(char c)
4111 { return append(QChar::fromAscii(c)); }
4112
4113 inline bool operator==(const char *s) const;
4114 inline bool operator!=(const char *s) const;
4115 inline bool operator<(const char *s) const;
4116 inline bool operator<=(const char *s2) const;
4117 inline bool operator>(const char *s2) const;
4118 inline bool operator>=(const char *s2) const;
4119
4120 inline bool operator==(const QByteArray &s) const;
4121 inline bool operator!=(const QByteArray &s) const;
4122 inline bool operator<(const QByteArray &s) const
4123 { return *this < QString::fromAscii(s.constData(), s.size()); }
4124 inline bool operator>(const QByteArray &s) const
4125 { return *this > QString::fromAscii(s.constData(), s.size()); }
4126 inline bool operator<=(const QByteArray &s) const
4127 { return *this <= QString::fromAscii(s.constData(), s.size()); }
4128 inline bool operator>=(const QByteArray &s) const
4129 { return *this >= QString::fromAscii(s.constData(), s.size()); }
4130
4131
4132 typedef QChar *iterator;
4133 typedef const QChar *const_iterator;
4134 typedef iterator Iterator;
4135 typedef const_iterator ConstIterator;
4136 iterator begin();
4137 const_iterator begin() const;
4138 const_iterator constBegin() const;
4139 iterator end();
4140 const_iterator end() const;
4141 const_iterator constEnd() const;
4142
4143 inline QString &inline_append(QChar ch) {
4144 if (d->ref != 1 || d->size + 1 > d->alloc)
4145 realloc(grow(d->size + 1));
4146 d->data[d->size++] = ch.unicode();
4147 d->data[d->size] = '\0';
4148 return *this;
4149 }
4150
4151
4152 inline void push_back(QChar c) { append(c); }
4153 inline void push_back(const QString &s) { append(s); }
4154 inline void push_front(QChar c) { prepend(c); }
4155 inline void push_front(const QString &s) { prepend(s); }
4156 # 458 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4157 struct Null { };
4158 static const Null null;
4159 inline QString(const Null &): d(&shared_null) { d->ref.ref(); }
4160 inline QString &operator=(const Null &) { *this = QString(); return *this; }
4161 inline bool isNull() const { return d == &shared_null; }
4162 # 541 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4163 bool isSimpleText() const { if (!d->clean) updateProperties(); return d->simpletext; }
4164 bool isRightToLeft() const { if (!d->clean) updateProperties(); return d->righttoleft; }
4165
4166 private:
4167 # 554 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4168 struct Data {
4169 QBasicAtomic ref;
4170 int alloc, size;
4171 ushort *data;
4172 ushort clean : 1;
4173 ushort simpletext : 1;
4174 ushort righttoleft : 1;
4175 ushort asciiCache : 1;
4176 ushort capacity : 1;
4177 ushort reserved : 11;
4178 ushort array[1];
4179 };
4180 static Data shared_null;
4181 static Data shared_empty;
4182 Data *d;
4183 QString(Data *dd, int ) : d(dd) {}
4184
4185
4186
4187 static int grow(int);
4188 static void free(Data *);
4189 void realloc();
4190 void realloc(int alloc);
4191 void expand(int i);
4192 void updateProperties() const;
4193 QString multiArg(int numArgs, const QString **args) const;
4194 static Data *fromLatin1_helper(const char *str, int size = -1);
4195 static Data *fromAscii_helper(const char *str, int size = -1);
4196 friend class QCharRef;
4197 friend class QTextCodec;
4198 friend class QStringRef;
4199 friend inline bool qStringComparisonHelper(const QString &s1, const char *s2);
4200 friend inline bool qStringComparisonHelper(const QStringRef &s1, const char *s2);
4201 public:
4202 typedef Data * DataPtr;
4203 inline DataPtr &data_ptr() { return d; }
4204 };
4205
4206
4207 class QLatin1String
4208 {
4209 public:
4210 inline explicit QLatin1String(const char *s) : chars(s) {}
4211 inline QLatin1String &operator=(const QLatin1String &other)
4212 { chars = other.chars; return *this; }
4213
4214 inline const char *latin1() const { return chars; }
4215
4216 inline bool operator==(const QString &s) const
4217 { return s == *this; }
4218 inline bool operator!=(const QString &s) const
4219 { return s != *this; }
4220 inline bool operator>(const QString &s) const
4221 { return s < *this; }
4222 inline bool operator<(const QString &s) const
4223 { return s > *this; }
4224 inline bool operator>=(const QString &s) const
4225 { return s <= *this; }
4226 inline bool operator<=(const QString &s) const
4227 { return s >= *this; }
4228
4229 inline bool operator==(const char *s) const
4230 { return QString::fromAscii(s) == *this; }
4231 inline bool operator!=(const char *s) const
4232 { return QString::fromAscii(s) != *this; }
4233 inline bool operator<(const char *s) const
4234 { return QString::fromAscii(s) > *this; }
4235 inline bool operator>(const char *s) const
4236 { return QString::fromAscii(s) < *this; }
4237 inline bool operator<=(const char *s) const
4238 { return QString::fromAscii(s) >= *this; }
4239 inline bool operator>=(const char *s) const
4240 { return QString::fromAscii(s) <= *this; }
4241 private:
4242 const char *chars;
4243 };
4244
4245
4246
4247 inline QString::QString(const QLatin1String &latin1) : d(fromLatin1_helper(latin1.latin1()))
4248 { }
4249 inline int QString::length() const
4250 { return d->size; }
4251 inline const QChar QString::at(int i) const
4252 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",638);} while (0); return d->data[i]; }
4253 inline const QChar QString::operator[](int i) const
4254 { do {if(!(i >= 0 && i < size()))qt_assert("i >= 0 && i < size()","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",640);} while (0); return d->data[i]; }
4255 inline const QChar QString::operator[](uint i) const
4256 { do {if(!(i < uint(size())))qt_assert("i < uint(size())","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",642);} while (0); return d->data[i]; }
4257 inline bool QString::isEmpty() const
4258 { return d->size == 0; }
4259 inline const QChar *QString::unicode() const
4260 { return reinterpret_cast<const QChar*>(d->data); }
4261 inline const QChar *QString::data() const
4262 { return reinterpret_cast<const QChar*>(d->data); }
4263 inline QChar *QString::data()
4264 { detach(); return reinterpret_cast<QChar*>(d->data); }
4265 inline const QChar *QString::constData() const
4266 { return reinterpret_cast<const QChar*>(d->data); }
4267 inline void QString::detach()
4268 { if (d->ref != 1 || d->data != d->array) realloc(); }
4269 inline bool QString::isDetached() const
4270 { return d->ref == 1; }
4271 inline QString &QString::operator=(const QLatin1String &s)
4272 {
4273 *this = fromLatin1(s.latin1());
4274 return *this;
4275 }
4276 inline void QString::clear()
4277 { if (!isNull()) *this = QString(); }
4278 inline QString::QString(const QString &other) : d(other.d)
4279 { do {if(!(&other != this))qt_assert("&other != this","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",665);} while (0); d->ref.ref(); }
4280 inline int QString::capacity() const
4281 { return d->alloc; }
4282 inline QString &QString::setNum(short n, int base)
4283 { return setNum(qlonglong(n), base); }
4284 inline QString &QString::setNum(ushort n, int base)
4285 { return setNum(qulonglong(n), base); }
4286 inline QString &QString::setNum(int n, int base)
4287 { return setNum(qlonglong(n), base); }
4288 inline QString &QString::setNum(uint n, int base)
4289 { return setNum(qulonglong(n), base); }
4290 inline QString &QString::setNum(long n, int base)
4291 { return setNum(qlonglong(n), base); }
4292 inline QString &QString::setNum(ulong n, int base)
4293 { return setNum(qulonglong(n), base); }
4294 inline QString &QString::setNum(float n, char f, int prec)
4295 { return setNum(double(n),f,prec); }
4296 inline QString QString::arg(int a, int fieldWidth, int base, const QChar &fillChar) const
4297 { return arg(qlonglong(a), fieldWidth, base, fillChar); }
4298 inline QString QString::arg(uint a, int fieldWidth, int base, const QChar &fillChar) const
4299 { return arg(qulonglong(a), fieldWidth, base, fillChar); }
4300 inline QString QString::arg(long a, int fieldWidth, int base, const QChar &fillChar) const
4301 { return arg(qlonglong(a), fieldWidth, base, fillChar); }
4302 inline QString QString::arg(ulong a, int fieldWidth, int base, const QChar &fillChar) const
4303 { return arg(qulonglong(a), fieldWidth, base, fillChar); }
4304 inline QString QString::arg(short a, int fieldWidth, int base, const QChar &fillChar) const
4305 { return arg(qlonglong(a), fieldWidth, base, fillChar); }
4306 inline QString QString::arg(ushort a, int fieldWidth, int base, const QChar &fillChar) const
4307 { return arg(qulonglong(a), fieldWidth, base, fillChar); }
4308 inline QString QString::arg(const QString &a1, const QString &a2) const
4309 { const QString *args[2] = { &a1, &a2 }; return multiArg(2, args); }
4310 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3) const
4311 { const QString *args[3] = { &a1, &a2, &a3 }; return multiArg(3, args); }
4312 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4313 const QString &a4) const
4314 { const QString *args[4] = { &a1, &a2, &a3, &a4 }; return multiArg(4, args); }
4315 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4316 const QString &a4, const QString &a5) const
4317 { const QString *args[5] = { &a1, &a2, &a3, &a4, &a5 }; return multiArg(5, args); }
4318 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4319 const QString &a4, const QString &a5, const QString &a6) const
4320 { const QString *args[6] = { &a1, &a2, &a3, &a4, &a5, &a6 }; return multiArg(6, args); }
4321 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4322 const QString &a4, const QString &a5, const QString &a6,
4323 const QString &a7) const
4324 { const QString *args[7] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7 }; return multiArg(7, args); }
4325 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4326 const QString &a4, const QString &a5, const QString &a6,
4327 const QString &a7, const QString &a8) const
4328 { const QString *args[8] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8 }; return multiArg(8, args); }
4329 inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3,
4330 const QString &a4, const QString &a5, const QString &a6,
4331 const QString &a7, const QString &a8, const QString &a9) const
4332 { const QString *args[9] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8, &a9 }; return multiArg(9, args); }
4333
4334 inline QString QString::section(QChar asep, int astart, int aend, SectionFlags aflags) const
4335 { return section(QString(asep), astart, aend, aflags); }
4336
4337
4338 class QCharRef {
4339 QString &s;
4340 int i;
4341 inline QCharRef(QString &str, int idx)
4342 : s(str),i(idx) {}
4343 friend class QString;
4344 public:
4345
4346
4347
4348
4349 inline operator QChar() const
4350 { return i < s.d->size ? s.d->data[i] : 0; }
4351 inline QCharRef &operator=(const QChar &c)
4352 { if (s.d->ref != 1 || i >= s.d->size) s.expand(i);
4353 s.d->data[i] = c.unicode(); return *this; }
4354
4355
4356
4357 inline QCharRef &operator=(char c)
4358 { return operator=(QChar::fromAscii(c)); }
4359 inline QCharRef &operator=(uchar c)
4360 { return operator=(QChar::fromAscii(c)); }
4361
4362 inline QCharRef &operator=(const QCharRef &c) { return operator=(QChar(c)); }
4363 inline QCharRef &operator=(ushort rc) { return operator=(QChar(rc)); }
4364 inline QCharRef &operator=(short rc) { return operator=(QChar(rc)); }
4365 inline QCharRef &operator=(uint rc) { return operator=(QChar(rc)); }
4366 inline QCharRef &operator=(int rc) { return operator=(QChar(rc)); }
4367
4368
4369 inline bool isNull() const { return QChar(*this).isNull(); }
4370 inline bool isPrint() const { return QChar(*this).isPrint(); }
4371 inline bool isPunct() const { return QChar(*this).isPunct(); }
4372 inline bool isSpace() const { return QChar(*this).isSpace(); }
4373 inline bool isMark() const { return QChar(*this).isMark(); }
4374 inline bool isLetter() const { return QChar(*this).isLetter(); }
4375 inline bool isNumber() const { return QChar(*this).isNumber(); }
4376 inline bool isLetterOrNumber() { return QChar(*this).isLetterOrNumber(); }
4377 inline bool isDigit() const { return QChar(*this).isDigit(); }
4378 inline bool isLower() const { return QChar(*this).isLower(); }
4379 inline bool isUpper() const { return QChar(*this).isUpper(); }
4380 inline bool isTitleCase() const { return QChar(*this).isTitleCase(); }
4381
4382 inline int digitValue() const { return QChar(*this).digitValue(); }
4383 QChar toLower() const { return QChar(*this).toLower(); }
4384 QChar toUpper() const { return QChar(*this).toUpper(); }
4385 QChar toTitleCase () const { return QChar(*this).toTitleCase(); }
4386
4387 QChar::Category category() const { return QChar(*this).category(); }
4388 QChar::Direction direction() const { return QChar(*this).direction(); }
4389 QChar::Joining joining() const { return QChar(*this).joining(); }
4390 bool hasMirrored() const { return QChar(*this).hasMirrored(); }
4391 QChar mirroredChar() const { return QChar(*this).mirroredChar(); }
4392 QString decomposition() const { return QChar(*this).decomposition(); }
4393 QChar::Decomposition decompositionTag() const { return QChar(*this).decompositionTag(); }
4394 uchar combiningClass() const { return QChar(*this).combiningClass(); }
4395
4396 QChar::UnicodeVersion unicodeVersion() const { return QChar(*this).unicodeVersion(); }
4397
4398 inline uchar cell() const { return QChar(*this).cell(); }
4399 inline uchar row() const { return QChar(*this).row(); }
4400 inline void setCell(uchar cell);
4401 inline void setRow(uchar row);
4402
4403 const char toAscii() const { return QChar(*this).toAscii(); }
4404 const char toLatin1() const { return QChar(*this).toLatin1(); }
4405 const ushort unicode() const { return QChar(*this).unicode(); }
4406 # 800 "/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h"
4407 };
4408
4409 inline void QCharRef::setRow(uchar arow) { QChar(*this).setRow(arow); }
4410 inline void QCharRef::setCell(uchar acell) { QChar(*this).setCell(acell); }
4411
4412
4413 inline QString::QString() : d(&shared_null) { d->ref.ref(); }
4414 inline QString::~QString() { if (!d->ref.deref()) free(d); }
4415 inline void QString::reserve(int asize) { if (d->ref != 1 || asize > d->alloc) realloc(asize); d->capacity = 1;}
4416 inline QString &QString::setUtf16(const ushort *autf16, int asize)
4417 { return setUnicode(reinterpret_cast<const QChar *>(autf16), asize); }
4418 inline QCharRef QString::operator[](int i)
4419 { do {if(!(i >= 0))qt_assert("i >= 0","/var/tmp/portage/x11-libs/qt-4.3.2/work/qt-x11-opensource-src-4.3.2/include/QtCore/../../src/corelib/tools/qstring.h",812);} while (0); return QCharRef(*this, i); }
4420 inline QCharRef QString::operator[](uint i)
4421 { return QCharRef(*this, i); }
4422 inline QString::iterator QString::begin()
4423 { detach(); return reinterpret_cast<QChar*>(d->data); }
4424 inline QString::const_iterator QString::begin() const
4425 { return reinterpret_cast<const QChar*>(d->data); }
4426 inline QString::const_iterator QString::constBegin() const
4427 { return reinterpret_cast<const QChar*>(d->data); }
4428 inline QString::iterator QString::end()
4429 { detach(); return reinterpret_cast<QChar*>(d->data + d->size); }
4430 inline QString::const_iterator QString::end() const
4431 { return reinterpret_cast<const QChar*>(d->data + d->size); }
4432 inline QString::const_iterator QString::constEnd() const
4433 { return reinterpret_cast<const QChar*>(d->data + d->size); }
4434 inline QBool QString::contains(const QString &s, Qt::CaseSensitivity cs) const
4435 { return QBool(indexOf(s, 0, cs) != -1); }
4436 inline QBool QString::contains(QChar c, Qt::CaseSensitivity cs) const
4437 { return QBool(indexOf(c, 0, cs) != -1); }
4438
4439
4440 inline bool operator==(QString::Null, QString::Null) { return true; }
4441 inline bool operator==(QString::Null, const QString &s) { return s.isNull(); }
4442 inline bool operator==(const QString &s, QString::Null) { return s.isNull(); }
4443 inline bool operator!=(QString::Null, QString::Null) { return false; }
4444 inline bool operator!=(QString::Null, const QString &s) { return !s.isNull(); }
4445 inline bool operator!=(const QString &s, QString::Null) { return !s.isNull(); }
4446
4447
4448 inline bool qStringComparisonHelper(const QString &s1, const char *s2)
4449 {
4450
4451
4452
4453 return (s1 == QLatin1String(s2));
4454 }
4455 inline bool QString::operator==(const char *s) const
4456 { return qStringComparisonHelper(*this, s); }
4457 inline bool QString::operator!=(const char *s) const