42 #ifndef QMETAOBJECT_P_H 43 #define QMETAOBJECT_P_H 56 #include <QtCore/qglobal.h> 57 #include <QtCore/qobjectdefs.h> 128 bool normalizeStringData);
131 bool normalizeStringData);
134 #ifndef QT_NO_QOBJECT 138 int *signalIndex,
int *methodIndex);
140 const QObject *receiver,
int method_index_relative,
144 const QObject *receiver,
int method_index,
147 const QObject *receiver,
int method_index,
156 return ((s >=
'a' && s <=
'z')
157 || (s >=
'A' && s <=
'Z')
158 || (s >=
'0' && s <=
'9')
165 return (s ==
' ' || s ==
'\t');
178 for (
int i = 1; i < len; i++) {
180 && strncmp(t + i + 1,
"onst", 4) == 0
198 if (t[i] ==
'&' || t[i] ==
'*' ||t[i] ==
'<')
201 if (adjustConst && e > t + 6 && strncmp(
"const ", t, 6) == 0) {
214 if (strncmp(
"const ", t, 6) == 0) {
221 if (strncmp(
"unsigned", t, 8) == 0) {
224 if (strncmp(
" int", t+8, 4) == 0) {
227 }
else if (strncmp(
" long", t+8, 5) == 0) {
228 if ((strlen(t + 8 + 5) < 4 || strncmp(t + 8 + 5,
" int", 4) != 0)
229 && (strlen(t + 8 + 5) < 5 || strncmp(t + 8 + 5,
" long", 5) != 0)
234 }
else if (strncmp(
" short", t+8, 6) != 0
235 && strncmp(
" char", t+8, 5) != 0) {
255 if (strncmp(optional[i].keyword, t, optional[i].len) == 0) {
256 t += optional[i].len;
259 }
while (optional[++i].keyword != 0);
265 if (fixScope && c ==
':' && *t ==
':' ) {
268 int i = result.
size() - 1;
273 star = star || c ==
'*';
285 if (templdepth == 0 || (templdepth == 1 && c ==
',')) {
288 if (templdepth == 0) {
299 if (!
is_ident_char(c) && t != e && (e - t >= 5 && strncmp(
"const", t, 5) == 0)
304 if (adjustConst && t != e && *t ==
'&') {
307 }
else if (adjustConst && !star) {
#define QT_END_NAMESPACE
This macro expands to.
The QMutex class provides access serialization between threads.
char * data()
Returns a pointer to the data stored in the byte array.
The QByteArray class provides an array of bytes.
QByteArray & prepend(char c)
Prepends the character ch to this byte array.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int length() const
Same as size().
void resize(int size)
Sets the size of the byte array to size bytes.
int size() const
Returns the number of bytes in this byte array.
char at(int i) const
Returns the character at index position i in the byte array.
void reserve(int size)
Attempts to allocate memory for at least size bytes.
QByteArray & remove(int index, int len)
Removes len bytes from the array, starting at index position pos, and returns a reference to the arra...