Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:39:13

0001 // Copyright Kevlin Henney, 2000-2005.
0002 // Copyright Alexander Nasonov, 2006-2010.
0003 // Copyright Antony Polukhin, 2011-2023.
0004 //
0005 // Distributed under the Boost Software License, Version 1.0. (See
0006 // accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // what:  lexical_cast custom keyword cast
0010 // who:   contributed by Kevlin Henney,
0011 //        enhanced with contributions from Terje Slettebo,
0012 //        with additional fixes and suggestions from Gennaro Prota,
0013 //        Beman Dawes, Dave Abrahams, Daryle Walker, Peter Dimov,
0014 //        Alexander Nasonov, Antony Polukhin, Justin Viiret, Michael Hofmann,
0015 //        Cheng Yang, Matthew Bradbury, David W. Birdsall, Pavel Korzh and other Boosters
0016 // when:  November 2000, March 2003, June 2005, June 2006, March 2011 - 2014
0017 
0018 #ifndef BOOST_LEXICAL_CAST_DETAIL_LCAST_CHAR_CONSTANTS_HPP
0019 #define BOOST_LEXICAL_CAST_DETAIL_LCAST_CHAR_CONSTANTS_HPP
0020 
0021 #include <boost/config.hpp>
0022 #ifdef BOOST_HAS_PRAGMA_ONCE
0023 #   pragma once
0024 #endif
0025 
0026 namespace boost
0027 {
0028     namespace detail // '0', '-', '+', 'e', 'E' and '.' constants
0029     {
0030         template < typename Char >
0031         struct lcast_char_constants {
0032             // We check in tests assumption that static casted character is
0033             // equal to correctly written C++ literal: U'0' == static_cast<char32_t>('0')
0034             BOOST_STATIC_CONSTANT(Char, zero  = static_cast<Char>('0'));
0035             BOOST_STATIC_CONSTANT(Char, minus = static_cast<Char>('-'));
0036             BOOST_STATIC_CONSTANT(Char, plus = static_cast<Char>('+'));
0037             BOOST_STATIC_CONSTANT(Char, lowercase_e = static_cast<Char>('e'));
0038             BOOST_STATIC_CONSTANT(Char, capital_e = static_cast<Char>('E'));
0039             BOOST_STATIC_CONSTANT(Char, c_decimal_separator = static_cast<Char>('.'));
0040         };
0041     }
0042 } // namespace boost
0043 
0044 
0045 #endif // BOOST_LEXICAL_CAST_DETAIL_LCAST_CHAR_CONSTANTS_HPP
0046