1//
2// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
3//
4// Distributed under the Boost Software License, Version 1.0.
5// https://www.boost.org/LICENSE_1_0.txt
6
7#ifndef BOOST_LOCALE_IMPL_STD_ALL_GENERATOR_HPP
8#define BOOST_LOCALE_IMPL_STD_ALL_GENERATOR_HPP
9
10#include <boost/locale/generator.hpp>
11#include <locale>
12#include <string>
13
14namespace boost { namespace locale { namespace impl_std {
15 /// UTF-8 support of the standard library for the requested locale
16 enum class utf8_support {
17 /// No UTF-8 requested or required (e.g. other narrow encoding)
18 none,
19 /// UTF-8 encoding supported by the std-locale
20 native,
21 /// UTF-8 encoding has to be emulated using wchar_t
22 from_wide
23 };
24
25 std::locale
26 create_convert(const std::locale& in, const std::string& locale_name, char_facet_t type, utf8_support utf);
27
28 std::locale
29 create_collate(const std::locale& in, const std::string& locale_name, char_facet_t type, utf8_support utf);
30
31 std::locale
32 create_formatting(const std::locale& in, const std::string& locale_name, char_facet_t type, utf8_support utf);
33
34 std::locale
35 create_parsing(const std::locale& in, const std::string& locale_name, char_facet_t type, utf8_support utf);
36
37 std::locale
38 create_codecvt(const std::locale& in, const std::string& locale_name, char_facet_t type, utf8_support utf);
39
40}}} // namespace boost::locale::impl_std
41
42#endif
43

source code of boost/libs/locale/src/boost/locale/std/all_generator.hpp