//          Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under 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)

#ifndef FCPPT_NARROW_HPP_INCLUDED
#define FCPPT_NARROW_HPP_INCLUDED

#include <fcppt/optional_std_string.hpp>
#include <fcppt/detail/symbol.hpp>
#include <fcppt/config/external_begin.hpp>
#include <string_view>
#include <fcppt/config/external_end.hpp>

namespace fcppt
{
/**
\brief Converts a std::wstring to std::string, using #fcppt::string_conv_locale.

\ingroup fcpptstring

Converts \a _string to std::string.
*/
FCPPT_DETAIL_SYMBOL
fcppt::optional_std_string narrow(std::wstring_view _string);

}

#endif
