diff options
Diffstat (limited to 'src/iso6937converter.cpp')
-rw-r--r-- | src/iso6937converter.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/iso6937converter.cpp b/src/iso6937converter.cpp index 3a3bcfb..1651f60 100644 --- a/src/iso6937converter.cpp +++ b/src/iso6937converter.cpp @@ -24,13 +24,13 @@ #include "iso6937converter.h" #include "tellico_debug.h" -#include <qstring.h> +#include <tqstring.h> using Tellico::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) { @@ -38,7 +38,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; @@ -69,7 +69,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 @@ -88,11 +88,11 @@ QChar Iso6937Converter::getChar(uchar c) { case 0xA8: return 0x00A4; // 10/08 CURRENCY SIGN case 0xA9: - return 0x2018; // 10/09 LEFT SINGLE QUOTATION MARK + return 0x2018; // 10/09 LEFT SINGLE TQUOTATION MARK case 0xAA: - return 0x201C; // 10/10 LEFT DOUBLE QUOTATION MARK + return 0x201C; // 10/10 LEFT DOUBLE TQUOTATION MARK case 0xAB: - return 0x00AB; // 10/11 LEFT-POINTING DOUBLE ANGLE QUOTATION MARK + return 0x00AB; // 10/11 LEFT-POINTING DOUBLE ANGLE TQUOTATION MARK case 0xAC: return 0x2190; // 10/12 LEFTWARDS ARROW case 0xAD: @@ -121,17 +121,17 @@ QChar Iso6937Converter::getChar(uchar c) { case 0xB8: return 0x00F7; // 11/08 DIVISION SIGN case 0xB9: - return 0x2019; // 11/09 RIGHT SINGLE QUOTATION MARK + return 0x2019; // 11/09 RIGHT SINGLE TQUOTATION MARK case 0xBA: - return 0x201D; // 11/10 RIGHT DOUBLE QUOTATION MARK + return 0x201D; // 11/10 RIGHT DOUBLE TQUOTATION MARK case 0xBB: - return 0x00BB; // 11/11 RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK + return 0x00BB; // 11/11 RIGHT-POINTING DOUBLE ANGLE TQUOTATION MARK case 0xBC: - return 0x00BC; // 11/12 VULGAR FRACTION ONE QUARTER + return 0x00BC; // 11/12 VULGAR FRACTION ONE TQUARTER case 0xBD: return 0x00BD; // 11/13 VULGAR FRACTION ONE HALF case 0xBE: - return 0x00BE; // 11/14 VULGAR FRACTION THREE QUARTERS + return 0x00BE; // 11/14 VULGAR FRACTION THREE TQUARTERS case 0xBF: return 0x00BF; // 11/15 INVERTED QUESTION MARK @@ -231,7 +231,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) @@ -592,6 +592,6 @@ QChar Iso6937Converter::getCombiningChar(uint c) { default: myDebug() << "Iso6937Converter::getCombiningChar() - no match for " << c << endl; - return QChar(); + return TQChar(); } } |