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 | 330c33ab6f97b279737bf9527c9add7bb1475450 (patch) | |
tree | 85cb998d3077ae295d65944ebb4d0189fc660ead /lib/util/filetemplate.cpp | |
parent | 093de0db4fea89b3f94a2359c6981f353d035eb7 (diff) | |
download | tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/util/filetemplate.cpp')
-rw-r--r-- | lib/util/filetemplate.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/util/filetemplate.cpp b/lib/util/filetemplate.cpp index f153642f..c3538040 100644 --- a/lib/util/filetemplate.cpp +++ b/lib/util/filetemplate.cpp @@ -73,15 +73,15 @@ TQString FileTemplate::makeSubstitutions( TQDomDocument & dom, const TQString & TQString year = TQString::number(TQDate::tqcurrentDate().year()); TQString str = text; - str.tqreplace(TQRegExp("\\$EMAIL\\$"),email); - str.tqreplace(TQRegExp("\\$AUTHOR\\$"),author); - str.tqreplace(TQRegExp("\\$VERSION\\$"),version); - str.tqreplace(TQRegExp("\\$DATE\\$"),date); - str.tqreplace(TQRegExp("\\$YEAR\\$"),year); - str.tqreplace(TQRegExp("\\$APPNAME\\$"),appname); - str.tqreplace(TQRegExp("\\$APPNAME\\$"),appname); - str.tqreplace(TQRegExp("\\$APPNAMEUC\\$"),appname.upper()); - str.tqreplace(TQRegExp("\\$APPNAMELC\\$"),appname.lower()); + str.replace(TQRegExp("\\$EMAIL\\$"),email); + str.replace(TQRegExp("\\$AUTHOR\\$"),author); + str.replace(TQRegExp("\\$VERSION\\$"),version); + str.replace(TQRegExp("\\$DATE\\$"),date); + str.replace(TQRegExp("\\$YEAR\\$"),year); + str.replace(TQRegExp("\\$APPNAME\\$"),appname); + str.replace(TQRegExp("\\$APPNAME\\$"),appname); + str.replace(TQRegExp("\\$APPNAMEUC\\$"),appname.upper()); + str.replace(TQRegExp("\\$APPNAMELC\\$"),appname.lower()); return str; } @@ -99,8 +99,8 @@ bool FileTemplate::copy(KDevPlugin *part, const TQString &name, TQFileInfo fi(f); TQString module = fi.baseName(); TQString basefilename = fi.baseName(true); - text.tqreplace(TQRegExp("\\$MODULE\\$"),module); - text.tqreplace(TQRegExp("\\$FILENAME\\$"),basefilename); + text.replace(TQRegExp("\\$MODULE\\$"),module); + text.replace(TQRegExp("\\$FILENAME\\$"),basefilename); TQTextStream stream(&f); stream << text; |