2
// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
4
// Distributed under the Boost Software License, Version 1.0. (See
5
// accompanying file LICENSE_1_0.txt or copy at
6
// http://www.boost.org/LICENSE_1_0.txt)
8
#define BOOST_LOCALE_SOURCE
12
#include <boost/locale/generator.hpp>
13
#include <boost/locale/info.hpp>
14
#include <boost/locale/util.hpp>
18
#include "locale_data.hpp"
23
class simple_info : public info {
25
simple_info(std::string const &name,size_t refs = 0) :
31
virtual std::string get_string_property(string_propery v) const
34
case language_property:
36
case country_property:
38
case variant_property:
40
case encoding_property:
49
virtual int get_integer_property(integer_property v) const
63
std::locale create_info(std::locale const &in,std::string const &name)
65
return std::locale(in,new simple_info(name));
75
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4