projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
you can compare colors now
[supertux.git]
/
src
/
file_system.hpp
diff --git
a/src/file_system.hpp
b/src/file_system.hpp
index
306fbc9
..
b821188
100644
(file)
--- a/
src/file_system.hpp
+++ b/
src/file_system.hpp
@@
-27,6
+27,12
@@
namespace FileSystem
{
std::string dirname(const std::string& filename);
std::string basename(const std::string& filename);
{
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"
/**
* normalize filename so that "blup/bla/blo/../../bar" will become
* "blup/bar"
@@
-35,4
+41,3
@@
namespace FileSystem
}
#endif
}
#endif
-