diff options
author | Vincent Bénony | 2015-12-02 14:43:54 +0100 |
---|---|---|
committer | Vincent Bénony | 2016-01-06 15:35:35 +0100 |
commit | a8d65195cea6ae0860520f5132faf36781ce135d (patch) | |
tree | 127d50c19095b9e014b4990eb6ee4f55e5d9863f /devtools/create_project/create_project.h | |
parent | ef2903c50972fedc45aba5749a6ce238d0d723a3 (diff) | |
download | scummvm-rg350-a8d65195cea6ae0860520f5132faf36781ce135d.tar.gz scummvm-rg350-a8d65195cea6ae0860520f5132faf36781ce135d.tar.bz2 scummvm-rg350-a8d65195cea6ae0860520f5132faf36781ce135d.zip |
IOS: Adds an helper function
Diffstat (limited to 'devtools/create_project/create_project.h')
-rw-r--r-- | devtools/create_project/create_project.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devtools/create_project/create_project.h b/devtools/create_project/create_project.h index b81576d4ed..fdcc629382 100644 --- a/devtools/create_project/create_project.h +++ b/devtools/create_project/create_project.h @@ -316,6 +316,17 @@ std::string convertPathToWin(const std::string &path); void splitFilename(const std::string &fileName, std::string &name, std::string &ext); /** + * Returns the basename of a path. + * examples: + * a/b/c/d.ext -> d.ext + * d.ext -> d.ext + * + * @param fileName Filename + * @return The basename + */ +std::string basename(const std::string &fileName); + +/** * Checks whether the given file will produce an object file or not. * * @param fileName Name of the file. |