fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / file_system.hpp
index 306fbc9..b821188 100644 (file)
@@ -27,6 +27,12 @@ namespace FileSystem
 {
   std::string dirname(const std::string& filename);
   std::string basename(const std::string& filename);
+
+  /**
+   * remove everything starting from and including the last dot
+   */
+  std::string strip_extension(const std::string& filename);
+
   /**
    * normalize filename so that "blup/bla/blo/../../bar" will become
    * "blup/bar"
@@ -35,4 +41,3 @@ namespace FileSystem
 }
 
 #endif
-