How to print value in boost::u32regex & reg

Hi All,

I want to print value in boost::u32regex & reg using 'std::cout'.

for 'boost::regex & reg', i can print reg.str() but not able to use str() to boost::u32regex.

Can anyone please tell me?.

Rayappan A
Last edited on
u32regex from boost/regex/icu.hpp is a regular boost::basic_regex, but its char type is UChar32 from ICU (a typedef of int on my system).

So, .str() attempts to give you std::basic_string<UChar32>, which isn't usable as-is.

I was gonna say it's a good question for StackOverflow, but you already posted it there: - the first poster's iterator approach is heading in the right direction... and now he reached it.
Last edited on
Topic archived. No new replies allowed.