summaryrefslogtreecommitdiff
path: root/boost/libs/serialization/src/xml_grammar.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-05-11 22:17:58 +0200
committerChristoph Berg <myon@debian.org>2020-05-11 22:17:58 +0200
commit32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (patch)
treec6e107c1ee4d70610e43a7912e57c720334a08c7 /boost/libs/serialization/src/xml_grammar.cpp
parent08299e8b2bf50ba90daf570f57def529dd29d6e7 (diff)
New upstream version 2.2.0~rc1+repackupstream/2.2.0_rc1+repack
Diffstat (limited to 'boost/libs/serialization/src/xml_grammar.cpp')
-rw-r--r--boost/libs/serialization/src/xml_grammar.cpp74
1 files changed, 0 insertions, 74 deletions
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 <boost/config.hpp>
-
-#define BOOST_ARCHIVE_SOURCE
-#include <boost/serialization/config.hpp>
-#include <boost/archive/impl/basic_xml_grammar.hpp>
-
-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 <string>
-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<char> 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<char>;
-
-} // namespace archive
-} // namespace boost
-