3 * Copyright (c) 2003 Dr John Maddock
4 * Use, modification and distribution is subject to the
5 * Boost Software License, Version 1.0. (See accompanying file
6 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 #include <boost/regex.hpp>
15 boost::regex license_signature;
16 boost::regex copyright_signature;
17 std::string copyright_formatter;
18 std::string license_name;
19 std::string license_text;
21 // we should really be able to initialize license_info as an
22 // aggregate, but some compilers reject this, so use a constructor
25 license_info(const boost::regex& e1,
26 const boost::regex& e2,
27 const std::string& s1,
28 const std::string& s2,
29 const std::string& s3)
30 : license_signature(e1),
31 copyright_signature(e2),
32 copyright_formatter(s1),
37 std::pair<const license_info*, int> get_licenses();
39 std::string format_authors_name(const std::string& name);