1 /*
2  *              Copyright Andrey Semashev 2016.
3  * Distributed under the Boost Software License, Version 1.0.
4  *    (See accompanying file LICENSE_1_0.txt or copy at
5  *          http://www.boost.org/LICENSE_1_0.txt)
6  */
7 /*!
8  * \file   windows/utf_code_conversion.hpp
9  * \author Andrey Semashev
10  * \date   22.02.2016
11  *
12  * \brief  This header is the Boost.Log library implementation, see the library documentation
13  *         at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
14  */
15 
16 #ifndef BOOST_LOG_WINDOWS_UTF_CODE_CONVERSION_HPP_INCLUDED_
17 #define BOOST_LOG_WINDOWS_UTF_CODE_CONVERSION_HPP_INCLUDED_
18 
19 #include <boost/log/detail/config.hpp>
20 #include <string>
21 #include <boost/log/detail/header.hpp>
22 
23 namespace boost {
24 
25 BOOST_LOG_OPEN_NAMESPACE
26 
27 namespace aux {
28 
29 //! Converts UTF-8 to UTF-16
30 std::wstring utf8_to_utf16(const char* str);
31 //! Converts UTF-16 to UTF-8
32 std::string utf16_to_utf8(const wchar_t* str);
33 
34 } // namespace aux
35 
36 BOOST_LOG_CLOSE_NAMESPACE // namespace log
37 
38 } // namespace boost
39 
40 #include <boost/log/detail/footer.hpp>
41 
42 #endif // BOOST_LOG_WINDOWS_UTF_CODE_CONVERSION_HPP_INCLUDED_
43