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/regexpextractor.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/regexpextractor.cpp')
-rw-r--r-- | kbabel/common/regexpextractor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kbabel/common/regexpextractor.cpp b/kbabel/common/regexpextractor.cpp index d07c36ed..6160884c 100644 --- a/kbabel/common/regexpextractor.cpp +++ b/kbabel/common/regexpextractor.cpp @@ -140,7 +140,7 @@ TQString RegExpExtractor::plainString(bool keepPos) { s+=' '; } - tmp.tqreplace(ti->index,len,s); + tmp.replace(ti->index,len,s); } if(!keepPos) @@ -151,18 +151,18 @@ TQString RegExpExtractor::plainString(bool keepPos) return tmp; } -TQString RegExpExtractor::matchesReplaced(const TQString& tqreplace) +TQString RegExpExtractor::matchesReplaced(const TQString& replace) { TQString tmp=_string; int posCorrection=0; - int replaceLen=tqreplace.length(); + int replaceLen=replace.length(); MatchedEntryInfo *ti; for(ti=_matches.first(); ti != 0; ti=_matches.next()) { uint len=ti->extracted.length(); - tmp.tqreplace(ti->index + posCorrection,len,tqreplace); + tmp.replace(ti->index + posCorrection,len,replace); posCorrection+=(replaceLen-len); } @@ -213,7 +213,7 @@ void RegExpExtractor::processString() { s+=' '; } - tmp.tqreplace(pos,tag.length(),s); + tmp.replace(pos,tag.length(),s); break; } |