
On Fri, Jul 4, 2008 at 12:35, Vladimir Prus <vladimir@codesourcery.com> wrote:
Furthermore, I do think we need to pay attention to Qt's suffix vs. completeSuffix distinction -- it seems useful one.
What is that?
backup.tar.bz2
Here, you might want to look at either "top-level" file type -- ".bz2" here, or at everything after first dot -- ".tar.bz2", depending on what you want to do.
I very strongly dislike that concept. It can be done much better treating extension() and stem() like head() and tail(), and iterating. And a quick peek at my filesystem finds such things as these: /usr/portage/distfiles/boost-jam-3.1.4.tgz /usr/portage/distfiles/automake-1.8.5.tar.bz2 /usr/portage/distfiles/binutils-2.16.1-patches-1.9.tar.bz2 /usr/portage/distfiles/gcc-3.4.6-piepatches-v8.7.10.tar.bz2 /usr/portage/distfiles/linux-2.6.17-m68k-headers.patch.bz2 /usr/portage/distfiles/mozilla-firefox-2.0.0.6-fr.xpi /usr/portage/distfiles/nerolinux-3.0.1.3-x86_64.rpm /usr/portage/distfiles/NVIDIA-Linux-x86_64-100.14.09-pkg2.run Where "everything after the first dot" is *never* of use to anyone.