diff options
Diffstat (limited to 'tdefilereplace/tdefilereplacelib.cpp')
-rw-r--r-- | tdefilereplace/tdefilereplacelib.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tdefilereplace/tdefilereplacelib.cpp b/tdefilereplace/tdefilereplacelib.cpp index 4246fc8..90c8ef4 100644 --- a/tdefilereplace/tdefilereplacelib.cpp +++ b/tdefilereplace/tdefilereplacelib.cpp @@ -64,31 +64,6 @@ TQString TDEFileReplaceLib::formatFullPath(const TQString& basePath, const TQStr return fullPath; } -/** - Add an extension to a filename, or a filepath - Parameters::.....* fileName: filename or filepath (it can have already the extension) - .................* extension: extension to add without "." (ex: "html", "kfr") - Return values:...* Filename / Filepath with the extension -*/ -TQString TDEFileReplaceLib::addExtension(const TQString& fileName, const TQString& extension) -{ - TQString fullExtension = "."; - TQString fname = fileName; - - fullExtension.append(extension); - - // filename cannot contain ".ext" ==> Add it - if(fname.length() <= fullExtension.length()) - fname.append(fullExtension); - else // filename can contain ".ext" - { - if (fname.right(fullExtension.length()) != fullExtension) - fname.append(fullExtension); - } - - return fname; -} - TQString TDEFileReplaceLib::formatFileSize(double size) { TQString stringSize; |