boost.xpressive - unicode supported?

Hi, I am wondering whether Xpressive supports Unicode completely, as Regex does through ICU? I found out about Xpressive only recently, and it being header only is obviously a big plus; but my app is all about i18n, and makes use of regex patterns with character category predicates (e.g. [[:P*:]]). I read the docs for Xpressive - while it does claim to support Unicode, they have not provided a list of valid patterns, and unless they have code charts as part of headers, I don't see how they can provide full Unicode support with depending on ICU or something... Any clarification would be extremely helpful. Thanks Amit

Amit wrote:
I am wondering whether Xpressive supports Unicode completely, as Regex does through ICU?
I have yet not tried to make xpressive work with ICU. Xpressive follows the TR1 regex proposal very closely; in particular, it uses the standard regex traits interface, which (I believe) is how John is plugging ICU into Boost.Regex. If so, then the ICU traits wrappers can be easily ported to xpressive, and the unicode iterators (in boost/regex/pending) can be used as-is. It's on my ToDo list, but I don't have time for this work right now. I encourage you to give it a shot. If you get it working, I'd gladly accept the patch. -- Eric Niebler Boost Consulting www.boost-consulting.com
participants (2)
-
Amit
-
Eric Niebler