RE: [Boost-users] regular expression searching for Glib::ustring??

Paul Elliott <pelliott@io.com> wrote:
On Thu, Mar 18, 2004 at 04:08:59PM -0000, Ben Hutchings wrote:
Paul Elliott <pelliott@io.com> wrote:
I am using Gtkmm. I want to do boost regular expression searching on Glib::ustring. <snip> How would you set up boost regex to search if both the regular expression and the string to be searched is a ustring? <snip> To create a regex from a ustring I would write something like this:
boost::reg_expression<gunichar, unicode_regex_traits> re;
In the above, you have unicode_regex_traits, which is necessary because when I tried:
boost::basic_regex<gunichar> regular_expression;
I got the following error message: <snip So this means that regex_traits<gunichar> does not work, and I must code my own substitute for regex_traits<gunichar>.
What are the requirements for such a traits structure?
I already told you:
I am using Boost 1.30, in which the traits are documented in <boost/libs/regex/traits_class_ref.htm>. I don't know whether that documentation still applies to 1.31.
Ben.
participants (1)
-
Ben Hutchings