Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-03-15 06:04:05


> Ok, I made it work the way I describe here - it understands now \u{HHH}
> notaion and operates on 16-bit wide chars. I didn't touch anything from
> c_regex_tratis. I only wrote myown char_traits and then
> typedef reg_expression<uchar16, regex_traits<uchar16>,
> BOOST_DEFAULT_ALLOCATOR(uchar16)> uregex16;
> and struct string16 : public std::basic_string<uchar16, my_char_traits>{
> ... };
> I suppose I need to overload c_regex_tratis if I need correct
> reinterpretation for \w, icase etc for chars that are outside latin-1?

Yes specialise regex_traits<uchar16> using c_regex_traits as a guide,
actually I'm surprised it works at all: regex_traits<uchar16> shouldn't
instantiate, but if you're happy then great.

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