Re: Encoding
OvermindDL1 <[email protected]> Fri, 11 Dec 2009 19:59:20 -0700
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Dec 11, 2009 at 7:39 PM, Joel de Guzman <[email protected]> wrote: > OvermindDL1 wrote: >> You know how I suggested something like this for character encoding? >> >> parse<standard_wide>(...); >> parse<utf8>(...); >> parse<ascii>(...); >> etc... >> >> Re-thinking it, what about just treating it like space, rule >> definition could be like: >> rule<Iterator,int(),encoding,space> // the int(), encoding, and space >> parts being in any order of course, the encoding can be figured out by >> a tag > > That's the idea I posted here: > "Re: [lex] making lexer generic for char / wchar_t" That was the thread, with my want of a parse<encoding> that made me think more about how to actually implement this, hence this post. Carl: And I remember that other post from July or so, but I just remember the removing of the return type of lit() from that post, not the encoding discussion part. :) We do need something though, the namespace thing is irritating and is causing me to do all kinds of weird macro work to get it generic... ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev