From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/tools/bcp/licence_info.hpp | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/boost/tools/bcp/licence_info.hpp (limited to 'src/boost/tools/bcp/licence_info.hpp') diff --git a/src/boost/tools/bcp/licence_info.hpp b/src/boost/tools/bcp/licence_info.hpp new file mode 100644 index 00000000..e4ced257 --- /dev/null +++ b/src/boost/tools/bcp/licence_info.hpp @@ -0,0 +1,39 @@ +/* + * + * Copyright (c) 2003 Dr John Maddock + * Use, modification and distribution is subject to the + * Boost Software License, Version 1.0. (See accompanying file + * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + * + */ + +#include +#include + +struct license_info +{ + boost::regex license_signature; + boost::regex copyright_signature; + std::string copyright_formatter; + std::string license_name; + std::string license_text; + // + // we should really be able to initialize license_info as an + // aggregate, but some compilers reject this, so use a constructor + //instead: + // + license_info(const boost::regex& e1, + const boost::regex& e2, + const std::string& s1, + const std::string& s2, + const std::string& s3) + : license_signature(e1), + copyright_signature(e2), + copyright_formatter(s1), + license_name(s2), + license_text(s3){} +}; + +std::pair get_licenses(); + +std::string format_authors_name(const std::string& name); -- cgit v1.2.3