Boost logo

Boost :

Subject: Re: [boost] [spirit2] How to get encoding-specific parsers by character type
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-06-12 11:53:30


On 06/12/2010 04:15 PM, Hartmut Kaiser wrote:
>>
>> What I want to be able to do is something like that:
>>
>> template< typename CharT>
>> void parse(const CharT* str)
>> {
>> typedef typename my_traits< CharT>::encoding encoding;
>> typedef spirit::encoding_specific< encoding> parsers;
>> qi::parse(str, *parsers::char_);
>> }
>>
>> The encoding type shall be one of the tags defined by spirit (for
>> instance, spirit::char_encoding::standard). What I need is the
>> encoding_specific traits in spirit.
>
> That's making a lot more sense. Would you be willing to prepare a patch?

I created the following ticket:

<https://svn.boost.org/trac/boost/ticket/4336>

The patch is attached to it.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk