summaryrefslogtreecommitdiffstats
path: root/kbabel/datatools/xml
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/datatools/xml')
-rw-r--r--kbabel/datatools/xml/main.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/kbabel/datatools/xml/main.cc b/kbabel/datatools/xml/main.cc
index 57a6f785..229ce734 100644
--- a/kbabel/datatools/xml/main.cc
+++ b/kbabel/datatools/xml/main.cc
@@ -94,12 +94,12 @@ bool XMLTool::run( const TQString& command, void* data, const TQString& datatype
uint correctnessLevel = 0;
TQString msgid = item->msgid().first();
- msgid.tqreplace( "\\\"", "\"" ); // Change '\"' to '"'
- msgid.tqreplace( TQRegExp( "&(?![a-zA-Z0-9]+;)" ), "&" );
- msgid.tqreplace( _context, "" );
- msgid.tqreplace("\n",""); // delete newlines
+ msgid.replace( "\\\"", "\"" ); // Change '\"' to '"'
+ msgid.replace( TQRegExp( "&(?![a-zA-Z0-9]+;)" ), "&" );
+ msgid.replace( _context, "" );
+ msgid.replace("\n",""); // delete newlines
- if( _levelCache.tqcontains(msgid) )
+ if( _levelCache.contains(msgid) )
{
correctnessLevel = _levelCache[msgid];
}
@@ -134,8 +134,8 @@ bool XMLTool::run( const TQString& command, void* data, const TQString& datatype
for( TQStringList::Iterator form = str.begin() ; form != str.end() ; form++ )
{
TQString text=(*form);
- text.tqreplace( "\\\"", "\"" ); // Change '\"' to '"'
- text.tqreplace( TQRegExp( "&(?![a-zA-Z0-9]+;)" ), "&" );
+ text.replace( "\\\"", "\"" ); // Change '\"' to '"'
+ text.replace( TQRegExp( "&(?![a-zA-Z0-9]+;)" ), "&" );
// isNonCaseWithoutCommonCompliant can fail
// even though higher level checks works
@@ -189,16 +189,16 @@ bool XMLTool::isNonCaseWithoutCommonCompliant( const TQString& text)
TQDomDocument doc;
TQString test = text.lower();
TQRegExp rx( "(<br>)|(<hr>)|(<p>)||(<\\w+@(\\w+.)*\\w+>)" );
- test.tqreplace( rx, "" );
+ test.replace( rx, "" );
TQString a;
do
{
a = test;
- test.tqreplace( TQRegExp("<[^_:A-Za-z/]"), "" );
+ test.replace( TQRegExp("<[^_:A-Za-z/]"), "" );
} while( a!=test);
- test.tqreplace( TQRegExp("<$"), "" );
+ test.replace( TQRegExp("<$"), "" );
return doc.setContent("<para>" + test + "</para>" );
}