From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 12:56:53 +0200 Subject: Initial TQt conversion --- src/iso6937converter.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/iso6937converter.cpp') diff --git a/src/iso6937converter.cpp b/src/iso6937converter.cpp index 66a5154..d55b310 100644 --- a/src/iso6937converter.cpp +++ b/src/iso6937converter.cpp @@ -33,13 +33,13 @@ #include "iso6937converter.h" #include -#include +#include using KBibTeX::Iso6937Converter; -QString Iso6937Converter::toUtf8(const QCString& text_) { +TQString Iso6937Converter::toUtf8(const TQCString& text_) { const uint len = text_.length(); - QString result; + TQString result; result.reserve(len); uint pos = 0; for(uint i = 0; i < len; ++i) { @@ -47,7 +47,7 @@ QString Iso6937Converter::toUtf8(const QCString& text_) { if(isAscii(c)) { result[pos++] = c; } else if(isCombining(c) && hasNext(i, len)) { - QChar d = getCombiningChar(c * 256 + text_[i + 1]); + TQChar d = getCombiningChar(c * 256 + text_[i + 1]); if(!d.isNull()) { result[pos++] = d; ++i; @@ -78,7 +78,7 @@ bool Iso6937Converter::isCombining(uchar c) { } // Source : http://anubis.dkuug.dk/JTC1/SC2/WG3/docs/6937cd.pdf -QChar Iso6937Converter::getChar(uchar c) { +TQChar Iso6937Converter::getChar(uchar c) { switch(c) { case 0xA0: return 0x00A0; // 10/00 NO-BREAK SPACE @@ -240,7 +240,7 @@ QChar Iso6937Converter::getChar(uchar c) { } } -QChar Iso6937Converter::getCombiningChar(uint c) { +TQChar Iso6937Converter::getCombiningChar(uint c) { switch(c) { // 12/00 (This position shall not be used) @@ -601,6 +601,6 @@ QChar Iso6937Converter::getCombiningChar(uint c) { default: kdDebug() << "Iso6937Converter::getCombiningChar() - no match for " << c << endl; - return QChar(); + return TQChar(); } } -- cgit v1.2.3