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:
@ -37,12 +37,11 @@
|
||||
<pre>
|
||||
template <class BidirectionalIterator,
|
||||
class charT = iterator_traits<BidirectionalIterator>::value_type,
|
||||
class traits = regex_traits<charT>,
|
||||
class Allocator = allocator<charT> >
|
||||
class traits = regex_traits<charT> >
|
||||
class regex_iterator
|
||||
{
|
||||
public:
|
||||
typedef <A href="basic_regex.html">basic_regex</A><charT, traits, Allocator> regex_type;
|
||||
typedef <A href="basic_regex.html">basic_regex</A><charT, traits> regex_type;
|
||||
typedef <A href="match_results.html">match_results</A><BidirectionalIterator> value_type;
|
||||
typedef typename iterator_traits<BidirectionalIterator>::difference_type difference_type;
|
||||
typedef const value_type* pointer;
|
||||
@ -63,12 +62,23 @@ public:
|
||||
regex_iterator <A href="#o7">operator</A>++(int);
|
||||
};
|
||||
|
||||
typedef regex_iterator<const char*> cregex_iterator;
|
||||
typedef regex_iterator<std::string::const_iterator> sregex_iterator;
|
||||
#ifndef BOOST_NO_WREGEX
|
||||
typedef regex_iterator<const wchar_t*> wcregex_iterator;
|
||||
typedef regex_iterator<std::wstring::const_iterator> wsregex_iterator;
|
||||
#endif
|
||||
typedef
|
||||
regex_iterator<const
|
||||
|
||||
char*> cregex_iterator; typedef regex_iterator<std::string::const_iterator>
|
||||
sregex_iterator; #ifndef BOOST_NO_WREGEX
|
||||
typedef regex_iterator<const
|
||||
wchar_t*> wcregex_iterator; typedef regex_iterator<std::wstring::const_iterator>
|
||||
wsregex_iterator; #endif template
|
||||
<class
|
||||
|
||||
charT, class traits> regex_iterator<const charT*,
|
||||
charT, traits>
|
||||
<A href="#make_regex_iterator">make_regex_iterator</A>(const charT* p, const basic_regex<charT, traits>& e, regex_constants::match_flag_type m = regex_constants::match_default); template <class
|
||||
|
||||
charT, class traits, class ST, class SA> regex_iterator<typename std::basic_string<charT,
|
||||
ST, SA>::const_iterator, charT, traits>
|
||||
<A href="#make_regex_iterator">make_regex_iterator</A>(const std::basic_string<charT, ST, SA>& p, const basic_regex<charT, traits>& e, regex_constants::match_flag_type m = regex_constants::match_default);
|
||||
|
||||
</pre>
|
||||
<h3><a name="description"></a>Description</h3>
|
||||
@ -300,6 +310,20 @@ regex_iterator operator++(int);
|
||||
then calls <code>++(*this)</code>.</p>
|
||||
<b></b>
|
||||
<p><b>Returns:</b> <code>result</code>.</p>
|
||||
<PRE><A name=make_regex_iterator></A>template <class charT, class traits> regex_iterator<const charT*, charT, traits>
|
||||
make_regex_iterator(const charT*
|
||||
p, const basic_regex<charT,
|
||||
traits>& e, regex_constants::match_flag_type m
|
||||
= regex_constants::match_default); template <class
|
||||
|
||||
charT, class traits, class ST, class SA> regex_iterator<typename std::basic_string<charT,
|
||||
ST, SA>::const_iterator, charT, traits>
|
||||
make_regex_iterator(const std::basic_string<charT, ST, SA>& p,
|
||||
const basic_regex<charT, traits>& e,
|
||||
regex_constants::match_flag_type m = regex_constants::match_default);
|
||||
</PRE>
|
||||
<P><STRONG>Effects:</STRONG> returns an iterator that enumerates all occurences of
|
||||
expression <EM>e</EM> in text <EM>p</EM> using match_flags <EM>m</EM>.</P>
|
||||
<h3>Examples</h3>
|
||||
<p>The following <a href="../example/snippets/regex_iterator_example.cpp">example</a>
|
||||
takes a C++ source file and builds up an index of class names, and the location
|
||||
@ -419,12 +443,12 @@ color=
|
||||
}
|
||||
</pre>
|
||||
<hr>
|
||||
<p>Revised
|
||||
<p>Revised
|
||||
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
|
||||
24 Oct 2003
|
||||
06 Jan 05
|
||||
<!--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 --> 2005<!--webbot bot="Timestamp" endspan i-checksum="39359" --></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