Boost logo

Boost Users :

From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2004-03-19 11:24:31


Paul Elliott <pelliott_at_[hidden]> wrote:
> On Thu, Mar 18, 2004 at 04:08:59PM -0000, Ben Hutchings wrote:
> > Paul Elliott <pelliott_at_[hidden]> 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.


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