summaryrefslogtreecommitdiffstats
path: root/src/encoderxml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoderxml.cpp')
-rw-r--r--src/encoderxml.cpp26
1 files changed, 13 insertions, 13 deletions
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 <qregexp.h>
+#include <ntqregexp.h>
#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<CharMappingItem>::ConstIterator it = m_charMapping.begin(); it != m_charMapping.end(); ++it )
+ for ( TQValueList<CharMappingItem>::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<CharMappingItem>::ConstIterator it = m_charMapping.begin(); it != m_charMapping.end(); ++it )
+ for ( TQValueList<CharMappingItem>::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 );
}
}