Re: Parse one specific unicode character
Stephan Menzel <[email protected]> Wed, 24 Oct 2018 08:17:55 +0200
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <CAEQ568tm5t-TVLkE4EBooLUSPqkGJzAJYmUy8NCQAgfPKRgvEA@mail.gmail.com> |
On Wed, Oct 24, 2018 at 7:19 AM Stephan Menzel <[email protected]> wrote: > input_text_parser() : input_text_parser ::base_type(m_start) { > m_start %= *(qi::unicode::alnum | qi::unicode::punct | > qi::unicode::char_(u8"\u20AC") | qi::unicode::char_(" ")); > Oops. I think I have figured it out. You need to enter the characters in utf32. Like this: m_start %= *(qi::unicode::alnum | qi::unicode::punct | qi::unicode::char_(U"\U000020AC") | qi::unicode::char_(" ")); Doing this gets the euro sign parsed OK. Cheers, Stephan _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general