diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 627b091fad9df13695f249588e8a58f524eda0fa (patch) | |
tree | 98ff502a8743af48d8b88996e9a494fec4110586 /kate/xmltools/pseudo_dtd.cpp | |
parent | f6e9c8d694be3d1df338b385125e13db41af0b1f (diff) | |
download | tdeaddons-627b091fad9df13695f249588e8a58f524eda0fa.tar.gz tdeaddons-627b091fad9df13695f249588e8a58f524eda0fa.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/xmltools/pseudo_dtd.cpp')
-rw-r--r-- | kate/xmltools/pseudo_dtd.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kate/xmltools/pseudo_dtd.cpp b/kate/xmltools/pseudo_dtd.cpp index e0376d4..51d1fe3 100644 --- a/kate/xmltools/pseudo_dtd.cpp +++ b/kate/xmltools/pseudo_dtd.cpp @@ -169,7 +169,7 @@ bool PseudoDTD::parseElements( TQDomDocument *doc, TQProgressDialog *progress ) TQDomElement subElem = subNode.toElement(); if( !subElem.isNull() ) { - TQMap<TQString,bool>::Iterator it = subelementList.tqfind( subElem.attribute( "name" ) ); + TQMap<TQString,bool>::Iterator it = subelementList.find( subElem.attribute( "name" ) ); if( it != subelementList.end() ) subelementList.remove(it); } @@ -208,7 +208,7 @@ TQStringList PseudoDTD::allowedElements( TQString parentElement ) return it.data(); } } - else if( m_elementsList.tqcontains(parentElement) ) + else if( m_elementsList.contains(parentElement) ) return m_elementsList[parentElement]; return TQStringList(); @@ -275,7 +275,7 @@ TQStringList PseudoDTD::allowedAttributes( TQString element ) } } } - else if( m_attributesList.tqcontains(element) ) + else if( m_attributesList.contains(element) ) return m_attributesList[element].optionalAttributes + m_attributesList[element].requiredAttributes; return TQStringList(); @@ -292,7 +292,7 @@ TQStringList PseudoDTD::requiredAttributes( const TQString &element ) const return it.data().requiredAttributes; } } - else if( m_attributesList.tqcontains(element) ) + else if( m_attributesList.contains(element) ) return m_attributesList[element].requiredAttributes; return TQStringList(); @@ -369,10 +369,10 @@ TQStringList PseudoDTD::attributeValues( TQString element, TQString attribute ) } } } - else if( m_attributevaluesList.tqcontains(element) ) + else if( m_attributevaluesList.contains(element) ) { TQMap<TQString,TQStringList> attrVals = m_attributevaluesList[element]; - if( attrVals.tqcontains(attribute) ) + if( attrVals.contains(attribute) ) return attrVals[attribute]; } @@ -411,14 +411,14 @@ bool PseudoDTD::parseEntities( TQDomDocument *doc, TQProgressDialog *progress ) TQString exp = expandedElem.text(); // TODO: support more than one &#...; in the expanded text /* TODO include do this when the tqunicode font problem is solved: - if( exp.tqcontains(TQRegExp("^&#x[a-zA-Z0-9]+;$")) ) { + if( exp.contains(TQRegExp("^&#x[a-zA-Z0-9]+;$")) ) { // hexadecimal numbers, e.g. "ȶ" - uint end = exp.tqfind( ";" ); + uint end = exp.find( ";" ); exp = exp.mid( 3, end-3 ); exp = TQChar(); - } else if( exp.tqcontains(TQRegExp("^&#[0-9]+;$")) ) { + } else if( exp.contains(TQRegExp("^&#[0-9]+;$")) ) { // decimal numbers, e.g. "ì" - uint end = exp.tqfind( ";" ); + uint end = exp.find( ";" ); exp = exp.mid( 2, end-2 ); exp = TQChar( exp.toInt() ); } @@ -463,4 +463,4 @@ TQStringList PseudoDTD::entities( TQString start ) return entities; } -// kate: space-indent on; indent-width 2; tqreplace-tabs on; mixed-indent off; +// kate: space-indent on; indent-width 2; replace-tabs on; mixed-indent off; |