ALPSCore reference
get_extension.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_GET_EXTENSION_HPP_f91a77f5077b4f85bc17e9071b47449d
8 #define ALPS_UTILITY_FS_GET_EXTENSION_HPP_f91a77f5077b4f85bc17e9071b47449d
9 
10 #include <string>
11 
12 namespace alps { namespace fs {
17  std::string get_extension(const std::string& filename);
18 } }
19 #endif /* ALPS_UTILITY_FS_GET_EXTENSION_HPP_f91a77f5077b4f85bc17e9071b47449d */
std::string get_extension(const std::string &filename)
Returns the file name extension.