Files
property_tree/test/test_xml_parser_rapidxml.cpp
Sebastian Redl 71de844e95 Merge proptree rewrite branch to trunk.
[SVN r55966]
2009-09-01 21:27:45 +00:00

34 lines
1.1 KiB
C++

// ----------------------------------------------------------------------------
// Copyright (C) 2002-2006 Marcin Kalicinski
//
// 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)
//
// For more information, see www.boost.org
// ----------------------------------------------------------------------------
#include "test_xml_parser_common.hpp"
#include <locale>
#define BOOST_UTF8_BEGIN_NAMESPACE namespace boost { namespace property_tree {
#define BOOST_UTF8_END_NAMESPACE }}
#define BOOST_UTF8_DECL
#include <boost/detail/utf8_codecvt_facet.hpp>
#include "../../detail/utf8_codecvt_facet.cpp"
int test_main(int argc, char *argv[])
{
using namespace boost::property_tree;
using std::locale;
test_xml_parser<ptree>();
test_xml_parser<iptree>();
#ifndef BOOST_NO_CWCHAR
// We need a UTF-8-aware global locale now.
locale loc(locale(), new utf8_codecvt_facet);
locale::global(loc);
test_xml_parser<wptree>();
test_xml_parser<wiptree>();
#endif
return 0;
}