regex traits for multibyte strings

8 Sep
2003
8 Sep
'03
6:49 p.m.
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.

9 Sep
9 Sep
11:51 a.m.
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
7836
Age (days ago)
7837
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ben Hutchings
-
John Maddock