merged changes in regex5 branch

[SVN r26692]
This commit is contained in:
John Maddock
2005-01-13 17:06:21 +00:00
parent de0ab9092a
commit 71a0e020e2
275 changed files with 37305 additions and 27154 deletions

View File

@ -23,22 +23,63 @@
</TABLE>
</P>
<HR>
<p></p>
<P>
Under construction: the current design will be replaced by that specified in
the <A href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1429.htm">regular
expression standardization proposal</A>, the current (obsolete) design has
it's <A href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/boost/boost/libs/regex/Attic/traits_class_ref.htm?rev=1.11">
documentation archived online</A>.</P>
<P>
<HR>
<H3>Contents</H3>
<dl class="index">
<dt><A href="#synopsis">Synopsis</A> <dt><a href="#description">Description</a></dt>
</dl>
<H3><A name="synopsis"></A>Synopsis</H3>
<pre>
namespace boost{
template &lt;class charT, class implementationT = sensible_default_choice&gt;
struct regex_traits : public implementationT
{
regex_traits() : implementationT() {}
};
template &lt;class charT&gt;
struct c_regex_traits;
template &lt;class charT&gt;
struct cpp_regex_traits;
template &lt;class charT&gt;
struct w32_regex_traits;
} // namespace boost
</pre>
<H3><A name="description"></A>Description</H3>
<P>The class regex_traits is just a thin wrapper around an actual implemention
class, which may be one of:</P>
<UL>
<LI>
c_regex_traits: this class is deprecated, it wraps the C locale, and is used as
the default implementation when the platform is not Win32, and the C++ locale
is not available.</LI>
<LI>
cpp_regex_traits: the default traits class for non-Win32 platforms, allows the
regex class to be imbued with a std::locale instance.</LI>
<LI>
w32_regex_traits: the default traits class implementation on Win32 platforms,
allows the regex class to be imbued with an LCID.</LI></UL>
<P>The default behavior can be altered by defining one of the following
configuration macros in <A href="../../../boost/regex/user.hpp">boost/regex/user.hpp</A>:</P>
<UL>
<LI>
BOOST_REGEX_USE_C_LOCALE: makes c_regex_traits the default.</LI>
<LI>
BOOST_REGEX_USE_CPP_LOCALE: makes cpp_regex_traits the default.</LI></UL>
<P>All these traits classes fulfil the <A href="concepts.html#traits">traits class
requirements</A>.</P>
<HR>
<P></P>
<p>Revised
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
24 Oct 2003
24&nbsp;June 2004&nbsp;
<!--webbot bot="Timestamp" endspan i-checksum="39359" --></p>
<p><i><EFBFBD> Copyright John Maddock&nbsp;1998-
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y" startspan --> 2003<!--webbot bot="Timestamp" endspan i-checksum="39359" --></i></p>
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y" startspan -->
2004</i></p>
<P><I>Use, modification and distribution are subject to the Boost Software License,
Version 1.0. (See accompanying file <A href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A>
or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P>