From 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 11 May 2020 22:17:58 +0200 Subject: New upstream version 2.2.0~rc1+repack --- boost/libs/serialization/src/xml_grammar.cpp | 74 ---------------------------- 1 file changed, 74 deletions(-) delete mode 100644 boost/libs/serialization/src/xml_grammar.cpp (limited to 'boost/libs/serialization/src/xml_grammar.cpp') diff --git a/boost/libs/serialization/src/xml_grammar.cpp b/boost/libs/serialization/src/xml_grammar.cpp deleted file mode 100644 index ae48f70d..00000000 --- a/boost/libs/serialization/src/xml_grammar.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// xml_grammar.cpp: - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// Use, modification and distribution is subject to 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) - -// See http://www.boost.org for updates, documentation, and revision history. - -#if (defined _MSC_VER) && (_MSC_VER == 1200) -# pragma warning (disable : 4786) // too long name, harmless warning -#endif - -#include - -#define BOOST_ARCHIVE_SOURCE -#include -#include - -using namespace boost::spirit::classic; - -// fixup for borland -// The following code will be put into Boost.Config in a later revision -#if ! defined(__SGI_STL_PORT) \ -&& defined(BOOST_RWSTD_VER) && BOOST_RWSTD_VER<=0x020101 -#include -namespace std { - template<> - inline string & - string::replace ( - char * first1, - char * last1, - const char * first2, - const char * last2 - ){ - replace(first1-begin(),last1-first1,first2,last2-first2,0,last2-first2); - return *this; - } -} // namespace std -#endif - -namespace boost { -namespace archive { - -typedef basic_xml_grammar xml_grammar; - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// specific definitions for char based XML - -template<> -void xml_grammar::init_chset(){ - Char = chset_t("\x9\xA\xD\x20-\x7f\x80\x81-\xFF"); - Letter = chset_t("\x41-\x5A\x61-\x7A\xC0-\xD6\xD8-\xF6\xF8-\xFF"); - Digit = chset_t("0-9"); - Extender = chset_t('\xB7'); - Sch = chset_t("\x20\x9\xD\xA"); - NameChar = Letter | Digit | chset_p("._:-") | Extender ; -} - -} // namespace archive -} // namespace boost - -#include "basic_xml_grammar.ipp" - -namespace boost { -namespace archive { - -// explicit instantiation of xml for 8 bit characters -template class basic_xml_grammar; - -} // namespace archive -} // namespace boost - -- cgit v1.2.3