ALPSCore reference
remove_extensions.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3  * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4  * For use in publications, see ACKNOWLEDGE.TXT
5  */
6 
7 #ifndef ALPS_UTILITY_FS_REMOVE_EXTENSIONS_HPP
8 #define ALPS_UTILITY_FS_REMOVE_EXTENSIONS_HPP
9 
10 #include <string>
11 
12 namespace alps { namespace fs {
17  std::string remove_extensions(const std::string& filename);
18 } }
19 #endif // ALPS_UTILITY_FS_REMOVE_EXTENSIONS_HPP
std::string remove_extensions(const std::string &filename)
Returns the file name stem with ALL extensions removed.