1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
4 <title>Boost.Regex: class regex_traits
</title>
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
6 <link rel=
"stylesheet" type=
"text/css" href=
"../../../boost.css">
10 <TABLE id=
"Table1" cellSpacing=
"1" cellPadding=
"1" width=
"100%" border=
"0">
12 <td valign=
"top" width=
"300">
13 <h3><a href=
"../../../index.htm"><img height=
"86" width=
"277" alt=
"C++ Boost" src=
"../../../boost.png" border=
"0"></a></h3>
16 <H1 align=
"center">Boost.Regex
</H1>
17 <H2 align=
"center">class regex_traits
</H2>
20 <h3><a href=
"index.html"><img height=
"45" width=
"43" alt=
"Boost.Regex Index" src=
"uarrow.gif" border=
"0"></a></h3>
28 <dt><A href=
"#synopsis">Synopsis
</A> <dt><a href=
"#description">Description
</a></dt>
30 <H3><A name=
"synopsis"></A>Synopsis
</H3>
34 template
<class charT, class implementationT = sensible_default_choice
>
35 struct regex_traits : public implementationT
37 regex_traits() : implementationT() {}
40 template
<class charT
>
41 struct c_regex_traits;
43 template
<class charT
>
44 struct cpp_regex_traits;
46 template
<class charT
>
47 struct w32_regex_traits;
51 <H3><A name=
"description"></A>Description
</H3>
52 <P>The class regex_traits is just a thin wrapper around an actual implemention
53 class, which may be one of:
</P>
56 c_regex_traits: this class is deprecated, it wraps the C locale, and is used as
57 the default implementation when the platform is not Win32, and the C++ locale
58 is not available.
</LI>
60 cpp_regex_traits: the default traits class for non-Win32 platforms, allows the
61 regex class to be imbued with a std::locale instance.
</LI>
63 w32_regex_traits: the default traits class implementation on Win32 platforms,
64 allows the regex class to be imbued with an LCID.
</LI></UL>
65 <P>The default behavior can be altered by defining one of the following
66 configuration macros in
<A href=
"../../../boost/regex/user.hpp">boost/regex/user.hpp
</A>:
</P>
69 BOOST_REGEX_USE_C_LOCALE: makes c_regex_traits the default.
</LI>
71 BOOST_REGEX_USE_CPP_LOCALE: makes cpp_regex_traits the default.
</LI></UL>
72 <P>All these traits classes fulfil the
<A href=
"concepts.html#traits">traits class
77 <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
78 24 June
2004
79 <!--webbot bot="Timestamp" endspan i-checksum="39359" --></p>
80 <p><i>© Copyright John Maddock
1998-
81 <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y" startspan -->
83 <P><I>Use, modification and distribution are subject to the Boost Software License,
84 Version
1.0. (See accompanying file
<A href=
"../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</A>
85 or copy at
<A href=
"http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt
</A>)
</I></P>