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 | 0813b39aed2cf4c84157a22c4c9594336d93d412 (patch) | |
tree | 0f6157f9c9ecc6ed26cb98f058219a8021d3f4a6 /kbabel/common/poinfo.cpp | |
parent | 35dc58791106d7a1864264063df5f3ee3f1f0f15 (diff) | |
download | tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.tar.gz tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/common/poinfo.cpp')
-rw-r--r-- | kbabel/common/poinfo.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kbabel/common/poinfo.cpp b/kbabel/common/poinfo.cpp index 173c369d..63a01d38 100644 --- a/kbabel/common/poinfo.cpp +++ b/kbabel/common/poinfo.cpp @@ -209,7 +209,7 @@ bool PoInfo::cacheFind(const TQString url, PoInfo& info) cacheRead(); } - poInfoCacheItem *item = _poInfoCache.tqfind( url ); + poInfoCacheItem *item = _poInfoCache.find( url ); if( item ) { TQFileInfo fi( url ); @@ -297,7 +297,7 @@ PoInfo PoInfo::headerInfo(const CatalogItem& headerItem) { bool knownKey=false; // We search for the : character, which is the separator between key and value - const int res=(*it).tqfind(':'); + const int res=(*it).find(':'); if (res>=0) { knownKey=true; // We know most keys, if not it will be changed to false in the "else" case @@ -415,7 +415,7 @@ ConversiontqStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList { success=OK; - if( temp.comment().tqcontains("\n#~") ) continue; // skip obsolete + if( temp.comment().contains("\n#~") ) continue; // skip obsolete if( temp.msgid().first().isEmpty()) //header { @@ -453,7 +453,7 @@ ConversiontqStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList { TQString w = sl.first(); sl.pop_front(); - if( !wordList.tqcontains(w) ) wordList.append( w ); + if( !wordList.contains(w) ) wordList.append( w ); } st = temp.msgstr().join(" " ).simplifyWhiteSpace().lower(); sl = TQStringList::split( ' ', st ); @@ -461,7 +461,7 @@ ConversiontqStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList { TQString w = sl.first(); sl.pop_front(); - if( !wordList.tqcontains(w) ) wordList.append( w ); + if( !wordList.contains(w) ) wordList.append( w ); } st = temp.comment().simplifyWhiteSpace().lower(); sl = TQStringList::split( ' ', st ); @@ -469,7 +469,7 @@ ConversiontqStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList { TQString w = sl.first(); sl.pop_front(); - if( !wordList.tqcontains(w) ) wordList.append( w ); + if( !wordList.contains(w) ) wordList.append( w ); } } } @@ -560,15 +560,15 @@ bool PoInfo::findInFile( const TQString& url, FindOptions options ) if( options.isRegExp ) pos=regexp.search(text, 0 ); else - pos=text.tqfind(searchStr,0,options.caseSensitive); + pos=text.find(searchStr,0,options.caseSensitive); if( pos >= 0) { if( options.wholeWords) { len = searchStr.length(); TQString pre = text.mid(pos-1,1); TQString post = text.mid(pos+len,1); - if( !pre.tqcontains( TQRegExp("[a-zA-Z0-9]")) && - !post.tqcontains( TQRegExp("[a-zA-Z0-9]") ) + if( !pre.contains( TQRegExp("[a-zA-Z0-9]")) && + !post.contains( TQRegExp("[a-zA-Z0-9]") ) ) { delete lexer; delete stream; @@ -601,7 +601,7 @@ bool PoInfo::findInFile( const TQString& url, FindOptions options ) if( options.ignoreAccelMarker ) { - pos = text.tqfind( options.accelMarker ); + pos = text.find( options.accelMarker ); if( pos >= 0 ) text.remove( pos, 1 ); } @@ -609,7 +609,7 @@ bool PoInfo::findInFile( const TQString& url, FindOptions options ) if( options.isRegExp ) pos=regexp.search(text, 0 ); else - pos=text.tqfind(searchStr,0,options.caseSensitive); + pos=text.find(searchStr,0,options.caseSensitive); if( pos >= 0) { @@ -617,8 +617,8 @@ bool PoInfo::findInFile( const TQString& url, FindOptions options ) len = searchStr.length(); TQString pre = text.mid(pos-1,1); TQString post = text.mid(pos+len,1); - if( !pre.tqcontains( TQRegExp("[a-zA-Z0-9]")) && - !post.tqcontains( TQRegExp("[a-zA-Z0-9]") ) + if( !pre.contains( TQRegExp("[a-zA-Z0-9]")) && + !post.contains( TQRegExp("[a-zA-Z0-9]") ) ) { delete lexer; delete stream; @@ -758,7 +758,7 @@ ConversiontqStatus PoInfo::fastRead( CatalogItem& item, GettextFlexLexer *lexer, { TQStringList msgstrs = item.msgstr(); TQString s = TQString::fromUtf8(lexer->YYText()); - while( lexer->lastToken == T_MSGSTR && s.tqcontains( TQRegExp("^msgstr\\[[0-9]+\\]" ) ) ) + while( lexer->lastToken == T_MSGSTR && s.contains( TQRegExp("^msgstr\\[[0-9]+\\]" ) ) ) { if( lexer->yylex() != T_STRING ) return PARSE_ERROR; it = msgstrs.fromLast(); @@ -778,4 +778,4 @@ ConversiontqStatus PoInfo::fastRead( CatalogItem& item, GettextFlexLexer *lexer, return OK; } -// kate: space-indent on; indent-width 4; tqreplace-tabs on; +// kate: space-indent on; indent-width 4; replace-tabs on; |