Ticket #4336: common_terminals.hpp.diff
File common_terminals.hpp.diff, 3.4 KB (added by , 12 years ago) |
---|
-
boost/spirit/home/support/common_terminals.hpp
18 18 #include <boost/spirit/home/support/char_encoding/ascii.hpp> 19 19 #include <boost/spirit/home/support/char_encoding/iso8859_1.hpp> 20 20 #include <boost/spirit/home/support/char_class.hpp> 21 #include <boost/spirit/home/support/detail/encoding_specific_impl.hpp> 21 22 #include <boost/mpl/vector.hpp> 22 23 23 24 #if defined(BOOST_SPIRIT_UNICODE) … … 138 139 struct attr_cast {}; 139 140 } 140 141 142 // A trait to provide access to the encoding-specific placeholders 143 template< typename EncodingT > 144 struct encoding_specific; 145 141 146 }} 142 147 143 148 /////////////////////////////////////////////////////////////////////////////// … … 196 201 BOOST_SPIRIT_CHAR_CODE(upper, spirit::char_encoding::charset) \ 197 202 BOOST_SPIRIT_CHAR_CODE(lowernum, spirit::char_encoding::charset) \ 198 203 BOOST_SPIRIT_CHAR_CODE(uppernum, spirit::char_encoding::charset) \ 199 }}} \ 204 } \ 205 \ 206 template< > \ 207 struct encoding_specific< spirit::char_encoding::charset > : \ 208 public detail::encoding_specific_impl< \ 209 charset::char_type, \ 210 charset::string_type, \ 211 charset::alnum_type, \ 212 charset::alpha_type, \ 213 charset::blank_type, \ 214 charset::cntrl_type, \ 215 charset::digit_type, \ 216 charset::graph_type, \ 217 charset::print_type, \ 218 charset::punct_type, \ 219 charset::space_type, \ 220 charset::xdigit_type, \ 221 charset::no_case_type, \ 222 charset::lower_type, \ 223 charset::upper_type, \ 224 charset::lowernum_type, \ 225 charset::uppernum_type \ 226 > \ 227 { \ 228 }; \ 229 \ 230 }} \ 200 231 /***/ 201 232 202 233 BOOST_SPIRIT_DEFINE_CHAR_CODES(ascii)