summaryrefslogtreecommitdiffstats
path: root/kdoctools/xslt.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
commit10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch)
tree4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdoctools/xslt.cpp
parent307136d8eef0ba133b78ceee8e901138d4c996a1 (diff)
downloadtdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz
tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 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 13a2ac9ac..216773e7d 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.tqfind("</FILENAME>", index);
- int startindex = parsed.tqfind("<FILENAME ", index) + 1;
+ int endindex = parsed.find("</FILENAME>", index);
+ int startindex = parsed.find("<FILENAME ", index) + 1;
// kdDebug() << "FILENAME " << startindex << " " << endindex << " " << inside << " " << parsed.mid(startindex + 18, 15)<< " " << parsed.length() << endl;
if (startindex > 0) {
if (startindex < endindex) {
- // kdDebug() << "tqfinding another" << endl;
+ // kdDebug() << "finding another" << endl;
index = startindex + 8;
inside++;
} else {
@@ -166,16 +166,16 @@ TQString splitOut(const TQString &parsed, int index)
}
- index = filedata.tqfind("<FILENAME ");
+ index = filedata.find("<FILENAME ");
if (index > 0) {
- int endindex = filedata.tqfindRev("</FILENAME>");
+ int endindex = filedata.findRev("</FILENAME>");
while (filedata.at(endindex) != '>') endindex++;
endindex++;
filedata = filedata.left(index) + filedata.mid(endindex);
}
- // filedata.tqreplace(TQRegExp(">"), "\n>");
+ // filedata.replace(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 ).tqunicode() );
+ res.sprintf( "&#%d;", part.at( i ).unicode() );
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 tqreplaceCharsetHeader( TQString &output )
+void replaceCharsetHeader( TQString &output )
{
TQString name = TQTextCodec::codecForLocale()->name();
- name.tqreplace( TQString( "ISO " ), "iso-" );
- output.tqreplace( TQString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" ),
+ name.replace( TQString( "ISO " ), "iso-" );
+ output.replace( 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 ) );
}