1 | /* |
2 | * |
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) |
7 | * |
8 | */ |
9 | |
10 | #include <boost/regex.hpp> |
11 | #include <utility> |
12 | |
13 | struct license_info |
14 | { |
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; |
20 | // |
21 | // we should really be able to initialize license_info as an |
22 | // aggregate, but some compilers reject this, so use a constructor |
23 | //instead: |
24 | // |
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), |
33 | license_name(s2), |
34 | license_text(s3){} |
35 | }; |
36 | |
37 | std::pair<const license_info*, int> get_licenses(); |
38 | |
39 | std::string format_authors_name(const std::string& name); |
40 | |