From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdoctools/xslt.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kdoctools/xslt.cpp') diff --git a/kdoctools/xslt.cpp b/kdoctools/xslt.cpp index 216773e7d..13a2ac9ac 100644 --- a/kdoctools/xslt.cpp +++ b/kdoctools/xslt.cpp @@ -140,14 +140,14 @@ TQString splitOut(const TQString &parsed, int index) TQString filedata; while (true) { - int endindex = parsed.find("", index); - int startindex = parsed.find("", index); + int startindex = parsed.tqfind(" 0) { if (startindex < endindex) { - // kdDebug() << "finding another" << endl; + // kdDebug() << "tqfinding another" << endl; index = startindex + 8; inside++; } else { @@ -166,16 +166,16 @@ TQString splitOut(const TQString &parsed, int index) } - index = filedata.find(" 0) { - int endindex = filedata.findRev(""); + int endindex = filedata.tqfindRev(""); while (filedata.at(endindex) != '>') endindex++; endindex++; filedata = filedata.left(index) + filedata.mid(endindex); } - // filedata.replace(TQRegExp(">"), "\n>"); + // filedata.tqreplace(TQRegExp(">"), "\n>"); return filedata; } @@ -336,7 +336,7 @@ TQCString fromUnicode( const TQString &data ) buffer_len += test.length(); } else { TQString res; - res.sprintf( "&#%d;", part.at( i ).unicode() ); + res.sprintf( "&#%d;", part.at( i ).tqunicode() ); test = locale->fromUnicode( res ); if (buffer_len + test.length() + 1 > sizeof(buffer)) break; @@ -350,10 +350,10 @@ TQCString fromUnicode( const TQString &data ) return result; } -void replaceCharsetHeader( TQString &output ) +void tqreplaceCharsetHeader( TQString &output ) { TQString name = TQTextCodec::codecForLocale()->name(); - name.replace( TQString( "ISO " ), "iso-" ); - output.replace( TQString( "" ), + name.tqreplace( TQString( "ISO " ), "iso-" ); + output.tqreplace( TQString( "" ), TQString( "" ).arg( name ) ); } -- cgit v1.2.1