Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 60505 Details for
Bug 94892
gcc internal compiler error while compiling x11-libs/qt-3.3.4-r4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
preprocessed source #1
cc7WSh8s.out (text/plain), 88.46 KB, created by
Brian Tarricone
on 2005-06-03 00:52:25 UTC
(
hide
)
Description:
preprocessed source #1
Filename:
MIME Type:
Creator:
Brian Tarricone
Created:
2005-06-03 00:52:25 UTC
Size:
88.46 KB
patch
obsolete
>// /usr/libexec/gcc/i686-pc-linux-gnu/3.4.4/cc1plus -quiet -I/usr/include/mysql -I/var/tmp/portage/qt-3.3.4-r4/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../include -I../tools -I. -D_GNU_SOURCE -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS ../tools/qbuffer.cpp -quiet -dumpbase qbuffer.cpp -march=athlon-tbird -auxbase-strip ./qbuffer.o -O2 -fno-exceptions -o - -frandom-seed=0 ># 1 "../tools/qbuffer.cpp" ># 1 "<built-in>" ># 1 "<command line>" ># 1 "../tools/qbuffer.cpp" ># 38 "../tools/qbuffer.cpp" ># 1 "../tools/qbuffer.h" 1 ># 42 "../tools/qbuffer.h" ># 1 "../tools/qiodevice.h" 1 ># 42 "../tools/qiodevice.h" ># 1 "../tools/qglobal.h" 1 ># 609 "../tools/qglobal.h" >typedef unsigned char uchar; >typedef unsigned short ushort; >typedef unsigned uint; >typedef unsigned long ulong; >typedef char *pchar; >typedef uchar *puchar; >typedef const char *pcchar; > > > > > > > >const bool FALSE = 0; >const bool TRUE = !0; ># 673 "../tools/qglobal.h" >inline int qRound( double d ) >{ > return d >= 0.0 ? int(d + 0.5) : int( d - ((int)d-1) + 0.5 ) + ((int)d-1); >} ># 685 "../tools/qglobal.h" >typedef signed char INT8; >typedef unsigned char UINT8; >typedef short INT16; >typedef unsigned short UINT16; >typedef int INT32; >typedef unsigned int UINT32; > > >typedef signed char Q_INT8; >typedef unsigned char Q_UINT8; >typedef short Q_INT16; >typedef unsigned short Q_UINT16; >typedef int Q_INT32; >typedef unsigned int Q_UINT32; > > > > >typedef long Q_LONG; >typedef unsigned long Q_ULONG; ># 714 "../tools/qglobal.h" >typedef long long Q_INT64; >typedef unsigned long long Q_UINT64; > >typedef Q_INT64 Q_LLONG; >typedef Q_UINT64 Q_ULLONG; > > > > > > > > typedef Q_ULONG QtOffset; > > > > > > > >class QDataStream; ># 768 "../tools/qglobal.h" ># 1 "../../include/qmodules.h" 1 ># 769 "../tools/qglobal.h" 2 ># 824 "../tools/qglobal.h" ># 1 "../tools/qfeatures.h" 1 ># 825 "../tools/qglobal.h" 2 ># 891 "../tools/qglobal.h" > const char *qVersion(); > bool qSysInfo( int *wordSize, bool *bigEndian ); > bool qSharedBuild(); ># 952 "../tools/qglobal.h" > void qDebug( const char *, ... ) > > __attribute__ ((format (printf, 1, 2))) > >; > > void qWarning( const char *, ... ) > > __attribute__ ((format (printf, 1, 2))) > >; > > void qFatal( const char *, ... ) > > __attribute__ ((format (printf, 1, 2))) > >; > > void qSystemWarning( const char *, int code = -1 ); > > > > void debug( const char *, ... ) > > __attribute__ ((format (printf, 1, 2))) > >; > > void warning( const char *, ... ) > > __attribute__ ((format (printf, 1, 2))) > >; > > void fatal( const char *, ... ) > > __attribute__ ((format (printf, 1, 2))) > >; ># 1016 "../tools/qglobal.h" > bool qt_check_pointer( bool c, const char *, int ); ># 1030 "../tools/qglobal.h" >enum QtMsgType { QtDebugMsg, QtWarningMsg, QtFatalMsg }; > >typedef void (*QtMsgHandler)(QtMsgType, const char *); > QtMsgHandler qInstallMsgHandler( QtMsgHandler ); > > >typedef QtMsgHandler msg_handler; > > > void qSuppressObsoleteWarnings( bool = TRUE ); > > void qObsolete( const char *obj, const char *oldfunc, > const char *newfunc ); > void qObsolete( const char *obj, const char *oldfunc ); > void qObsolete( const char *message ); > > > > > > > const char *qInstallPath(); > const char *qInstallPathDocs(); > const char *qInstallPathHeaders(); > const char *qInstallPathLibs(); > const char *qInstallPathBins(); > const char *qInstallPathPlugins(); > const char *qInstallPathData(); > const char *qInstallPathTranslations(); > const char *qInstallPathSysconf(); ># 43 "../tools/qiodevice.h" 2 ># 1 "../tools/qcstring.h" 1 ># 43 "../tools/qcstring.h" ># 1 "../tools/qmemarray.h" 1 ># 42 "../tools/qmemarray.h" ># 1 "../tools/qgarray.h" 1 ># 42 "../tools/qgarray.h" ># 1 "../tools/qshared.h" 1 ># 42 "../tools/qshared.h" ># 1 "../tools/qglobal.h" 1 ># 43 "../tools/qshared.h" 2 > > > >struct QShared >{ > QShared() : count( 1 ) { } > void ref() { count++; } > bool deref() { return !--count; } > uint count; >}; ># 43 "../tools/qgarray.h" 2 > > > >class QGArray >{ >friend class QBuffer; >public: > > > struct array_data : public QShared { > array_data():data(0),len(0) > > > > {} > char *data; > uint len; > > > > }; > QGArray(); > enum Optimization { MemOptim, SpeedOptim }; >protected: > QGArray( int, int ); > QGArray( int size ); > QGArray( const QGArray &a ); > virtual ~QGArray(); > > QGArray &operator=( const QGArray &a ) { return assign( a ); } > > virtual void detach() { duplicate(*this); } > > > char *data() const { return shd->data; } > uint nrefs() const { return shd->count; } > uint size() const { return shd->len; } > bool isEqual( const QGArray &a ) const; > > bool resize( uint newsize, Optimization optim ); > bool resize( uint newsize ); > > bool fill( const char *d, int len, uint sz ); > > QGArray &assign( const QGArray &a ); > QGArray &assign( const char *d, uint len ); > QGArray &duplicate( const QGArray &a ); > QGArray &duplicate( const char *d, uint len ); > void store( const char *d, uint len ); > > array_data *sharedBlock() const { return shd; } > void setSharedBlock( array_data *p ) { shd=(array_data*)p; } > > QGArray &setRawData( const char *d, uint len ); > void resetRawData( const char *d, uint len ); > > int find( const char *d, uint index, uint sz ) const; > int contains( const char *d, uint sz ) const; > > void sort( uint sz ); > int bsearch( const char *d, uint sz ) const; > > char *at( uint index ) const; > > bool setExpand( uint index, const char *d, uint sz ); > >protected: > virtual array_data *newData(); > virtual void deleteData( array_data *p ); > >private: > static void msg_index( uint ); > array_data *shd; >}; > > >inline char *QGArray::at( uint index ) const >{ > > if ( index >= size() ) { > msg_index( index ); > index = 0; > } > > return &shd->data[index]; >} ># 43 "../tools/qmemarray.h" 2 > > > >template<class type> >class QMemArray : public QGArray >{ >public: > typedef type* Iterator; > typedef const type* ConstIterator; > typedef type ValueType; > >protected: > QMemArray( int, int ) : QGArray( 0, 0 ) {} > >public: > QMemArray() {} > QMemArray( int size ) : QGArray(size*sizeof(type)) {} > QMemArray( const QMemArray<type> &a ) : QGArray(a) {} > ~QMemArray() {} > QMemArray<type> &operator=(const QMemArray<type> &a) > { return (QMemArray<type>&)QGArray::assign(a); } > type *data() const { return (type *)QGArray::data(); } > uint nrefs() const { return QGArray::nrefs(); } > uint size() const { return QGArray::size()/sizeof(type); } > uint count() const { return size(); } > bool isEmpty() const { return QGArray::size() == 0; } > bool isNull() const { return QGArray::data() == 0; } > bool resize( uint size ) { return QGArray::resize(size*sizeof(type)); } > bool resize( uint size, Optimization optim ) { return QGArray::resize(size*sizeof(type), optim); } > bool truncate( uint pos ) { return QGArray::resize(pos*sizeof(type)); } > bool fill( const type &d, int size = -1 ) > { return QGArray::fill((char*)&d,size,sizeof(type) ); } > void detach() { QGArray::detach(); } > QMemArray<type> copy() const > { QMemArray<type> tmp; return tmp.duplicate(*this); } > QMemArray<type>& assign( const QMemArray<type>& a ) > { return (QMemArray<type>&)QGArray::assign(a); } > QMemArray<type>& assign( const type *a, uint n ) > { return (QMemArray<type>&)QGArray::assign((char*)a,n*sizeof(type)); } > QMemArray<type>& duplicate( const QMemArray<type>& a ) > { return (QMemArray<type>&)QGArray::duplicate(a); } > QMemArray<type>& duplicate( const type *a, uint n ) > { return (QMemArray<type>&)QGArray::duplicate((char*)a,n*sizeof(type)); } > QMemArray<type>& setRawData( const type *a, uint n ) > { return (QMemArray<type>&)QGArray::setRawData((char*)a, > n*sizeof(type)); } > void resetRawData( const type *a, uint n ) > { QGArray::resetRawData((char*)a,n*sizeof(type)); } > int find( const type &d, uint i=0 ) const > { return QGArray::find((char*)&d,i,sizeof(type)); } > int contains( const type &d ) const > { return QGArray::contains((char*)&d,sizeof(type)); } > void sort() { QGArray::sort(sizeof(type)); } > int bsearch( const type &d ) const > { return QGArray::bsearch((const char*)&d,sizeof(type)); } > > type& operator[]( int i ) const > { return (type &)(*(type *)QGArray::at(i*sizeof(type))); } > type& at( uint i ) const > { return (type &)(*(type *)QGArray::at(i*sizeof(type))); } > operator const type*() const { return (const type *)QGArray::data(); } > bool operator==( const QMemArray<type> &a ) const { return isEqual(a); } > bool operator!=( const QMemArray<type> &a ) const { return !isEqual(a); } > Iterator begin() { return data(); } > Iterator end() { return data() + size(); } > ConstIterator begin() const { return data(); } > ConstIterator end() const { return data() + size(); } >}; > > > > > > ># 1 "../tools/qwinexport.h" 1 ># 118 "../tools/qmemarray.h" 2 ># 44 "../tools/qcstring.h" 2 > > ># 1 "/usr/include/string.h" 1 3 4 ># 26 "/usr/include/string.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 308 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 309 "/usr/include/features.h" 2 3 4 ># 331 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 ># 332 "/usr/include/features.h" 2 3 4 ># 27 "/usr/include/string.h" 2 3 4 > >extern "C" { > > > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/stddef.h" 1 3 4 ># 213 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern void *rawmemchr (__const void *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern void *memrchr (__const void *__s, int __c, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (2))); > > > > > > ># 1 "/usr/include/xlocale.h" 1 3 4 ># 28 "/usr/include/xlocale.h" 3 4 >typedef struct __locale_struct >{ > > struct locale_data *__locales[13]; > > > const unsigned short int *__ctype_b; > const int *__ctype_tolower; > const int *__ctype_toupper; > > > const char *__names[13]; >} *__locale_t; ># 119 "/usr/include/string.h" 2 3 4 > > >extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, > __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4))); > > > > >extern char *strdup (__const char *__s) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *strndup (__const char *__string, size_t __n) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strchrnul (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > > > > >extern char *strcasestr (__const char *__haystack, __const char *__needle) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memmem (__const void *__haystack, size_t __haystacklen, > __const void *__needle, size_t __needlelen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); > > > >extern void *__mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern void *mempcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern size_t strlen (__const char *__s) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strnlen (__const char *__string, size_t __maxlen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strerror (int __errnum) throw (); > ># 281 "/usr/include/string.h" 3 4 >extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))); > > > > > >extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *index (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern char *rindex (__const char *__s, int __c) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > >extern int ffs (int __i) throw () __attribute__ ((__const__)); > > > > >extern int ffsl (long int __l) throw () __attribute__ ((__const__)); > >__extension__ extern int ffsll (long long int __ll) > throw () __attribute__ ((__const__)); > > > > >extern int strcasecmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int strcasecmp_l (__const char *__s1, __const char *__s2, > __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern int strncasecmp_l (__const char *__s1, __const char *__s2, > size_t __n, __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); > > > > > >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int strverscmp (__const char *__s1, __const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strsignal (int __sig) throw (); > > >extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *__stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1))); > > >extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *basename (__const char *__filename) throw () __attribute__ ((__nonnull__ (1))); ># 426 "/usr/include/string.h" 3 4 >} ># 47 "../tools/qcstring.h" 2 > > > > > > > void *qmemmove( void *dst, const void *src, uint len ); > > char *qstrdup( const char * ); > > inline uint qstrlen( const char *str ) >{ return str ? (uint)strlen(str) : 0u; } > > inline char *qstrcpy( char *dst, const char *src ) >{ return src ? strcpy(dst, src) : 0; } > > char *qstrncpy( char *dst, const char *src, uint len ); > > inline int qstrcmp( const char *str1, const char *str2 ) >{ > return ( str1 && str2 ) ? strcmp( str1, str2 ) > : ( str1 ? 1 : ( str2 ? -1 : 0 ) ); >} > > inline int qstrncmp( const char *str1, const char *str2, uint len ) >{ > return ( str1 && str2 ) ? strncmp( str1, str2, len ) > : ( str1 ? 1 : ( str2 ? -1 : 0 ) ); >} > > int qstricmp( const char *, const char * ); > > int qstrnicmp( const char *, const char *, uint len ); > > > inline uint cstrlen( const char *str ) >{ return (uint)strlen(str); } > > inline char *cstrcpy( char *dst, const char *src ) >{ return strcpy(dst,src); } > > inline int cstrcmp( const char *str1, const char *str2 ) >{ return strcmp(str1,str2); } > > inline int cstrncmp( const char *str1, const char *str2, uint len ) >{ return strncmp(str1,str2,len); } > > > > > > Q_UINT16 qChecksum( const char *s, uint len ); ># 116 "../tools/qcstring.h" >typedef QMemArray<char> QByteArray; ># 132 "../tools/qcstring.h" > QDataStream &operator<<( QDataStream &, const QByteArray & ); > QDataStream &operator>>( QDataStream &, QByteArray & ); > > > > > > >class QRegExp; > >class QCString : public QByteArray >{ >public: > QCString() {} > QCString( int size ); > QCString( const QCString &s ) : QByteArray( s ) {} > QCString( const char *str ); > QCString( const char *str, uint maxlen ); > ~QCString(); > > QCString &operator=( const QCString &s ); > QCString &operator=( const char *str ); > > bool isNull() const; > bool isEmpty() const; > uint length() const; > bool resize( uint newlen ); > bool truncate( uint pos ); > bool fill( char c, int len = -1 ); > > QCString copy() const; > > QCString &sprintf( const char *format, ... ); > > int find( char c, int index=0, bool cs=TRUE ) const; > int find( const char *str, int index=0, bool cs=TRUE ) const; > > int find( const QRegExp &, int index=0 ) const; > > int findRev( char c, int index=-1, bool cs=TRUE) const; > int findRev( const char *str, int index=-1, bool cs=TRUE) const; > > int findRev( const QRegExp &, int index=-1 ) const; > > int contains( char c, bool cs=TRUE ) const; > int contains( const char *str, bool cs=TRUE ) const; > > int contains( const QRegExp & ) const; > > QCString left( uint len ) const; > QCString right( uint len ) const; > QCString mid( uint index, uint len=0xffffffff) const; > > QCString leftJustify( uint width, char fill=' ', bool trunc=FALSE)const; > QCString rightJustify( uint width, char fill=' ',bool trunc=FALSE)const; > > QCString lower() const; > QCString upper() const; > > QCString stripWhiteSpace() const; > QCString simplifyWhiteSpace() const; > > QCString &insert( uint index, const char * ); > QCString &insert( uint index, char ); > QCString &append( const char * ); > QCString &prepend( const char * ); > QCString &remove( uint index, uint len ); > QCString &replace( uint index, uint len, const char * ); > > QCString &replace( const QRegExp &, const char * ); > > QCString &replace( char c, const char *after ); > QCString &replace( const char *, const char * ); > QCString &replace( char, char ); > > short toShort( bool *ok=0 ) const; > ushort toUShort( bool *ok=0 ) const; > int toInt( bool *ok=0 ) const; > uint toUInt( bool *ok=0 ) const; > long toLong( bool *ok=0 ) const; > ulong toULong( bool *ok=0 ) const; > float toFloat( bool *ok=0 ) const; > double toDouble( bool *ok=0 ) const; > > QCString &setStr( const char *s ); > QCString &setNum( short ); > QCString &setNum( ushort ); > QCString &setNum( int ); > QCString &setNum( uint ); > QCString &setNum( long ); > QCString &setNum( ulong ); > QCString &setNum( float, char f='g', int prec=6 ); > QCString &setNum( double, char f='g', int prec=6 ); > > bool setExpand( uint index, char c ); > > operator const char *() const; > QCString &operator+=( const char *str ); > QCString &operator+=( char c ); >private: > int find( const char *str, int index, bool cs, uint l ) const; >}; > > > > > > > QDataStream &operator<<( QDataStream &, const QCString & ); > QDataStream &operator>>( QDataStream &, QCString & ); > > > > > > >inline QCString &QCString::operator=( const QCString &s ) >{ return (QCString&)assign( s ); } > >inline QCString &QCString::operator=( const char *str ) >{ return (QCString&)duplicate( str, qstrlen(str)+1 ); } > >inline bool QCString::isNull() const >{ return data() == 0; } > >inline bool QCString::isEmpty() const >{ return data() == 0 || *data() == '\0'; } > >inline uint QCString::length() const >{ return qstrlen( data() ); } > >inline bool QCString::truncate( uint pos ) >{ return resize(pos+1); } > >inline QCString QCString::copy() const >{ return QCString( data() ); } > >inline QCString &QCString::prepend( const char *s ) >{ return insert(0,s); } > >inline QCString &QCString::append( const char *s ) >{ return operator+=(s); } > >inline QCString &QCString::setNum( short n ) >{ return setNum((long)n); } > >inline QCString &QCString::setNum( ushort n ) >{ return setNum((ulong)n); } > >inline QCString &QCString::setNum( int n ) >{ return setNum((long)n); } > >inline QCString &QCString::setNum( uint n ) >{ return setNum((ulong)n); } > >inline QCString &QCString::setNum( float n, char f, int prec ) >{ return setNum((double)n,f,prec); } > >inline QCString::operator const char *() const >{ return (const char *)data(); } > > > > > > > inline bool operator==( const QCString &s1, const QCString &s2 ) >{ return qstrcmp( s1.data(), s2.data() ) == 0; } > > inline bool operator==( const QCString &s1, const char *s2 ) >{ return qstrcmp( s1.data(), s2 ) == 0; } > > inline bool operator==( const char *s1, const QCString &s2 ) >{ return qstrcmp( s1, s2.data() ) == 0; } > > inline bool operator!=( const QCString &s1, const QCString &s2 ) >{ return qstrcmp( s1.data(), s2.data() ) != 0; } > > inline bool operator!=( const QCString &s1, const char *s2 ) >{ return qstrcmp( s1.data(), s2 ) != 0; } > > inline bool operator!=( const char *s1, const QCString &s2 ) >{ return qstrcmp( s1, s2.data() ) != 0; } > > inline bool operator<( const QCString &s1, const QCString& s2 ) >{ return qstrcmp( s1.data(), s2.data() ) < 0; } > > inline bool operator<( const QCString &s1, const char *s2 ) >{ return qstrcmp( s1.data(), s2 ) < 0; } > > inline bool operator<( const char *s1, const QCString &s2 ) >{ return qstrcmp( s1, s2.data() ) < 0; } > > inline bool operator<=( const QCString &s1, const QCString &s2 ) >{ return qstrcmp( s1.data(), s2.data() ) <= 0; } > > inline bool operator<=( const QCString &s1, const char *s2 ) >{ return qstrcmp( s1.data(), s2 ) <= 0; } > > inline bool operator<=( const char *s1, const QCString &s2 ) >{ return qstrcmp( s1, s2.data() ) <= 0; } > > inline bool operator>( const QCString &s1, const QCString &s2 ) >{ return qstrcmp( s1.data(), s2.data() ) > 0; } > > inline bool operator>( const QCString &s1, const char *s2 ) >{ return qstrcmp( s1.data(), s2 ) > 0; } > > inline bool operator>( const char *s1, const QCString &s2 ) >{ return qstrcmp( s1, s2.data() ) > 0; } > > inline bool operator>=( const QCString &s1, const QCString& s2 ) >{ return qstrcmp( s1.data(), s2.data() ) >= 0; } > > inline bool operator>=( const QCString &s1, const char *s2 ) >{ return qstrcmp( s1.data(), s2 ) >= 0; } > > inline bool operator>=( const char *s1, const QCString &s2 ) >{ return qstrcmp( s1, s2.data() ) >= 0; } > > inline const QCString operator+( const QCString &s1, > const QCString &s2 ) >{ > QCString tmp( s1.data() ); > tmp += s2; > return tmp; >} > > inline const QCString operator+( const QCString &s1, const char *s2 ) >{ > QCString tmp( s1.data() ); > tmp += s2; > return tmp; >} > > inline const QCString operator+( const char *s1, const QCString &s2 ) >{ > QCString tmp( s1 ); > tmp += s2; > return tmp; >} > > inline const QCString operator+( const QCString &s1, char c2 ) >{ > QCString tmp( s1.data() ); > tmp += c2; > return tmp; >} > > inline const QCString operator+( char c1, const QCString &s2 ) >{ > QCString tmp; > tmp += c1; > tmp += s2; > return tmp; >} ># 1 "../tools/qwinexport.h" 1 ># 389 "../tools/qcstring.h" 2 ># 44 "../tools/qiodevice.h" 2 ># 88 "../tools/qiodevice.h" >class QIODevice >{ >public: > > > > typedef Q_ULONG Offset; > > > QIODevice(); > virtual ~QIODevice(); > > int flags() const { return ioMode; } > int mode() const { return ioMode & 0x00ff; } > int state() const { return ioMode & 0xf000; } > > bool isDirectAccess() const { return ((ioMode & 0x0100) == 0x0100); } > bool isSequentialAccess() const { return ((ioMode & 0x0200) == 0x0200); } > bool isCombinedAccess() const { return ((ioMode & 0x0300) == 0x0300); } > bool isBuffered() const { return ((ioMode & 0x0040) != 0x0040); } > bool isRaw() const { return ((ioMode & 0x0040) == 0x0040); } > bool isSynchronous() const { return ((ioMode & 0x0080) != 0x0080); } > bool isAsynchronous() const { return ((ioMode & 0x0080) == 0x0080); } > bool isTranslated() const { return ((ioMode & 0x0010) == 0x0010); } > bool isReadable() const { return ((ioMode & 0x0001) == 0x0001); } > bool isWritable() const { return ((ioMode & 0x0002) == 0x0002); } > bool isReadWrite() const { return ((ioMode & 0x0003) == 0x0003); } > bool isInactive() const { return state() == 0; } > bool isOpen() const { return state() == 0x1000; } > > int status() const { return ioSt; } > void resetStatus() { ioSt = 0; } > > virtual bool open( int mode ) = 0; > virtual void close() = 0; > virtual void flush() = 0; > > virtual Offset size() const = 0; > virtual Offset at() const; > virtual bool at( Offset ); > virtual bool atEnd() const; > bool reset() { return at(0); } > > virtual Q_LONG readBlock( char *data, Q_ULONG maxlen ) = 0; > virtual Q_LONG writeBlock( const char *data, Q_ULONG len ) = 0; > virtual Q_LONG readLine( char *data, Q_ULONG maxlen ); > Q_LONG writeBlock( const QByteArray& data ); > virtual QByteArray readAll(); > > virtual int getch() = 0; > virtual int putch( int ) = 0; > virtual int ungetch( int ) = 0; > >protected: > void setFlags( int f ) { ioMode = f; } > void setType( int ); > void setMode( int ); > void setState( int ); > void setStatus( int ); > Offset ioIndex; > >private: > int ioMode; > int ioSt; > >private: > > QIODevice( const QIODevice & ); > QIODevice &operator=( const QIODevice & ); > >}; ># 43 "../tools/qbuffer.h" 2 ># 1 "../tools/qstring.h" 1 ># 46 "../tools/qstring.h" ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/limits.h" 1 3 4 ># 11 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/limits.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/syslimits.h" 1 3 4 > > > > > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/limits.h" 1 3 4 ># 122 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/limits.h" 3 4 ># 1 "/usr/include/limits.h" 1 3 4 ># 144 "/usr/include/limits.h" 3 4 ># 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ># 153 "/usr/include/bits/posix1_lim.h" 3 4 ># 1 "/usr/include/bits/local_lim.h" 1 3 4 ># 36 "/usr/include/bits/local_lim.h" 3 4 ># 1 "/usr/include/linux/limits.h" 1 3 4 ># 37 "/usr/include/bits/local_lim.h" 2 3 4 ># 154 "/usr/include/bits/posix1_lim.h" 2 3 4 ># 145 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ># 149 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/xopen_lim.h" 1 3 4 ># 34 "/usr/include/bits/xopen_lim.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 35 "/usr/include/bits/xopen_lim.h" 2 3 4 ># 153 "/usr/include/limits.h" 2 3 4 ># 123 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/limits.h" 2 3 4 ># 8 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/syslimits.h" 2 3 4 ># 12 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/limits.h" 2 3 4 ># 47 "../tools/qstring.h" 2 ># 68 "../tools/qstring.h" >class QRegExp; >class QString; >class QCharRef; >template <class T> class QDeepCopy; > >class QChar { >public: > QChar(); > QChar( char c ); > QChar( uchar c ); > QChar( uchar c, uchar r ); > QChar( const QChar& c ); > QChar( ushort rc ); > QChar( short rc ); > QChar( uint rc ); > QChar( int rc ); > > static const QChar null; > static const QChar replacement; > static const QChar byteOrderMark; > static const QChar byteOrderSwapped; > static const QChar nbsp; > > > > enum Category > { > NoCategory, > > Mark_NonSpacing, > Mark_SpacingCombining, > Mark_Enclosing, > > Number_DecimalDigit, > Number_Letter, > Number_Other, > > Separator_Space, > Separator_Line, > Separator_Paragraph, > > Other_Control, > Other_Format, > Other_Surrogate, > Other_PrivateUse, > Other_NotAssigned, > > Letter_Uppercase, > Letter_Lowercase, > Letter_Titlecase, > Letter_Modifier, > Letter_Other, > > Punctuation_Connector, > Punctuation_Dash, > Punctuation_Dask = Punctuation_Dash, > Punctuation_Open, > Punctuation_Close, > Punctuation_InitialQuote, > Punctuation_FinalQuote, > Punctuation_Other, > > Symbol_Math, > Symbol_Currency, > Symbol_Modifier, > Symbol_Other > }; > > enum Direction > { > DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON, > DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN > }; > > enum Decomposition > { > Single, Canonical, Font, NoBreak, Initial, Medial, > Final, Isolated, Circle, Super, Sub, Vertical, > Wide, Narrow, Small, Square, Compat, Fraction > }; > > enum Joining > { > OtherJoining, Dual, Right, Center > }; > > enum CombiningClass > { > Combining_BelowLeftAttached = 200, > Combining_BelowAttached = 202, > Combining_BelowRightAttached = 204, > Combining_LeftAttached = 208, > Combining_RightAttached = 210, > Combining_AboveLeftAttached = 212, > Combining_AboveAttached = 214, > Combining_AboveRightAttached = 216, > > Combining_BelowLeft = 218, > Combining_Below = 220, > Combining_BelowRight = 222, > Combining_Left = 224, > Combining_Right = 226, > Combining_AboveLeft = 228, > Combining_Above = 230, > Combining_AboveRight = 232, > > Combining_DoubleBelow = 233, > Combining_DoubleAbove = 234, > Combining_IotaSubscript = 240 > }; > > > > int digitValue() const; > QChar lower() const; > QChar upper() const; > > Category category() const; > Direction direction() const; > Joining joining() const; > bool mirrored() const; > QChar mirroredChar() const; > const QString &decomposition() const; > Decomposition decompositionTag() const; > unsigned char combiningClass() const; > > char latin1() const { return ucs > 0xff ? 0 : (char) ucs; } > ushort unicode() const { return ucs; } > > > > ushort &unicode() { return ucs; } > > > > operator char() const { return latin1(); } > > > bool isNull() const { return unicode()==0; } > bool isPrint() const; > bool isPunct() const; > bool isSpace() const; > bool isMark() const; > bool isLetter() const; > bool isNumber() const; > bool isLetterOrNumber() const; > bool isDigit() const; > bool isSymbol() const; > > uchar cell() const { return ((uchar) ucs & 0xff); } > uchar row() const { return ((uchar) (ucs>>8)&0xff); } > void setCell( uchar cell ) { ucs = (ucs & 0xff00) + cell; } > void setRow( uchar row ) { ucs = (((ushort) row)<<8) + (ucs&0xff); } > > static bool networkOrdered() { > int wordSize; > bool bigEndian = FALSE; > qSysInfo( &wordSize, &bigEndian ); > return bigEndian; > } > > friend inline bool operator==( char ch, QChar c ); > friend inline bool operator==( QChar c, char ch ); > friend inline bool operator==( QChar c1, QChar c2 ); > friend inline bool operator!=( QChar c1, QChar c2 ); > friend inline bool operator!=( char ch, QChar c ); > friend inline bool operator!=( QChar c, char ch ); > friend inline bool operator<=( QChar c, char ch ); > friend inline bool operator<=( char ch, QChar c ); > friend inline bool operator<=( QChar c1, QChar c2 ); > >private: > ushort ucs; > > > >} ; > >inline QChar::QChar() : ucs( 0 ) > > > >{ >} >inline QChar::QChar( char c ) : ucs( (uchar)c ) > > > >{ >} >inline QChar::QChar( uchar c ) : ucs( c ) > > > >{ >} >inline QChar::QChar( uchar c, uchar r ) : ucs( (r << 8) | c ) > > > >{ >} >inline QChar::QChar( const QChar& c ) : ucs( c.ucs ) > > > >{ >} > >inline QChar::QChar( ushort rc ) : ucs( rc ) > > > >{ >} >inline QChar::QChar( short rc ) : ucs( (ushort) rc ) > > > >{ >} >inline QChar::QChar( uint rc ) : ucs( (ushort ) (rc & 0xffff) ) > > > >{ >} >inline QChar::QChar( int rc ) : ucs( (ushort) (rc & 0xffff) ) > > > >{ >} > >inline bool operator==( char ch, QChar c ) >{ > return ((uchar) ch) == c.ucs; >} > >inline bool operator==( QChar c, char ch ) >{ > return ((uchar) ch) == c.ucs; >} > >inline bool operator==( QChar c1, QChar c2 ) >{ > return c1.ucs == c2.ucs; >} > >inline bool operator!=( QChar c1, QChar c2 ) >{ > return c1.ucs != c2.ucs; >} > >inline bool operator!=( char ch, QChar c ) >{ > return ((uchar)ch) != c.ucs; >} > >inline bool operator!=( QChar c, char ch ) >{ > return ((uchar) ch) != c.ucs; >} > >inline bool operator<=( QChar c, char ch ) >{ > return c.ucs <= ((uchar) ch); >} > >inline bool operator<=( char ch, QChar c ) >{ > return ((uchar) ch) <= c.ucs; >} > >inline bool operator<=( QChar c1, QChar c2 ) >{ > return c1.ucs <= c2.ucs; >} > >inline bool operator>=( QChar c, char ch ) { return ch <= c; } >inline bool operator>=( char ch, QChar c ) { return c <= ch; } >inline bool operator>=( QChar c1, QChar c2 ) { return c2 <= c1; } >inline bool operator<( QChar c, char ch ) { return !(ch<=c); } >inline bool operator<( char ch, QChar c ) { return !(c<=ch); } >inline bool operator<( QChar c1, QChar c2 ) { return !(c2<=c1); } >inline bool operator>( QChar c, char ch ) { return !(ch>=c); } >inline bool operator>( char ch, QChar c ) { return !(c>=ch); } >inline bool operator>( QChar c1, QChar c2 ) { return !(c2>=c1); } > > >struct QStringData : public QShared { > QStringData() : > QShared(), unicode(0), ascii(0), len(0), issimpletext(TRUE), maxl(0), islatin1(FALSE) { ref(); } > QStringData(QChar *u, uint l, uint m) : > QShared(), unicode(u), ascii(0), len(l), issimpletext(FALSE), maxl(m), islatin1(FALSE) { } > ~QStringData() { if ( unicode ) delete[] ((char*)unicode); > if ( ascii ) delete[] ascii; } > > void deleteSelf(); > QChar *unicode; > char *ascii; > void setDirty() { > if ( ascii ) { > delete [] ascii; > ascii = 0; > } > issimpletext = FALSE; > } > > > > uint len : 30; > > uint issimpletext : 1; > > > > uint maxl : 30; > > uint islatin1 : 1; > >private: > > QStringData( const QStringData& ); > QStringData& operator=( const QStringData& ); > >}; > > >class QString >{ >public: > QString(); > QString( QChar ); > QString( const QString & ); > QString( const QByteArray& ); > QString( const QChar* unicode, uint length ); > > QString( const char *str ); > > > > > ~QString(); > > QString &operator=( const QString & ); > QString &operator=( const char * ); > > > > QString &operator=( const QCString& ); > QString &operator=( QChar c ); > QString &operator=( char c ); > > static const QString null; > > bool isNull() const; > bool isEmpty() const; > uint length() const; > void truncate( uint pos ); > > QString & fill( QChar c, int len = -1 ); > > QString copy() const; > > QString arg( long a, int fieldWidth = 0, int base = 10 ) const; > QString arg( ulong a, int fieldWidth = 0, int base = 10 ) const; > QString arg( Q_LLONG a, int fieldwidth=0, int base=10 ) const; > QString arg( Q_ULLONG a, int fieldwidth=0, int base=10 ) const; > QString arg( int a, int fieldWidth = 0, int base = 10 ) const; > QString arg( uint a, int fieldWidth = 0, int base = 10 ) const; > QString arg( short a, int fieldWidth = 0, int base = 10 ) const; > QString arg( ushort a, int fieldWidth = 0, int base = 10 ) const; > QString arg( double a, int fieldWidth = 0, char fmt = 'g', > int prec = -1 ) const; > QString arg( char a, int fieldWidth = 0 ) const; > QString arg( QChar a, int fieldWidth = 0 ) const; > QString arg( const QString& a, int fieldWidth = 0 ) const; > QString arg( const QString& a1, const QString& a2 ) const; > QString arg( const QString& a1, const QString& a2, > const QString& a3 ) const; > QString arg( const QString& a1, const QString& a2, const QString& a3, > const QString& a4 ) const; > > > QString &sprintf( const char* format, ... ) > > __attribute__ ((format (printf, 2, 3))) > > ; > > > int find( QChar c, int index=0, bool cs=TRUE ) const; > int find( char c, int index=0, bool cs=TRUE ) const; > int find( const QString &str, int index=0, bool cs=TRUE ) const; > > int find( const QRegExp &, int index=0 ) const; > > > int find( const char* str, int index=0 ) const; > > int findRev( QChar c, int index=-1, bool cs=TRUE) const; > int findRev( char c, int index=-1, bool cs=TRUE) const; > int findRev( const QString &str, int index=-1, bool cs=TRUE) const; > > int findRev( const QRegExp &, int index=-1 ) const; > > > int findRev( const char* str, int index=-1 ) const; > > int contains( QChar c, bool cs=TRUE ) const; > int contains( char c, bool cs=TRUE ) const > { return contains(QChar(c), cs); } > > int contains( const char* str, bool cs=TRUE ) const; > > int contains( const QString &str, bool cs=TRUE ) const; > > int contains( const QRegExp & ) const; > > > enum SectionFlags { > SectionDefault = 0x00, > SectionSkipEmpty = 0x01, > SectionIncludeLeadingSep = 0x02, > SectionIncludeTrailingSep = 0x04, > SectionCaseInsensitiveSeps = 0x08 > }; > QString section( QChar sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const; > QString section( char sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const; > > QString section( const char *in_sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const; > > QString section( const QString &in_sep, int start, int end = 0xffffffff, int flags = SectionDefault ) const; > > QString section( const QRegExp ®, int start, int end = 0xffffffff, int flags = SectionDefault ) const; > > > QString left( uint len ) const; > QString right( uint len ) const; > QString mid( uint index, uint len=0xffffffff) const; > > QString leftJustify( uint width, QChar fill=' ', bool trunc=FALSE)const; > QString rightJustify( uint width, QChar fill=' ',bool trunc=FALSE)const; > > QString lower() const; > QString upper() const; > > QString stripWhiteSpace() const; > QString simplifyWhiteSpace() const; > > QString &insert( uint index, const QString & ); > > QString &insert( uint index, const QByteArray & ); > QString &insert( uint index, const char * ); > > QString &insert( uint index, const QChar*, uint len ); > QString &insert( uint index, QChar ); > QString &insert( uint index, char c ) { return insert(index,QChar(c)); } > QString &append( char ); > QString &append( QChar ); > QString &append( const QString & ); > > QString &append( const QByteArray & ); > QString &append( const char * ); > > > > > QString &prepend( char ); > QString &prepend( QChar ); > QString &prepend( const QString & ); > > QString &prepend( const QByteArray & ); > QString &prepend( const char * ); > > > > > QString &remove( uint index, uint len ); > > > > > QString &remove( const QString & ); > QString &remove( const QString &, bool cs ); > > QString &remove( QChar c ); > QString &remove( char c ) > { return remove( QChar(c) ); } > > QString &remove( const char * ); > > > QString &remove( const QRegExp & ); > > QString &replace( uint index, uint len, const QString & ); > QString &replace( uint index, uint len, const QChar*, uint clen ); > QString &replace( uint index, uint len, QChar ); > QString &replace( uint index, uint len, char c ) > { return replace( index, len, QChar(c) ); } > > > > > > > > QString &replace( QChar c, const QString & ); > QString &replace( QChar c, const QString &, bool ); > > > QString &replace( char c, const QString & after ) > { return replace( QChar(c), after, TRUE ); } > QString &replace( char c, const QString & after, bool cs ) > { return replace( QChar(c), after, cs ); } > > > QString &replace( const QString &, const QString & ); > QString &replace( const QString &, const QString &, bool ); > > > QString &replace( const QRegExp &, const QString & ); > > QString &replace( QChar, QChar ); > > short toShort( bool *ok=0, int base=10 ) const; > ushort toUShort( bool *ok=0, int base=10 ) const; > int toInt( bool *ok=0, int base=10 ) const; > uint toUInt( bool *ok=0, int base=10 ) const; > long toLong( bool *ok=0, int base=10 ) const; > ulong toULong( bool *ok=0, int base=10 ) const; > Q_LLONG toLongLong( bool *ok=0, int base=10 ) const; > Q_ULLONG toULongLong( bool *ok=0, int base=10 ) const; > float toFloat( bool *ok=0 ) const; > double toDouble( bool *ok=0 ) const; > > QString &setNum( short, int base=10 ); > QString &setNum( ushort, int base=10 ); > QString &setNum( int, int base=10 ); > QString &setNum( uint, int base=10 ); > QString &setNum( long, int base=10 ); > QString &setNum( ulong, int base=10 ); > QString &setNum( Q_LLONG, int base=10 ); > QString &setNum( Q_ULLONG, int base=10 ); > QString &setNum( float, char f='g', int prec=6 ); > QString &setNum( double, char f='g', int prec=6 ); > > static QString number( long, int base=10 ); > static QString number( ulong, int base=10); > static QString number( Q_LLONG, int base=10 ); > static QString number( Q_ULLONG, int base=10); > static QString number( int, int base=10 ); > static QString number( uint, int base=10); > static QString number( double, char f='g', int prec=6 ); > > void setExpand( uint index, QChar c ); > > QString &operator+=( const QString &str ); > > QString &operator+=( const QByteArray &str ); > QString &operator+=( const char *str ); > > > > > QString &operator+=( QChar c ); > QString &operator+=( char c ); > > QChar at( uint i ) const > { return i < d->len ? d->unicode[i] : QChar::null; } > QChar operator[]( int i ) const { return at((uint)i); } > QCharRef at( uint i ); > QCharRef operator[]( int i ); > > QChar constref(uint i) const > { return at(i); } > QChar& ref(uint i) > { > if ( d->count != 1 || i >= d->len ) > subat( i ); > d->setDirty(); > return d->unicode[i]; > } > > const QChar* unicode() const { return d->unicode; } > const char* ascii() const; > static QString fromAscii(const char*, int len=-1); > const char* latin1() const; > static QString fromLatin1(const char*, int len=-1); > QCString utf8() const; > static QString fromUtf8(const char*, int len=-1); > QCString local8Bit() const; > static QString fromLocal8Bit(const char*, int len=-1); > bool operator!() const; > > operator const char *() const { return ascii(); } > > > > > > static QString fromUcs2( const unsigned short *ucs2 ); > const unsigned short *ucs2() const; > > QString &setUnicode( const QChar* unicode, uint len ); > QString &setUnicodeCodes( const ushort* unicode_as_ushorts, uint len ); > QString &setAscii( const char*, int len=-1 ); > QString &setLatin1( const char*, int len=-1 ); > > int compare( const QString& s ) const; > static int compare( const QString& s1, const QString& s2 ) > { return s1.compare( s2 ); } > > int localeAwareCompare( const QString& s ) const; > static int localeAwareCompare( const QString& s1, const QString& s2 ) > { return s1.localeAwareCompare( s2 ); } > > > friend QDataStream &operator>>( QDataStream &, QString & ); > > > void compose(); > > > const char* data() const { return ascii(); } > > > > > > > > bool startsWith( const QString& str ) const; > bool startsWith( const QString& str, bool cs ) const; > > > bool endsWith( const QString& str ) const; > bool endsWith( const QString& str, bool cs ) const; > > > void setLength( uint newLength ); > > uint capacity() const; > void reserve( uint minCapacity ); > void squeeze(); > > bool simpleText() const { if ( !d->issimpletext ) checkSimpleText(); return (bool)d->issimpletext; } > bool isRightToLeft() const; > > >private: > QString( int size, bool ); > > void deref(); > void real_detach(); > void subat( uint ); > QString multiArg( int numArgs, const QString& a1, const QString& a2, > const QString& a3 = QString::null, > const QString& a4 = QString::null ) const; > > void checkSimpleText() const; > void grow( uint newLength ); > > QString &insertHelper( uint index, const char *s, uint len=(2147483647 * 2U + 1U) ); > QString &operatorPlusEqHelper( const char *s, uint len2=(2147483647 * 2U + 1U) ); > > > static QChar* latin1ToUnicode( const char*, uint * len, uint maxlen=(uint)-1 ); > static QChar* latin1ToUnicode( const QByteArray&, uint * len ); > static char* unicodeToLatin1( const QChar*, uint len ); > > QStringData *d; > static QStringData* shared_null; > static QStringData* makeSharedNull(); > > friend class QConstString; > friend class QTextStream; > QString( QStringData* dd, bool ) : d(dd) { } > > > void detach(); > friend class QDeepCopy<QString>; >}; > >class QCharRef { > friend class QString; > QString& s; > uint p; > QCharRef(QString* str, uint pos) : s(*str), p(pos) { } > >public: > > > > > ushort unicode() const { return s.constref(p).unicode(); } > char latin1() const { return s.constref(p).latin1(); } > > > QCharRef operator=(char c ) { s.ref(p)=c; return *this; } > QCharRef operator=(uchar c ) { s.ref(p)=c; return *this; } > QCharRef operator=(QChar c ) { s.ref(p)=c; return *this; } > QCharRef operator=(const QCharRef& c ) { s.ref(p)=c.unicode(); return *this; } > QCharRef operator=(ushort rc ) { s.ref(p)=rc; return *this; } > QCharRef operator=(short rc ) { s.ref(p)=rc; return *this; } > QCharRef operator=(uint rc ) { s.ref(p)=rc; return *this; } > QCharRef operator=(int rc ) { s.ref(p)=rc; return *this; } > > operator QChar () const { return s.constref(p); } > > > bool isNull() const { return unicode()==0; } > bool isPrint() const { return s.constref(p).isPrint(); } > bool isPunct() const { return s.constref(p).isPunct(); } > bool isSpace() const { return s.constref(p).isSpace(); } > bool isMark() const { return s.constref(p).isMark(); } > bool isLetter() const { return s.constref(p).isLetter(); } > bool isNumber() const { return s.constref(p).isNumber(); } > bool isLetterOrNumber() { return s.constref(p).isLetterOrNumber(); } > bool isDigit() const { return s.constref(p).isDigit(); } > > int digitValue() const { return s.constref(p).digitValue(); } > QChar lower() const { return s.constref(p).lower(); } > QChar upper() const { return s.constref(p).upper(); } > > QChar::Category category() const { return s.constref(p).category(); } > QChar::Direction direction() const { return s.constref(p).direction(); } > QChar::Joining joining() const { return s.constref(p).joining(); } > bool mirrored() const { return s.constref(p).mirrored(); } > QChar mirroredChar() const { return s.constref(p).mirroredChar(); } > const QString &decomposition() const { return s.constref(p).decomposition(); } > QChar::Decomposition decompositionTag() const { return s.constref(p).decompositionTag(); } > unsigned char combiningClass() const { return s.constref(p).combiningClass(); } > > > uchar cell() const { return s.constref(p).cell(); } > uchar row() const { return s.constref(p).row(); } > >}; > >inline QCharRef QString::at( uint i ) { return QCharRef(this,i); } >inline QCharRef QString::operator[]( int i ) { return at((uint)i); } > > >class QConstString : private QString { >public: > QConstString( const QChar* unicode, uint length ); > ~QConstString(); > const QString& string() const { return *this; } >}; > > > > > > > QDataStream &operator<<( QDataStream &, const QString & ); > QDataStream &operator>>( QDataStream &, QString & ); ># 838 "../tools/qstring.h" >inline QString::QString() : > d(shared_null ? shared_null : makeSharedNull()) >{ > d->ref(); >} > >inline QString::~QString() >{ > if ( d->deref() ) { > if ( d != shared_null ) > d->deleteSelf(); > } >} > > >inline void QString::detach() >{ real_detach(); } > >inline QString QString::section( QChar sep, int start, int end, int flags ) const >{ return section(QString(sep), start, end, flags); } > >inline QString QString::section( char sep, int start, int end, int flags ) const >{ return section(QChar(sep), start, end, flags); } > > >inline QString QString::section( const char *in_sep, int start, int end, int flags ) const >{ return section(QString(in_sep), start, end, flags); } > > >inline QString &QString::operator=( QChar c ) >{ *this = QString(c); return *this; } > >inline QString &QString::operator=( char c ) >{ *this = QString(QChar(c)); return *this; } > >inline bool QString::isNull() const >{ return unicode() == 0; } > >inline bool QString::operator!() const >{ return isNull(); } > >inline uint QString::length() const >{ return d->len; } > >inline uint QString::capacity() const >{ return d->maxl; } > >inline bool QString::isEmpty() const >{ return length() == 0; } > >inline QString QString::copy() const >{ return QString( *this ); } > > >inline QString &QString::insert( uint index, const char *s ) >{ return insertHelper( index, s ); } > >inline QString &QString::insert( uint index, const QByteArray &s ) >{ > int pos = s.find( 0 ); > return insertHelper( index, s, pos==-1 ? s.size() : pos ); >} > > >inline QString &QString::prepend( const QString & s ) >{ return insert(0,s); } > >inline QString &QString::prepend( QChar c ) >{ return insert(0,c); } > >inline QString &QString::prepend( char c ) >{ return insert(0,c); } > > >inline QString &QString::prepend( const QByteArray & s ) >{ return insert(0,s); } > > > >inline QString &QString::operator+=( const QByteArray &s ) >{ > int pos = s.find( 0 ); > return operatorPlusEqHelper( s, pos==-1 ? s.size() : pos ); >} > > >inline QString &QString::append( const QString & s ) >{ return operator+=(s); } > > >inline QString &QString::append( const QByteArray &s ) >{ return operator+=(s); } > >inline QString &QString::append( const char * s ) >{ return operator+=(s); } > > >inline QString &QString::append( QChar c ) >{ return operator+=(c); } > >inline QString &QString::append( char c ) >{ return operator+=(c); } ># 954 "../tools/qstring.h" >inline QString &QString::setNum( short n, int base ) >{ return setNum((Q_LLONG)n, base); } > >inline QString &QString::setNum( ushort n, int base ) >{ return setNum((Q_ULLONG)n, base); } > >inline QString &QString::setNum( int n, int base ) >{ return setNum((Q_LLONG)n, base); } > >inline QString &QString::setNum( uint n, int base ) >{ return setNum((Q_ULLONG)n, base); } > >inline QString &QString::setNum( float n, char f, int prec ) >{ return setNum((double)n,f,prec); } > >inline QString QString::arg( int a, int fieldWidth, int base ) const >{ return arg( (Q_LLONG)a, fieldWidth, base ); } > >inline QString QString::arg( uint a, int fieldWidth, int base ) const >{ return arg( (Q_ULLONG)a, fieldWidth, base ); } > >inline QString QString::arg( short a, int fieldWidth, int base ) const >{ return arg( (Q_LLONG)a, fieldWidth, base ); } > >inline QString QString::arg( ushort a, int fieldWidth, int base ) const >{ return arg( (Q_ULLONG)a, fieldWidth, base ); } > >inline QString QString::arg( const QString& a1, const QString& a2 ) const { > return multiArg( 2, a1, a2 ); >} > >inline QString QString::arg( const QString& a1, const QString& a2, > const QString& a3 ) const { > return multiArg( 3, a1, a2, a3 ); >} > >inline QString QString::arg( const QString& a1, const QString& a2, > const QString& a3, const QString& a4 ) const { > return multiArg( 4, a1, a2, a3, a4 ); >} > >inline int QString::find( char c, int index, bool cs ) const >{ return find(QChar(c), index, cs); } > >inline int QString::findRev( char c, int index, bool cs ) const >{ return findRev( QChar(c), index, cs ); } > > >inline int QString::find( const char* str, int index ) const >{ return find(QString::fromAscii(str), index); } > >inline int QString::findRev( const char* str, int index ) const >{ return findRev(QString::fromAscii(str), index); } > > > > > > > > bool operator!=( const QString &s1, const QString &s2 ); > bool operator<( const QString &s1, const QString &s2 ); > bool operator<=( const QString &s1, const QString &s2 ); > bool operator==( const QString &s1, const QString &s2 ); > bool operator>( const QString &s1, const QString &s2 ); > bool operator>=( const QString &s1, const QString &s2 ); > > bool operator!=( const QString &s1, const char *s2 ); > bool operator<( const QString &s1, const char *s2 ); > bool operator<=( const QString &s1, const char *s2 ); > bool operator==( const QString &s1, const char *s2 ); > bool operator>( const QString &s1, const char *s2 ); > bool operator>=( const QString &s1, const char *s2 ); > bool operator!=( const char *s1, const QString &s2 ); > bool operator<( const char *s1, const QString &s2 ); > bool operator<=( const char *s1, const QString &s2 ); > bool operator==( const char *s1, const QString &s2 ); > > bool operator>=( const char *s1, const QString &s2 ); > > > inline const QString operator+( const QString &s1, const QString &s2 ) >{ > QString tmp( s1 ); > tmp += s2; > return tmp; >} > > > inline const QString operator+( const QString &s1, const char *s2 ) >{ > QString tmp( s1 ); > tmp += QString::fromAscii(s2); > return tmp; >} > > inline const QString operator+( const char *s1, const QString &s2 ) >{ > QString tmp = QString::fromAscii( s1 ); > tmp += s2; > return tmp; >} > > > inline const QString operator+( const QString &s1, QChar c2 ) >{ > QString tmp( s1 ); > tmp += c2; > return tmp; >} > > inline const QString operator+( const QString &s1, char c2 ) >{ > QString tmp( s1 ); > tmp += c2; > return tmp; >} > > inline const QString operator+( QChar c1, const QString &s2 ) >{ > QString tmp; > tmp += c1; > tmp += s2; > return tmp; >} > > inline const QString operator+( char c1, const QString &s2 ) >{ > QString tmp; > tmp += c1; > tmp += s2; > return tmp; >} ># 1111 "../tools/qstring.h" ># 1 "../tools/qwinexport.h" 1 ># 1112 "../tools/qstring.h" 2 ># 44 "../tools/qbuffer.h" 2 > > > >class QBuffer : public QIODevice >{ >public: > QBuffer(); > QBuffer( QByteArray ); > ~QBuffer(); > > QByteArray buffer() const; > bool setBuffer( QByteArray ); > > bool open( int ); > void close(); > void flush(); > > Offset size() const; > Offset at() const; > bool at( Offset ); > > Q_LONG readBlock( char *p, Q_ULONG ); > Q_LONG writeBlock( const char *p, Q_ULONG ); > Q_LONG writeBlock( const QByteArray& data ) > { return QIODevice::writeBlock(data); } > Q_LONG readLine( char *p, Q_ULONG ); > > int getch(); > int putch( int ); > int ungetch( int ); > >protected: > QByteArray a; > >private: > uint a_len; > uint a_inc; > >private: > > QBuffer( const QBuffer & ); > QBuffer &operator=( const QBuffer & ); > >}; > > >inline QByteArray QBuffer::buffer() const >{ return a; } > >inline QIODevice::Offset QBuffer::size() const >{ return (Offset)a.size(); } > >inline QIODevice::Offset QBuffer::at() const >{ return ioIndex; } ># 39 "../tools/qbuffer.cpp" 2 ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > >extern "C" { > > > > > > ># 1 "/usr/include/bits/waitflags.h" 1 3 4 ># 43 "/usr/include/stdlib.h" 2 3 4 ># 1 "/usr/include/bits/waitstatus.h" 1 3 4 ># 65 "/usr/include/bits/waitstatus.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 37 "/usr/include/endian.h" 3 4 ># 1 "/usr/include/bits/endian.h" 1 3 4 ># 38 "/usr/include/endian.h" 2 3 4 ># 66 "/usr/include/bits/waitstatus.h" 2 3 4 > >union wait > { > int w_status; > struct > { > > unsigned int __w_termsig:7; > unsigned int __w_coredump:1; > unsigned int __w_retcode:8; > unsigned int:16; > > > > > > > > } __wait_terminated; > struct > { > > unsigned int __w_stopval:8; > unsigned int __w_stopsig:8; > unsigned int:16; > > > > > > > } __wait_stopped; > }; ># 44 "/usr/include/stdlib.h" 2 3 4 ># 96 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > > > > > >__extension__ typedef struct > { > long long int quot; > long long int rem; > } lldiv_t; > > ># 140 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) throw (); > > > > >extern double atof (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern int atoi (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern long int atol (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern float strtof (__const char *__restrict __nptr, > char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))); > >extern long double strtold (__const char *__restrict __nptr, > char **__restrict __endptr) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > > > > >__extension__ >extern long long int strtoq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > >__extension__ >extern unsigned long long int strtouq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > ># 239 "/usr/include/stdlib.h" 3 4 >extern long int strtol_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))); > >extern unsigned long int strtoul_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))); > >__extension__ >extern long long int strtoll_l (__const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))); > >__extension__ >extern unsigned long long int strtoull_l (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))); > >extern double strtod_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))); > >extern float strtof_l (__const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))); > >extern long double strtold_l (__const char *__restrict __nptr, > char **__restrict __endptr, > __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))); > > > > > > >extern double __strtod_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > throw () __attribute__ ((__nonnull__ (1))); >extern float __strtof_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > throw () __attribute__ ((__nonnull__ (1))); >extern long double __strtold_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __group) throw () __attribute__ ((__nonnull__ (1))); > >extern long int __strtol_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))); > > > > >__extension__ >extern long long int __strtoll_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))); > > > >__extension__ >extern unsigned long long int __strtoull_internal (__const char * > __restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > throw () __attribute__ ((__nonnull__ (1))); > > > > > > > > >extern __inline double >strtod (__const char *__restrict __nptr, char **__restrict __endptr) throw () >{ > return __strtod_internal (__nptr, __endptr, 0); >} >extern __inline long int >strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () > >{ > return __strtol_internal (__nptr, __endptr, __base, 0); >} >extern __inline unsigned long int >strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () > >{ > return __strtoul_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline float >strtof (__const char *__restrict __nptr, char **__restrict __endptr) throw () >{ > return __strtof_internal (__nptr, __endptr, 0); >} >extern __inline long double >strtold (__const char *__restrict __nptr, char **__restrict __endptr) throw () >{ > return __strtold_internal (__nptr, __endptr, 0); >} > > > > >__extension__ extern __inline long long int >strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >__extension__ extern __inline long long int >strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) throw () > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline double >atof (__const char *__nptr) throw () >{ > return strtod (__nptr, (char **) __null); >} >extern __inline int >atoi (__const char *__nptr) throw () >{ > return (int) strtol (__nptr, (char **) __null, 10); >} >extern __inline long int >atol (__const char *__nptr) throw () >{ > return strtol (__nptr, (char **) __null, 10); >} > > > > >__extension__ extern __inline long long int >atoll (__const char *__nptr) throw () >{ > return strtoll (__nptr, (char **) __null, 10); >} > ># 424 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) throw (); > > >extern long int a64l (__const char *__s) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > ># 1 "/usr/include/sys/types.h" 1 3 4 ># 29 "/usr/include/sys/types.h" 3 4 >extern "C" { > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/stddef.h" 1 3 4 ># 32 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > > > > >__extension__ typedef signed long long int __int64_t; >__extension__ typedef unsigned long long int __uint64_t; > > > > > > > >__extension__ typedef long long int __quad_t; >__extension__ typedef unsigned long long int __u_quad_t; ># 129 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 130 "/usr/include/bits/types.h" 2 3 4 > > > > > > >__extension__ typedef __u_quad_t __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef __u_quad_t __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef __quad_t __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef __u_quad_t __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef void * __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef __quad_t __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef __u_quad_t __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef __u_quad_t __fsfilcnt64_t; > >__extension__ typedef int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 32 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; > > > > >typedef __loff_t loff_t; > > > >typedef __ino_t ino_t; > > > > > > >typedef __ino64_t ino64_t; > > > > >typedef __dev_t dev_t; > > > > >typedef __gid_t gid_t; > > > > >typedef __mode_t mode_t; > > > > >typedef __nlink_t nlink_t; > > > > >typedef __uid_t uid_t; > > > > > >typedef __off_t off_t; > > > > > > >typedef __off64_t off64_t; > > > > >typedef __pid_t pid_t; > > > > >typedef __id_t id_t; > > > > >typedef __ssize_t ssize_t; > > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; > > > > > >typedef __key_t key_t; ># 133 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 58 "/usr/include/time.h" 3 4 > > >typedef __clock_t clock_t; > > > ># 74 "/usr/include/time.h" 3 4 > > >typedef __time_t time_t; > > > ># 92 "/usr/include/time.h" 3 4 >typedef __clockid_t clockid_t; ># 104 "/usr/include/time.h" 3 4 >typedef __timer_t timer_t; ># 134 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __useconds_t useconds_t; > > > >typedef __suseconds_t suseconds_t; > > > > > ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/stddef.h" 1 3 4 ># 148 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 191 "/usr/include/sys/types.h" 3 4 >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); ># 216 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/sys/select.h" 1 3 4 ># 31 "/usr/include/sys/select.h" 3 4 ># 1 "/usr/include/bits/select.h" 1 3 4 ># 32 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 23 "/usr/include/bits/sigset.h" 3 4 >typedef int __sig_atomic_t; > > > > >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 35 "/usr/include/sys/select.h" 2 3 4 > > > >typedef __sigset_t sigset_t; > > > > > ># 1 "/usr/include/time.h" 1 3 4 ># 118 "/usr/include/time.h" 3 4 >struct timespec > { > __time_t tv_sec; > long int tv_nsec; > }; ># 45 "/usr/include/sys/select.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 69 "/usr/include/bits/time.h" 3 4 >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 47 "/usr/include/sys/select.h" 2 3 4 ># 55 "/usr/include/sys/select.h" 3 4 >typedef long int __fd_mask; ># 67 "/usr/include/sys/select.h" 3 4 >typedef struct > { > > > > __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; > > > > > > } fd_set; > > > > > > >typedef __fd_mask fd_mask; ># 99 "/usr/include/sys/select.h" 3 4 >extern "C" { ># 109 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 121 "/usr/include/sys/select.h" 3 4 >extern int pselect (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > const struct timespec *__restrict __timeout, > const __sigset_t *__restrict __sigmask); > > >} ># 217 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 29 "/usr/include/sys/sysmacros.h" 3 4 >__extension__ >extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) > throw (); >__extension__ >extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) > throw (); >__extension__ >extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > throw (); > > >__extension__ extern __inline unsigned int >gnu_dev_major (unsigned long long int __dev) throw () >{ > return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); >} > >__extension__ extern __inline unsigned int >gnu_dev_minor (unsigned long long int __dev) throw () >{ > return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); >} > >__extension__ extern __inline unsigned long long int >gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () >{ > return ((__minor & 0xff) | ((__major & 0xfff) << 8) > | (((unsigned long long int) (__minor & ~0xff)) << 12) > | (((unsigned long long int) (__major & ~0xfff)) << 32)); >} ># 220 "/usr/include/sys/types.h" 2 3 4 > > > > >typedef __blksize_t blksize_t; > > > > > > >typedef __blkcnt_t blkcnt_t; > > > >typedef __fsblkcnt_t fsblkcnt_t; > > > >typedef __fsfilcnt_t fsfilcnt_t; ># 258 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt64_t blkcnt64_t; >typedef __fsblkcnt64_t fsblkcnt64_t; >typedef __fsfilcnt64_t fsfilcnt64_t; > > > > > ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 36 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef unsigned long int pthread_t; > > >typedef union >{ > char __size[36]; > long int __align; >} pthread_attr_t; > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __count; > int __owner; > > > int __kind; > unsigned int __nusers; > int __spins; > } __data; > char __size[24]; > long int __align; >} pthread_mutex_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_mutexattr_t; > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __futex; > __extension__ unsigned long long int __total_seq; > __extension__ unsigned long long int __wakeup_seq; > __extension__ unsigned long long int __woken_seq; > void *__mutex; > unsigned int __nwaiters; > unsigned int __broadcast_seq; > } __data; > char __size[48]; > __extension__ long long int __align; >} pthread_cond_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_condattr_t; > > > >typedef unsigned int pthread_key_t; > > > >typedef int pthread_once_t; > > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __nr_readers; > unsigned int __readers_wakeup; > unsigned int __writer_wakeup; > unsigned int __nr_readers_queued; > unsigned int __nr_writers_queued; > > > unsigned int __flags; > int __writer; > } __data; > char __size[32]; > long int __align; >} pthread_rwlock_t; > >typedef union >{ > char __size[8]; > long int __align; >} pthread_rwlockattr_t; > > > > > >typedef volatile int pthread_spinlock_t; > > > > >typedef union >{ > char __size[20]; > long int __align; >} pthread_barrier_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_barrierattr_t; ># 267 "/usr/include/sys/types.h" 2 3 4 > > >} ># 434 "/usr/include/stdlib.h" 2 3 4 > > > > > > >extern long int random (void) throw (); > > >extern void srandom (unsigned int __seed) throw (); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) throw () __attribute__ ((__nonnull__ (2))); > > > >extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) > throw () __attribute__ ((__nonnull__ (2))); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) > throw () __attribute__ ((__nonnull__ (2, 4))); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int rand (void) throw (); > >extern void srand (unsigned int __seed) throw (); > > > > >extern int rand_r (unsigned int *__seed) throw (); > > > > > > > >extern double drand48 (void) throw (); >extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); > > >extern long int lrand48 (void) throw (); >extern long int nrand48 (unsigned short int __xsubi[3]) > throw () __attribute__ ((__nonnull__ (1))); > > >extern long int mrand48 (void) throw (); >extern long int jrand48 (unsigned short int __xsubi[3]) > throw () __attribute__ ((__nonnull__ (1))); > > >extern void srand48 (long int __seedval) throw (); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) > throw () __attribute__ ((__nonnull__ (1))); >extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1))); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > unsigned long long int __a; > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > throw () __attribute__ ((__nonnull__ (2))); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > > > > >extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)); > >extern void *calloc (size_t __nmemb, size_t __size) > throw () __attribute__ ((__malloc__)); > > > > > > > >extern void *realloc (void *__ptr, size_t __size) throw () __attribute__ ((__malloc__)); > >extern void free (void *__ptr) throw (); > > > > >extern void cfree (void *__ptr) throw (); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 25 "/usr/include/alloca.h" 3 4 ># 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/stddef.h" 1 3 4 ># 26 "/usr/include/alloca.h" 2 3 4 > >extern "C" { > > > > > >extern void *alloca (size_t __size) throw (); > > > > > >} ># 607 "/usr/include/stdlib.h" 2 3 4 > > > > >extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)); > > > > >extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); > > > > >extern void abort (void) throw () __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern void exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > >extern void _Exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > >extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))); > > > > >extern char *__secure_getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int setenv (__const char *__name, __const char *__value, int __replace) > throw () __attribute__ ((__nonnull__ (2))); > > >extern int unsetenv (__const char *__name) throw (); > > > > > > >extern int clearenv (void) throw (); ># 691 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))); ># 702 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))); ># 711 "/usr/include/stdlib.h" 3 4 >extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))); ># 721 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > > >extern int system (__const char *__command); > > > > > > > >extern char *canonicalize_file_name (__const char *__name) > throw () __attribute__ ((__nonnull__ (1))); ># 749 "/usr/include/stdlib.h" 3 4 >extern char *realpath (__const char *__restrict __name, > char *__restrict __resolved) throw (); > > > > > > >typedef int (*__compar_fn_t) (__const void *, __const void *); > > >typedef __compar_fn_t comparison_fn_t; > > > > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))); > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); > > > >extern int abs (int __x) throw () __attribute__ ((__const__)); >extern long int labs (long int __x) throw () __attribute__ ((__const__)); > > > >__extension__ extern long long int llabs (long long int __x) > throw () __attribute__ ((__const__)); > > > > > > > >extern div_t div (int __numer, int __denom) > throw () __attribute__ ((__const__)); >extern ldiv_t ldiv (long int __numer, long int __denom) > throw () __attribute__ ((__const__)); > > > > >__extension__ extern lldiv_t lldiv (long long int __numer, > long long int __denom) > throw () __attribute__ ((__const__)); > ># 814 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))); > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))); > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) > throw () __attribute__ ((__nonnull__ (3))); > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > throw () __attribute__ ((__nonnull__ (3, 4))); >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > throw () __attribute__ ((__nonnull__ (3, 4))); >extern char *qgcvt (long double __value, int __ndigit, char *__buf) > throw () __attribute__ ((__nonnull__ (3))); > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (3, 4, 5))); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (3, 4, 5))); > > > > > > > >extern int mblen (__const char *__s, size_t __n) throw (); > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) throw (); > > >extern int wctomb (char *__s, wchar_t __wchar) throw (); > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) throw (); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > throw (); > > > > > > > > >extern int rpmatch (__const char *__response) throw () __attribute__ ((__nonnull__ (1))); ># 902 "/usr/include/stdlib.h" 3 4 >extern int getsubopt (char **__restrict __optionp, > char *__const *__restrict __tokens, > char **__restrict __valuep) > throw () __attribute__ ((__nonnull__ (1, 2, 3))); > > > > > >extern void setkey (__const char *__key) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int posix_openpt (int __oflag); > > > > > > > >extern int grantpt (int __fd) throw (); > > > >extern int unlockpt (int __fd) throw (); > > > > >extern char *ptsname (int __fd) throw (); > > > > > > >extern int ptsname_r (int __fd, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))); > > >extern int getpt (void); > > > > > > >extern int getloadavg (double __loadavg[], int __nelem) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >} ># 40 "../tools/qbuffer.cpp" 2 ># 85 "../tools/qbuffer.cpp" >QBuffer::QBuffer() >{ > setFlags( 0x0100 ); > a_inc = 16; > a_len = 0; > ioIndex = 0; >} ># 115 "../tools/qbuffer.cpp" >QBuffer::QBuffer( QByteArray buf ) : a(buf) >{ > setFlags( 0x0100 ); > a_len = a.size(); > a_inc = (a_len > 512) ? 512 : a_len; > if ( a_inc < 16 ) > a_inc = 16; > ioIndex = 0; >} > > > > > >QBuffer::~QBuffer() >{ >} ># 146 "../tools/qbuffer.cpp" >bool QBuffer::setBuffer( QByteArray buf ) >{ > if ( isOpen() ) { > > qWarning( "QBuffer::setBuffer: Buffer is open" ); > > return FALSE; > } > a = buf; > a_len = a.size(); > a_inc = (a_len > 512) ? 512 : a_len; > if ( a_inc < 16 ) > a_inc = 16; > ioIndex = 0; > return TRUE; >} ># 189 "../tools/qbuffer.cpp" >bool QBuffer::open( int m ) >{ > if ( isOpen() ) { > > qWarning( "QBuffer::open: Buffer already open" ); > > return FALSE; > } > setMode( m ); > if ( m & 0x0008 ) { > a.resize( 0 ); > a_len = 0; > } > if ( m & 0x0004 ) { > ioIndex = a.size(); > } else { > ioIndex = 0; > } > a_inc = 16; > setState( 0x1000 ); > resetStatus(); > return TRUE; >} ># 221 "../tools/qbuffer.cpp" >void QBuffer::close() >{ > if ( isOpen() ) { > setFlags( 0x0100 ); > ioIndex = 0; > a_inc = 16; > } >} > > > > > > > >void QBuffer::flush() >{ > return; >} ># 258 "../tools/qbuffer.cpp" >bool QBuffer::at( Offset pos ) >{ > > if ( !isOpen() ) { > qWarning( "QBuffer::at: Buffer is not open" ); > return FALSE; > } > > if ( pos > a_len ) { > > > > > qWarning( "QBuffer::at: Index %lu out of range", pos ); > > > return FALSE; > } > ioIndex = pos; > return TRUE; >} > > > > > > >Q_LONG QBuffer::readBlock( char *p, Q_ULONG len ) >{ > > if ( !p ) { > qWarning( "QBuffer::readBlock: Null pointer error" ); > return -1; > } > if ( !isOpen() ) { > qWarning( "QBuffer::readBlock: Buffer not open" ); > return -1; > } > if ( !isReadable() ) { > qWarning( "QBuffer::readBlock: Read operation not permitted" ); > return -1; > } > > if ( ioIndex + len > a.size() ) { > if ( ioIndex >= a.size() ) { > return 0; > } else { > len = a.size() - ioIndex; > } > } > memcpy(p, a.data() + ioIndex, len); > ioIndex += len; > return len; >} ># 330 "../tools/qbuffer.cpp" >Q_LONG QBuffer::writeBlock( const char *p, Q_ULONG len ) >{ > if ( len == 0 ) > return 0; > > > if ( p == 0 ) { > qWarning( "QBuffer::writeBlock: Null pointer error" ); > return -1; > } > > > if ( !isOpen() ) { > qWarning( "QBuffer::writeBlock: Buffer not open" ); > return -1; > } > if ( !isWritable() ) { > qWarning( "QBuffer::writeBlock: Write operation not permitted" ); > return -1; > } > > if ( ioIndex + len > a_len ) { > Q_ULONG new_len = a_len + a_inc*((ioIndex+len-a_len)/a_inc+1); > if ( !a.resize( new_len ) ) { > > qWarning( "QBuffer::writeBlock: Memory allocation error" ); > > setStatus( 4 ); > return -1; > } > a_inc *= 2; > a_len = new_len; > a.shd->len = ioIndex + len; > } > memcpy( a.data()+ioIndex, p, len ); > ioIndex += len; > if ( a.shd->len < ioIndex ) > a.shd->len = ioIndex; > return len; >} > > > > > > >Q_LONG QBuffer::readLine( char *p, Q_ULONG maxlen ) >{ > > if ( p == 0 ) { > qWarning( "QBuffer::readLine: Null pointer error" ); > return -1; > } > > > if ( !isOpen() ) { > qWarning( "QBuffer::readLine: Buffer not open" ); > return -1; > } > if ( !isReadable() ) { > qWarning( "QBuffer::readLine: Read operation not permitted" ); > return -1; > } > > if ( maxlen == 0 ) > return 0; > Q_ULONG start = ioIndex; > char *d = a.data() + ioIndex; > maxlen--; > if ( a.size() - ioIndex < maxlen ) > maxlen = a.size() - ioIndex; > while ( maxlen-- ) { > if ( (*p++ = *d++) == '\n' ) > break; > } > *p = '\0'; > ioIndex = d - a.data(); > return ioIndex - start; >} > > > > > > >int QBuffer::getch() >{ > > if ( !isOpen() ) { > qWarning( "QBuffer::getch: Buffer not open" ); > return -1; > } > if ( !isReadable() ) { > qWarning( "QBuffer::getch: Read operation not permitted" ); > return -1; > } > > if ( ioIndex+1 > a.size() ) { > setStatus( 1 ); > return -1; > } > return uchar(*(a.data()+ioIndex++)); >} ># 446 "../tools/qbuffer.cpp" >int QBuffer::putch( int ch ) >{ > > if ( !isOpen() ) { > qWarning( "QBuffer::putch: Buffer not open" ); > return -1; > } > if ( !isWritable() ) { > qWarning( "QBuffer::putch: Write operation not permitted" ); > return -1; > } > > if ( ioIndex + 1 > a_len ) { > char buf[1]; > buf[0] = (char)ch; > if ( writeBlock(buf,1) != 1 ) > return -1; > } else { > *(a.data() + ioIndex++) = (char)ch; > if ( a.shd->len < ioIndex ) > a.shd->len = ioIndex; > } > return ch; >} > > > > > >int QBuffer::ungetch( int ch ) >{ > > if ( !isOpen() ) { > qWarning( "QBuffer::ungetch: Buffer not open" ); > return -1; > } > if ( !isReadable() ) { > qWarning( "QBuffer::ungetch: Read operation not permitted" ); > return -1; > } > > if ( ch != -1 ) { > if ( ioIndex ) > ioIndex--; > else > ch = -1; > } > return ch; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 94892
: 60505 |
60506