summaryrefslogtreecommitdiffstats
path: root/src/iso6937converter.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-06-29 12:56:53 +0200
committerSlávek Banko <[email protected]>2013-07-04 03:11:35 +0200
commit5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch)
treec8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/iso6937converter.cpp
parent251c9a439759c830d34c70683d0fc9454d703010 (diff)
downloadkbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz
kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip
Initial TQt conversion
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();
}
}