]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/xpressive/include/boost/xpressive/detail/core/matcher/assert_line_base.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / xpressive / include / boost / xpressive / detail / core / matcher / assert_line_base.hpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // assert_line_base.hpp
3 //
4 // Copyright 2008 Eric Niebler. Distributed under the Boost
5 // Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8 #ifndef BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_DETAIL_ASSERT_LINE_BASE_HPP_EAN_10_04_2005
9 #define BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_DETAIL_ASSERT_LINE_BASE_HPP_EAN_10_04_2005
10
11 // MS compatible compilers support #pragma once
12 #if defined(_MSC_VER)
13 # pragma once
14 #endif
15
16 #include <boost/xpressive/detail/detail_fwd.hpp>
17 #include <boost/xpressive/detail/core/quant_style.hpp>
18 #include <boost/xpressive/detail/core/state.hpp>
19
20 namespace boost { namespace xpressive { namespace detail
21 {
22
23 ///////////////////////////////////////////////////////////////////////////////
24 // assert_line_base
25 //
26 template<typename Traits>
27 struct assert_line_base
28 : quant_style_assertion
29 {
30 typedef typename Traits::char_type char_type;
31 typedef typename Traits::char_class_type char_class_type;
32
33 protected:
34 assert_line_base(Traits const &tr)
35 : newline_(lookup_classname(tr, "newline"))
36 , nl_(tr.widen('\n'))
37 , cr_(tr.widen('\r'))
38 {
39 }
40
41 char_class_type newline_;
42 char_type nl_, cr_;
43 };
44
45 }}}
46
47 #endif