diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-12-06 18:20:45 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-12-06 18:20:45 (GMT) |
commit | 6813ee0d373629968dc3ff9235285819e45f5707 (patch) | |
tree | db6a4cf330b3c7b7dc387321cabe709ba675e957 /qtools | |
parent | 4a50fc78170244f82c376bbecd28be43cc849da3 (diff) | |
download | Doxygen-6813ee0d373629968dc3ff9235285819e45f5707.zip Doxygen-6813ee0d373629968dc3ff9235285819e45f5707.tar.gz Doxygen-6813ee0d373629968dc3ff9235285819e45f5707.tar.bz2 |
Doxygen-1.3.9.1-20041206
Diffstat (limited to 'qtools')
-rw-r--r-- | qtools/qcstring.h | 8 | ||||
-rw-r--r-- | qtools/qstring.cpp | 8 | ||||
-rw-r--r-- | qtools/qstring.h | 1 | ||||
-rw-r--r-- | qtools/qtools.pro.in | 3 |
4 files changed, 19 insertions, 1 deletions
diff --git a/qtools/qcstring.h b/qtools/qcstring.h index 073a969..e735462 100644 --- a/qtools/qcstring.h +++ b/qtools/qcstring.h @@ -49,6 +49,8 @@ #include <strings.h> #endif +//#undef SMALLSTRING +#define SMALLSTRING /***************************************************************************** Fixes and workarounds for some platforms @@ -166,6 +168,11 @@ Q_EXPORT QDataStream &operator>>( QDataStream &, QByteArray & ); +#ifdef SMALLSTRING +#define SCString QCString +#include "scstring.h" +#else + /***************************************************************************** QCString class *****************************************************************************/ @@ -252,6 +259,7 @@ public: QCString &operator+=( char c ); }; +#endif /***************************************************************************** QCString stream functions diff --git a/qtools/qstring.cpp b/qtools/qstring.cpp index e13ffc8..4707fed 100644 --- a/qtools/qstring.cpp +++ b/qtools/qstring.cpp @@ -12212,6 +12212,14 @@ QString::QString( const QByteArray& ba ) d = new QStringData(uc,l,l); } +QString::QString( const QCString& ba ) +{ + Q2HELPER(stat_construct_ba++) + uint l; + QChar *uc = internalAsciiToUnicode(ba,&l); + d = new QStringData(uc,l,l); +} + /*! Constructs a string that is a deep copy of the first \a length QChar in the array \a unicode. diff --git a/qtools/qstring.h b/qtools/qstring.h index f131446..c64d756 100644 --- a/qtools/qstring.h +++ b/qtools/qstring.h @@ -353,6 +353,7 @@ public: QString( QChar ); // one-char string QString( const QString & ); // impl-shared copy QString( const QByteArray& ); // deep copy + QString( const QCString& ); // deep copy QString( const QChar* unicode, uint length ); // deep copy #ifndef QT_NO_CAST_ASCII QString( const char *str ); // deep copy diff --git a/qtools/qtools.pro.in b/qtools/qtools.pro.in index 37fc143..718803e 100644 --- a/qtools/qtools.pro.in +++ b/qtools/qtools.pro.in @@ -7,6 +7,7 @@ HEADERS = qarray.h \ qcollection.h \ qconfig.h \ qcstring.h \ + scstring.h \ qdatastream.h \ qdatetime.h \ qdict.h \ @@ -45,7 +46,7 @@ HEADERS = qarray.h \ qmodules.h SOURCES = qbuffer.cpp \ qcollection.cpp \ - qcstring.cpp \ + scstring.cpp \ qdatastream.cpp \ qdatetime.cpp \ qdir.cpp \ |