summaryrefslogtreecommitdiffstats
path: root/src/iso6937converter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/iso6937converter.cpp')
-rw-r--r--src/iso6937converter.cpp14
1 files changed, 7 insertions, 7 deletions
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 <kdebug.h>
-#include <qstring.h>
+#include <ntqstring.h>
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();
}
}