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/encoderxml.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/encoderxml.cpp') diff --git a/src/encoderxml.cpp b/src/encoderxml.cpp index bbb76dd..5c8d1ea 100644 --- a/src/encoderxml.cpp +++ b/src/encoderxml.cpp @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include +#include #include "encoderxml.h" @@ -51,11 +51,11 @@ namespace BibTeX // nothing } - QString EncoderXML::decode( const QString &text ) + TQString EncoderXML::decode( const TQString &text ) { - QString result = text; + TQString result = text; - for ( QValueList::ConstIterator it = m_charMapping.begin(); it != m_charMapping.end(); ++it ) + for ( TQValueList::ConstIterator it = m_charMapping.begin(); it != m_charMapping.end(); ++it ) result.replace(( *it ).regExp, ( *it ).unicode ); /** @@ -69,7 +69,7 @@ namespace BibTeX bool ok = FALSE; int hex = result.mid( p + 3, p2 - p - 3 ).toInt( &ok, 16 ); if ( ok && hex > 0 ) - result.replace( result.mid( p, p2 - p + 1 ), QChar( hex ) ); + result.replace( result.mid( p, p2 - p + 1 ), TQChar( hex ) ); } /** @@ -83,23 +83,23 @@ namespace BibTeX bool ok = FALSE; int dec = result.mid( p + 2, p2 - p - 2 ).toInt( &ok, 10 ); if ( ok && dec > 0 ) - result.replace( result.mid( p, p2 - p + 1 ), QChar( dec ) ); + result.replace( result.mid( p, p2 - p + 1 ), TQChar( dec ) ); } return result; } - QString EncoderXML::encode( const QString &text ) + TQString EncoderXML::encode( const TQString &text ) { - QString result = text; + TQString result = text; - for ( QValueList::ConstIterator it = m_charMapping.begin(); it != m_charMapping.end(); ++it ) + for ( TQValueList::ConstIterator it = m_charMapping.begin(); it != m_charMapping.end(); ++it ) result.replace(( *it ).unicode, ( *it ).latex ); return result; } - QString EncoderXML::encodeSpecialized( const QString &text, const EntryField::FieldType /* fieldType */ ) + TQString EncoderXML::encodeSpecialized( const TQString &text, const EntryField::FieldType /* fieldType */ ) { return encode( text ); } @@ -109,9 +109,9 @@ namespace BibTeX for ( int i = 0; i < charmappingdataxmlcount; i++ ) { CharMappingItem charMappingItem; - charMappingItem.regExp = QRegExp( charmappingdataxml[ i ].regexp ); - charMappingItem.unicode = QChar( charmappingdataxml[ i ].unicode ); - charMappingItem.latex = QString( charmappingdataxml[ i ].latex ); + charMappingItem.regExp = TQRegExp( charmappingdataxml[ i ].regexp ); + charMappingItem.unicode = TQChar( charmappingdataxml[ i ].unicode ); + charMappingItem.latex = TQString( charmappingdataxml[ i ].latex ); m_charMapping.append( charMappingItem ); } } -- cgit v1.2.1