mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 12:07:28 +02:00
merged changes in regex5 branch
[SVN r26692]
This commit is contained in:
@ -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 <class charT, class implementationT = sensible_default_choice>
|
||||
struct regex_traits : public implementationT
|
||||
{
|
||||
regex_traits() : implementationT() {}
|
||||
};
|
||||
|
||||
template <class charT>
|
||||
struct c_regex_traits;
|
||||
|
||||
template <class charT>
|
||||
struct cpp_regex_traits;
|
||||
|
||||
template <class charT>
|
||||
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 June 2004
|
||||
<!--webbot bot="Timestamp" endspan i-checksum="39359" --></p>
|
||||
<p><i><EFBFBD> Copyright John Maddock 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>
|
||||
|
Reference in New Issue
Block a user