Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2003-09-09 06:51:53


> Is it possible to define a traits class for regex that supports
> multibyte strings? I am intending to do so, but I'm unsure that it
> is possible because there are several required functions that take a
> parameter of type char_type, which wouldn't really hold a complete
> character.

I suspect that the answer is "no", can you not use wchar_t, and if necessary
convert your multi-byte sequence to wchar_t "atoms" on-the-fly using
iterator adapters?

John


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net