summaryrefslogtreecommitdiffstats
path: root/src/tools/qstring.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/tools/qstring.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/qstring.cpp')
-rw-r--r--src/tools/qstring.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/tools/qstring.cpp b/src/tools/qstring.cpp
index 6afe0687a..421ef009f 100644
--- a/src/tools/qstring.cpp
+++ b/src/tools/qstring.cpp
@@ -41,8 +41,8 @@
// Don't define it while compiling this module, or USERS of TQt will
// not be able to link.
-#ifdef QT_NO_CAST_ASCII
-#undef QT_NO_CAST_ASCII
+#ifdef TQT_NO_CAST_ASCII
+#undef TQT_NO_CAST_ASCII
#endif
// WARNING
@@ -53,7 +53,7 @@
#include "ntqstring.h"
#include "ntqregexp.h"
#include "ntqdatastream.h"
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
#include "ntqtextcodec.h"
#endif
#include "ntqlocale.h"
@@ -74,7 +74,7 @@
#if defined(Q_OS_LINUX)
#include <sys/mman.h>
#endif
-#if !defined( QT_NO_COMPONENT ) && !defined( QT_LITE_COMPONENT )
+#if !defined( TQT_NO_COMPONENT ) && !defined( QT_LITE_COMPONENT )
#include "ntqcleanuphandler.h"
#endif
@@ -575,7 +575,7 @@ bool TQChar::isSymbol() const
*/
int TQChar::digitValue() const
{
-#ifndef QT_NO_UNICODETABLES
+#ifndef TQT_NO_UNICODETABLES
register int pos = TQUnicodeTables::decimal_info[row()];
if( !pos )
return -1;
@@ -641,7 +641,7 @@ TQChar TQChar::mirroredChar() const
return ::mirroredChar( *this );
}
-#ifndef QT_NO_UNICODETABLES
+#ifndef TQT_NO_UNICODETABLES
// ### REMOVE ME 4.0
static TQString shared_decomp;
#endif
@@ -653,7 +653,7 @@ static TQString shared_decomp;
*/
const TQString &TQChar::decomposition() const
{
-#ifndef QT_NO_UNICODETABLES
+#ifndef TQT_NO_UNICODETABLES
register int pos = TQUnicodeTables::decomposition_info[row()];
if(!pos) return TQString::null;
@@ -680,7 +680,7 @@ const TQString &TQChar::decomposition() const
*/
TQChar::Decomposition TQChar::decompositionTag() const
{
-#ifndef QT_NO_UNICODETABLES
+#ifndef TQT_NO_UNICODETABLES
register int pos = TQUnicodeTables::decomposition_info[row()];
if(!pos) return TQChar::Single;
@@ -938,7 +938,7 @@ TQChar TQChar::upper() const
FALSE.
*/
-#ifndef QT_NO_UNICODETABLES
+#ifndef TQT_NO_UNICODETABLES
// small class used internally in TQString::Compose()
class TQLigature
@@ -1119,7 +1119,7 @@ void TQStringData::setDirty() {
*/
void TQString::compose()
{
-#ifndef QT_NO_UNICODETABLES
+#ifndef TQT_NO_UNICODETABLES
unsigned int index=0, len;
unsigned int cindex = 0;
@@ -1557,7 +1557,7 @@ TQString::TQString( int size, bool /*dummy*/ )
TQString::TQString( const TQByteArray& ba )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() ) {
d = 0;
*this = fromAscii( ba.data(), ba.size() );
@@ -1607,7 +1607,7 @@ TQString::TQString( const TQChar* unicode, uint length )
This is a cast constructor, but it is perfectly safe: converting a
Latin-1 \c{const char *} to TQString preserves all the information. You
- can disable this constructor by defining \c QT_NO_CAST_ASCII when
+ can disable this constructor by defining \c TQT_NO_CAST_ASCII when
you compile your applications. You can also make TQString objects
by using setLatin1(), fromLatin1(), fromLocal8Bit(), and
fromUtf8(). Or whatever encoding is appropriate for the 8-bit data
@@ -1618,7 +1618,7 @@ TQString::TQString( const TQChar* unicode, uint length )
TQString::TQString( const char *str )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() ) {
d = 0;
*this = fromAscii( str );
@@ -1639,7 +1639,7 @@ TQString::TQString( const char *str )
TQString::TQString( const std::string &str )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() ) {
d = 0;
*this = fromAscii( str.c_str() );
@@ -2604,7 +2604,7 @@ TQString TQString::multiArg( int numArgs, const TQString& a1, const TQString& a2
\sa arg()
*/
-#ifndef QT_NO_SPRINTF
+#ifndef TQT_NO_SPRINTF
TQString &TQString::sprintf(const char *cformat, ...)
{
va_list ap;
@@ -3509,7 +3509,7 @@ TQString TQString::section( const TQString &sep, int start, int end, int flags )
return ret;
}
-#ifndef QT_NO_REGEXP
+#ifndef TQT_NO_REGEXP
class section_chunk {
public:
section_chunk(int l, TQString s) { length = l; string = s; }
@@ -4107,11 +4107,11 @@ TQString &TQString::insert( uint index, const TQString &s )
a reference to the string.
*/
-#ifndef QT_NO_CAST_ASCII
+#ifndef TQT_NO_CAST_ASCII
TQString &TQString::insertHelper( uint index, const char *s, uint len )
{
if ( s ) {
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() )
return insert( index, fromAscii( s, len ) );
#endif
@@ -4399,7 +4399,7 @@ TQString &TQString::replace( TQChar c1, TQChar c2 )
return *this;
}
-#ifndef QT_NO_REGEXP_CAPTURE
+#ifndef TQT_NO_REGEXP_CAPTURE
/*! \overload
@@ -4657,7 +4657,7 @@ TQString &TQString::replace( const TQString & before, const TQString & after )
return replace( before, after, TRUE );
}
-#ifndef QT_NO_REGEXP_CAPTURE
+#ifndef TQT_NO_REGEXP_CAPTURE
/*! \overload
Replaces every occurrence of the regexp \a rx in the string with
@@ -4816,7 +4816,7 @@ TQString &TQString::replace( const TQRegExp &rx, const TQString &after )
}
#endif
-#ifndef QT_NO_REGEXP
+#ifndef TQT_NO_REGEXP
/*!
Finds the first match of the regular expression \a rx, starting
from position \a index. If \a index is -1, the search starts at
@@ -4894,7 +4894,7 @@ int TQString::contains( const TQRegExp &rx ) const
return count;
}
-#endif //QT_NO_REGEXP
+#endif //TQT_NO_REGEXP
/*!
Returns the string converted to a \c long using base \a
@@ -5798,11 +5798,11 @@ TQString& TQString::operator+=( const TQString &str )
return *this;
}
-#ifndef QT_NO_CAST_ASCII
+#ifndef TQT_NO_CAST_ASCII
TQString &TQString::operatorPlusEqHelper( const char *s, uint len2 )
{
if ( s ) {
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() )
return operator+=( fromAscii( s, len2 ) );
#endif
@@ -5828,7 +5828,7 @@ TQString &TQString::operatorPlusEqHelper( const char *s, uint len2 )
Appends \a str to the string and returns a reference to the string.
*/
-#ifndef QT_NO_CAST_ASCII
+#ifndef TQT_NO_CAST_ASCII
TQString& TQString::operator+=( const char *str )
{
// ### TQt 4: make this function inline
@@ -5856,7 +5856,7 @@ TQString &TQString::operator+=( TQChar c )
TQString &TQString::operator+=( char c )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() )
return operator+=( fromAscii( &c, 1 ) );
#endif
@@ -5929,7 +5929,7 @@ const char* TQString::latin1() const
*/
const char* TQString::ascii() const
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() ) {
if ( !d->ascii || d->islatin1 ) {
if (d->security_unpaged) {
@@ -5956,7 +5956,7 @@ const char* TQString::ascii() const
}
return d->ascii;
}
-#endif // QT_NO_TEXTCODEC
+#endif // TQT_NO_TEXTCODEC
return latin1();
}
@@ -6167,7 +6167,7 @@ TQString TQString::fromUtf8( const char* utf8, int len )
This is the same as the TQString(const char*) constructor, but you
can make that constructor invisible if you compile with the define
- \c QT_NO_CAST_ASCII, in which case you can explicitly create a
+ \c TQT_NO_CAST_ASCII, in which case you can explicitly create a
TQString from 8-bit ASCII text using this function.
\code
@@ -6177,7 +6177,7 @@ TQString TQString::fromUtf8( const char* utf8, int len )
*/
TQString TQString::fromAscii( const char* ascii, int len )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() ) {
if ( !ascii )
return TQString::null;
@@ -6235,7 +6235,7 @@ TQString TQString::fromLatin1( const char* chars, int len )
TQCString TQString::local8Bit() const
{
-#ifdef QT_NO_TEXTCODEC
+#ifdef TQT_NO_TEXTCODEC
return latin1();
#else
#ifdef Q_WS_X11
@@ -6277,7 +6277,7 @@ TQCString TQString::local8Bit() const
*/
TQString TQString::fromLocal8Bit( const char* local8Bit, int len )
{
-#ifdef QT_NO_TEXTCODEC
+#ifdef TQT_NO_TEXTCODEC
return fromLatin1( local8Bit, len );
#else
@@ -6305,7 +6305,7 @@ TQString TQString::fromLocal8Bit( const char* local8Bit, int len )
#ifdef Q_WS_QWS
return fromUtf8(local8Bit,len);
#endif
-#endif // QT_NO_TEXTCODEC
+#endif // TQT_NO_TEXTCODEC
}
/*!
@@ -6584,12 +6584,12 @@ TQString& TQString::setUnicodeCodes( const ushort* unicode_as_ushorts, uint len
TQString &TQString::setAscii( const char *str, int len )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( TQTextCodec::codecForCStrings() ) {
*this = TQString::fromAscii( str, len );
return *this;
}
-#endif // QT_NO_TEXTCODEC
+#endif // TQT_NO_TEXTCODEC
return setLatin1( str, len );
}
@@ -6755,7 +6755,7 @@ int TQString::localeAwareCompare( const TQString& s ) const
}
#elif defined(Q_WS_MACX)
int delta = 0;
-#if !defined(QT_NO_TEXTCODEC)
+#if !defined(TQT_NO_TEXTCODEC)
TQTextCodec *codec = TQTextCodec::codecForLocale();
if (codec)
delta = strcoll(codec->fromUnicode(*this), codec->fromUnicode(s));
@@ -7107,7 +7107,7 @@ bool operator>=( const char *s1, const TQString &s2 )
/*****************************************************************************
TQString stream functions
*****************************************************************************/
-#ifndef QT_NO_DATASTREAM
+#ifndef TQT_NO_DATASTREAM
/*!
\relates TQString
@@ -7212,7 +7212,7 @@ TQDataStream &operator>>( TQDataStream &s, TQString &str )
}
return s;
}
-#endif // QT_NO_DATASTREAM
+#endif // TQT_NO_DATASTREAM
/*****************************************************************************
TQConstString member functions
@@ -7439,7 +7439,7 @@ TQCString qt_winTQString2MB( const TQString& s, int uclen )
0, 0, 0, &used_def));
// and try again...
} else {
-#ifndef QT_NO_DEBUG
+#ifndef TQT_NO_DEBUG
// Fail.
tqWarning("WideCharToMultiByte cannot convert multibyte text (error %d): %s (UTF8)",
r, s.utf8().data());