summaryrefslogtreecommitdiffstats
path: root/kdoctools/xslt.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdoctools/xslt.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
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
Diffstat (limited to 'kdoctools/xslt.cpp')
-rw-r--r--kdoctools/xslt.cpp20
1 files changed, 10 insertions, 10 deletions
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("</FILENAME>", index);
- int startindex = parsed.find("<FILENAME ", index) + 1;
+ int endindex = parsed.tqfind("</FILENAME>", index);
+ int startindex = parsed.tqfind("<FILENAME ", index) + 1;
// kdDebug() << "FILENAME " << startindex << " " << endindex << " " << inside << " " << parsed.mid(startindex + 18, 15)<< " " << parsed.length() << endl;
if (startindex > 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("<FILENAME ");
+ index = filedata.tqfind("<FILENAME ");
if (index > 0) {
- int endindex = filedata.findRev("</FILENAME>");
+ int endindex = filedata.tqfindRev("</FILENAME>");
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( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" ),
+ name.tqreplace( TQString( "ISO " ), "iso-" );
+ output.tqreplace( TQString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" ),
TQString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%1\">" ).arg( name ) );
}