// Copyright (c) 2001-2010 Hartmut Kaiser // Copyright (c) 2001-2010 Joel de Guzman // // 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) #if !defined(SPIRIT_UPPER_LOWER_CASE_JANUARY_19_2009_1142AM) #define SPIRIT_UPPER_LOWER_CASE_JANUARY_19_2009_1142AM #if defined(_MSC_VER) #pragma once #endif #include #include #include #include namespace boost { namespace spirit { /////////////////////////////////////////////////////////////////////////// // Enablers /////////////////////////////////////////////////////////////////////////// template struct use_directive< karma::domain, tag::char_code > // enables upper : mpl::true_ {}; template struct use_directive< karma::domain, tag::char_code > // enables lower : mpl::true_ {}; /////////////////////////////////////////////////////////////////////////// template struct is_modifier_directive > : mpl::true_ {}; template struct is_modifier_directive > : mpl::true_ {}; /////////////////////////////////////////////////////////////////////////// // Don't add tag::upper or tag::lower if there is already one of those in // the modifier list template struct compound_modifier< Current , tag::char_code , typename enable_if< has_modifier > >::type > : Current { compound_modifier() : Current() {} compound_modifier(Current const& current, tag::char_code const&) : Current(current) {} }; template struct compound_modifier< Current , tag::char_code , typename enable_if< has_modifier > >::type > : Current { compound_modifier() : Current() {} compound_modifier(Current const& current, tag::char_code const&) : Current(current) {} }; }} #endif