Compare commits

...

4 Commits

Author SHA1 Message Date
f47ebdae3f This commit was manufactured by cvs2svn to create tag
'Version_1_33_0'.

[SVN r30532]
2005-08-12 03:25:34 +00:00
fc31643254 fixed broken links
[SVN r30423]
2005-08-03 20:11:21 +00:00
3ee662fa1a fixed broken links
[SVN r30421]
2005-08-03 19:43:36 +00:00
c58c45e55b This commit was manufactured by cvs2svn to create branch 'RC_1_33_0'.
[SVN r30300]
2005-07-28 18:22:24 +00:00
17 changed files with 33 additions and 31 deletions

View File

@ -672,24 +672,25 @@ template <class ST, class SA>
basic_regex& operator=(const basic_string<charT, ST, SA>& p); basic_regex& operator=(const basic_string<charT, ST, SA>& p);
</pre> </pre>
<p><b>Effects:</b> Returns the result of <code>assign(p)</code>.</p> <p><b>Effects:</b> Returns the result of <code>assign(p)</code>.</p>
<h4>basic_regex iterators</h4> <h4>basic_regex iterators</h4>
<pre> <pre><A name=m1>
const_iterator begin() const; const_iterator begin() const;
</pre> </pre>
<p><b>Effects:</b> Returns a starting iterator to a sequence of characters <p><b>Effects:</b> Returns a starting iterator to a sequence of characters
representing the regular expression.</p> representing the regular expression.</p>
<pre> <pre><A name=m2>
const_iterator end() const; const_iterator end() const;
</pre> </pre>
<p><b>Effects:</b> Returns termination iterator to a sequence of characters <p><b>Effects:</b> Returns termination iterator to a sequence of characters
representing the regular expression.</p> representing the regular expression.</p>
<h4>basic_regex capacity</h4> <h4>basic_regex capacity</h4>
<pre> <pre><A name=m3>
size_type size() const; size_type size() const;
</pre> </pre>
<p><b>Effects:</b> Returns the length of the sequence of characters representing <p><b>Effects:</b> Returns the length of the sequence of characters representing
the regular expression.</p> the regular expression.</p>
<pre> <pre><A name=m4>
size_type max_size() const; size_type max_size() const;
</pre> </pre>
<p><b>Effects:</b> Returns the maximum length of the sequence of characters <p><b>Effects:</b> Returns the maximum length of the sequence of characters
@ -818,7 +819,7 @@ locale_type getloc() const;
traits_inst</code> is a (default initialized) instance of the template traits_inst</code> is a (default initialized) instance of the template
parameter <code>traits</code> stored within the object.</p> parameter <code>traits</code> stored within the object.</p>
<h4>basic_regex swap</h4> <h4>basic_regex swap</h4>
<pre> <pre><A name=m13>
void swap(basic_regex&amp; e) throw(); void swap(basic_regex&amp; e) throw();
</pre> </pre>
<p><b>Effects:</b> Swaps the contents of the two regular expressions.</p> <p><b>Effects:</b> Swaps the contents of the two regular expressions.</p>

View File

@ -53,7 +53,7 @@
spot any bugs, please get in touch.</P> spot any bugs, please get in touch.</P>
<P>Useful further information can be found at:</P> <P>Useful further information can be found at:</P>
<P>Short&nbsp;tutorials on regular expressions can be <A href="http://etext.lib.virginia.edu/helpsheets/regex.html"> <P>Short&nbsp;tutorials on regular expressions can be <A href="http://etext.lib.virginia.edu/helpsheets/regex.html">
found here</A> and&nbsp;<A href="http://www.devshed.com/Server_Side/Administration/RegExp/page1.html">here</A>.</P> found here</A> and&nbsp;<A href="http://www.linuxpcug.org/lessons/regexp.html">here</A>.</P>
<P>The main book on regular expressions is <A href="http://www.oreilly.com/catalog/regex/"> <P>The main book on regular expressions is <A href="http://www.oreilly.com/catalog/regex/">
Mastering Regular Expressions, published by O'Reilly</A>.</P> Mastering Regular Expressions, published by O'Reilly</A>.</P>
<P>Information on the <A href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1429.htm"> <P>Information on the <A href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1429.htm">

View File

@ -377,7 +377,7 @@ string_type format(const string_type&amp; fmt,
ECMAScript Language Specification, Chapter 15 part 5.4.11 ECMAScript Language Specification, Chapter 15 part 5.4.11
String.prototype.replace.</p> String.prototype.replace.</p>
<H4>Allocator access</H4> <H4>Allocator access</H4>
<pre>allocator_type get_allocator()const; <pre><A name=m14>allocator_type get_allocator()const;
</pre> </pre>
<b></b> <b></b>
<p><b>Effects:</b> Returns a copy of the Allocator that was passed to the object's <p><b>Effects:</b> Returns a copy of the Allocator that was passed to the object's

View File

@ -94,14 +94,14 @@
<td>&nbsp;</td> <td>&nbsp;</td>
<td valign="top" width="50%">flags</td> <td valign="top" width="50%">flags</td>
<td valign="top" width="50%">The flags that determine how matching is carried out, <td valign="top" width="50%">The flags that determine how matching is carried out,
one of the <a href="#match_type">match_flags</a> enumerators.</td> one of the <a href="match_flag_type.html">match_flags</a> enumerators.</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
</table> </table>
<br> <br>
<br> <br>
<p>The algorithm finds all of the non-overlapping matches of the expression e, for <p>The algorithm finds all of the non-overlapping matches of the expression e, for
each match it fills a <a href="#reg_match">match_results</a>&lt;iterator&gt; each match it fills a <a href="match_results.html">match_results</a>&lt;iterator&gt;
structure, which contains information on what matched, and calls the predicate structure, which contains information on what matched, and calls the predicate
foo, passing the match_results&lt;iterator&gt; as a single argument. If the foo, passing the match_results&lt;iterator&gt; as a single argument. If the
predicate returns true, then the grep operation continues, otherwise it predicate returns true, then the grep operation continues, otherwise it

View File

@ -324,7 +324,7 @@ ST, SA&gt;::const_iterator, charT, traits&gt;
</PRE> </PRE>
<P><STRONG>Effects:</STRONG> returns an iterator that enumerates all occurences of <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> expression <EM>e</EM> in text <EM>p</EM> using match_flags <EM>m</EM>.</P>
<h3>Examples</h3> <h3><a name=examples></a>Examples</h3>
<p>The following <a href="../example/snippets/regex_iterator_example.cpp">example</a> <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 takes a C++ source file and builds up an index of class names, and the location
of that class in the file.</p> of that class in the file.</p>

View File

@ -160,7 +160,7 @@ aaaa</PRE>
<P>When there is more that one way to match a regular expression, the "best" <P>When there is more that one way to match a regular expression, the "best"
possible match is obtained using the <A href="syntax_leftmost_longest.html">leftmost-longest possible match is obtained using the <A href="syntax_leftmost_longest.html">leftmost-longest
rule</A>.</P> rule</A>.</P>
<H3>Variations</H3> <H3><A name="variations"></A>Variations</H3>
<H4><A name="grep"></A>Grep</H4> <H4><A name="grep"></A>Grep</H4>
<P>When an expression is compiled with the flag <EM>grep</EM> set, then the <P>When an expression is compiled with the flag <EM>grep</EM> set, then the
expression is treated as a newline separated list of <A href="#Basic">POSIX-Basic</A> expression is treated as a newline separated list of <A href="#Basic">POSIX-Basic</A>
@ -213,7 +213,7 @@ aaaa</PRE>
all alter the syntax, while the <A href="syntax_option_type.html#basic">collate all alter the syntax, while the <A href="syntax_option_type.html#basic">collate
and icase</A> options modify how the case and locale sensitivity are to be and icase</A> options modify how the case and locale sensitivity are to be
applied.</P> applied.</P>
<H3>References</H3> <H3><A name="refs"></A>References</H3>
<P><A href="http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap09.html">IEEE <P><A href="http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap09.html">IEEE
Std 1003.1-2001, Portable Operating System Interface (POSIX ), Base Definitions Std 1003.1-2001, Portable Operating System Interface (POSIX ), Base Definitions
and Headers, Section 9, Regular Expressions (FWD.1).</A></P> and Headers, Section 9, Regular Expressions (FWD.1).</A></P>

View File

@ -593,7 +593,7 @@ aaaa</PRE>
</TR> </TR>
</TABLE> </TABLE>
</P> </P>
<H3>Variations</H3> <H3><A name="variations"></A>Variations</H3>
<P>The options <A href="syntax_option_type.html#perl"><EM>normal, ECMAScript, JavaScript</EM> <P>The options <A href="syntax_option_type.html#perl"><EM>normal, ECMAScript, JavaScript</EM>
and <EM>JScript</EM></A> are all synonyms for <EM>Perl</EM>.</P> and <EM>JScript</EM></A> are all synonyms for <EM>Perl</EM>.</P>
<H3><A name="options"></A>Options</H3> <H3><A name="options"></A>Options</H3>
@ -609,7 +609,7 @@ aaaa</PRE>
no_mod_m, mod_x, mod_s, and no_mod_s</A></EM>. no_mod_m, mod_x, mod_s, and no_mod_s</A></EM>.
</P> </P>
<H3><A name="refs">References</H3> <H3><A name="refs">References</H3>
<P><A href="http://www.perldoc.com/perl5.6/pod/perlre.html"> Perl 5.6.</A></P> <P><A href="http://perldoc.perl.org/perlre.html"> Perl 5.8.</A></P>
<HR> <HR>
<P></P> <P></P>
<p>Revised&nbsp; <p>Revised&nbsp;

View File

@ -672,24 +672,25 @@ template &lt;class ST, class SA&gt;
basic_regex&amp; operator=(const basic_string&lt;charT, ST, SA&gt;&amp; p); basic_regex&amp; operator=(const basic_string&lt;charT, ST, SA&gt;&amp; p);
</pre> </pre>
<p><b>Effects:</b> Returns the result of <code>assign(p)</code>.</p> <p><b>Effects:</b> Returns the result of <code>assign(p)</code>.</p>
<h4>basic_regex iterators</h4> <h4>basic_regex iterators</h4>
<pre> <pre><A name=m1>
const_iterator begin() const; const_iterator begin() const;
</pre> </pre>
<p><b>Effects:</b> Returns a starting iterator to a sequence of characters <p><b>Effects:</b> Returns a starting iterator to a sequence of characters
representing the regular expression.</p> representing the regular expression.</p>
<pre> <pre><A name=m2>
const_iterator end() const; const_iterator end() const;
</pre> </pre>
<p><b>Effects:</b> Returns termination iterator to a sequence of characters <p><b>Effects:</b> Returns termination iterator to a sequence of characters
representing the regular expression.</p> representing the regular expression.</p>
<h4>basic_regex capacity</h4> <h4>basic_regex capacity</h4>
<pre> <pre><A name=m3>
size_type size() const; size_type size() const;
</pre> </pre>
<p><b>Effects:</b> Returns the length of the sequence of characters representing <p><b>Effects:</b> Returns the length of the sequence of characters representing
the regular expression.</p> the regular expression.</p>
<pre> <pre><A name=m4>
size_type max_size() const; size_type max_size() const;
</pre> </pre>
<p><b>Effects:</b> Returns the maximum length of the sequence of characters <p><b>Effects:</b> Returns the maximum length of the sequence of characters
@ -818,7 +819,7 @@ locale_type getloc() const;
traits_inst</code> is a (default initialized) instance of the template traits_inst</code> is a (default initialized) instance of the template
parameter <code>traits</code> stored within the object.</p> parameter <code>traits</code> stored within the object.</p>
<h4>basic_regex swap</h4> <h4>basic_regex swap</h4>
<pre> <pre><A name=m13>
void swap(basic_regex&amp; e) throw(); void swap(basic_regex&amp; e) throw();
</pre> </pre>
<p><b>Effects:</b> Swaps the contents of the two regular expressions.</p> <p><b>Effects:</b> Swaps the contents of the two regular expressions.</p>

View File

@ -53,7 +53,7 @@
spot any bugs, please get in touch.</P> spot any bugs, please get in touch.</P>
<P>Useful further information can be found at:</P> <P>Useful further information can be found at:</P>
<P>Short&nbsp;tutorials on regular expressions can be <A href="http://etext.lib.virginia.edu/helpsheets/regex.html"> <P>Short&nbsp;tutorials on regular expressions can be <A href="http://etext.lib.virginia.edu/helpsheets/regex.html">
found here</A> and&nbsp;<A href="http://www.devshed.com/Server_Side/Administration/RegExp/page1.html">here</A>.</P> found here</A> and&nbsp;<A href="http://www.linuxpcug.org/lessons/regexp.html">here</A>.</P>
<P>The main book on regular expressions is <A href="http://www.oreilly.com/catalog/regex/"> <P>The main book on regular expressions is <A href="http://www.oreilly.com/catalog/regex/">
Mastering Regular Expressions, published by O'Reilly</A>.</P> Mastering Regular Expressions, published by O'Reilly</A>.</P>
<P>Information on the <A href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1429.htm"> <P>Information on the <A href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1429.htm">

View File

@ -54,7 +54,7 @@
<h3>Comparison 1: Long Search</h3> <h3>Comparison 1: Long Search</h3>
<p>For each of the following regular expressions the time taken to find all <p>For each of the following regular expressions the time taken to find all
occurrences of the expression within a long English language text was measured occurrences of the expression within a long English language text was measured
(<a href="ftp://ibiblio.org/pub/docs/books/gutenberg/etext02/mtent12.zip">mtent12.txt</a> (<a href="http://www.gutenberg.org/files/3200/old/mtent12.zip">mtent12.txt</a>
from <a href="http://promo.net/pg/">Project Gutenberg</a>, 19Mb).&nbsp;</p> from <a href="http://promo.net/pg/">Project Gutenberg</a>, 19Mb).&nbsp;</p>
<table border="1" cellspacing="1"> <table border="1" cellspacing="1">
<tr> <tr>

View File

@ -377,7 +377,7 @@ string_type format(const string_type&amp; fmt,
ECMAScript Language Specification, Chapter 15 part 5.4.11 ECMAScript Language Specification, Chapter 15 part 5.4.11
String.prototype.replace.</p> String.prototype.replace.</p>
<H4>Allocator access</H4> <H4>Allocator access</H4>
<pre>allocator_type get_allocator()const; <pre><A name=m14>allocator_type get_allocator()const;
</pre> </pre>
<b></b> <b></b>
<p><b>Effects:</b> Returns a copy of the Allocator that was passed to the object's <p><b>Effects:</b> Returns a copy of the Allocator that was passed to the object's

View File

@ -94,14 +94,14 @@
<td>&nbsp;</td> <td>&nbsp;</td>
<td valign="top" width="50%">flags</td> <td valign="top" width="50%">flags</td>
<td valign="top" width="50%">The flags that determine how matching is carried out, <td valign="top" width="50%">The flags that determine how matching is carried out,
one of the <a href="#match_type">match_flags</a> enumerators.</td> one of the <a href="match_flag_type.html">match_flags</a> enumerators.</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
</table> </table>
<br> <br>
<br> <br>
<p>The algorithm finds all of the non-overlapping matches of the expression e, for <p>The algorithm finds all of the non-overlapping matches of the expression e, for
each match it fills a <a href="#reg_match">match_results</a>&lt;iterator&gt; each match it fills a <a href="match_results.html">match_results</a>&lt;iterator&gt;
structure, which contains information on what matched, and calls the predicate structure, which contains information on what matched, and calls the predicate
foo, passing the match_results&lt;iterator&gt; as a single argument. If the foo, passing the match_results&lt;iterator&gt; as a single argument. If the
predicate returns true, then the grep operation continues, otherwise it predicate returns true, then the grep operation continues, otherwise it

View File

@ -324,7 +324,7 @@ ST, SA&gt;::const_iterator, charT, traits&gt;
</PRE> </PRE>
<P><STRONG>Effects:</STRONG> returns an iterator that enumerates all occurences of <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> expression <EM>e</EM> in text <EM>p</EM> using match_flags <EM>m</EM>.</P>
<h3>Examples</h3> <h3><a name=examples></a>Examples</h3>
<p>The following <a href="../example/snippets/regex_iterator_example.cpp">example</a> <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 takes a C++ source file and builds up an index of class names, and the location
of that class in the file.</p> of that class in the file.</p>

View File

@ -160,7 +160,7 @@ aaaa</PRE>
<P>When there is more that one way to match a regular expression, the "best" <P>When there is more that one way to match a regular expression, the "best"
possible match is obtained using the <A href="syntax_leftmost_longest.html">leftmost-longest possible match is obtained using the <A href="syntax_leftmost_longest.html">leftmost-longest
rule</A>.</P> rule</A>.</P>
<H3>Variations</H3> <H3><A name="variations"></A>Variations</H3>
<H4><A name="grep"></A>Grep</H4> <H4><A name="grep"></A>Grep</H4>
<P>When an expression is compiled with the flag <EM>grep</EM> set, then the <P>When an expression is compiled with the flag <EM>grep</EM> set, then the
expression is treated as a newline separated list of <A href="#Basic">POSIX-Basic</A> expression is treated as a newline separated list of <A href="#Basic">POSIX-Basic</A>
@ -213,7 +213,7 @@ aaaa</PRE>
all alter the syntax, while the <A href="syntax_option_type.html#basic">collate all alter the syntax, while the <A href="syntax_option_type.html#basic">collate
and icase</A> options modify how the case and locale sensitivity are to be and icase</A> options modify how the case and locale sensitivity are to be
applied.</P> applied.</P>
<H3>References</H3> <H3><A name="refs"></A>References</H3>
<P><A href="http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap09.html">IEEE <P><A href="http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap09.html">IEEE
Std 1003.1-2001, Portable Operating System Interface (POSIX ), Base Definitions Std 1003.1-2001, Portable Operating System Interface (POSIX ), Base Definitions
and Headers, Section 9, Regular Expressions (FWD.1).</A></P> and Headers, Section 9, Regular Expressions (FWD.1).</A></P>

View File

@ -593,7 +593,7 @@ aaaa</PRE>
</TR> </TR>
</TABLE> </TABLE>
</P> </P>
<H3>Variations</H3> <H3><A name="variations"></A>Variations</H3>
<P>The options <A href="syntax_option_type.html#perl"><EM>normal, ECMAScript, JavaScript</EM> <P>The options <A href="syntax_option_type.html#perl"><EM>normal, ECMAScript, JavaScript</EM>
and <EM>JScript</EM></A> are all synonyms for <EM>Perl</EM>.</P> and <EM>JScript</EM></A> are all synonyms for <EM>Perl</EM>.</P>
<H3><A name="options"></A>Options</H3> <H3><A name="options"></A>Options</H3>
@ -609,7 +609,7 @@ aaaa</PRE>
no_mod_m, mod_x, mod_s, and no_mod_s</A></EM>. no_mod_m, mod_x, mod_s, and no_mod_s</A></EM>.
</P> </P>
<H3><A name="refs">References</H3> <H3><A name="refs">References</H3>
<P><A href="http://www.perldoc.com/perl5.6/pod/perlre.html"> Perl 5.6.</A></P> <P><A href="http://perldoc.perl.org/perlre.html"> Perl 5.8.</A></P>
<HR> <HR>
<P></P> <P></P>
<p>Revised&nbsp; <p>Revised&nbsp;

View File

@ -58,7 +58,7 @@
<h3>Comparison 1: Long Search</h3> <h3>Comparison 1: Long Search</h3>
<p>For each of the following regular expressions the time taken to find all <p>For each of the following regular expressions the time taken to find all
occurrences of the expression within a long English language text was measured occurrences of the expression within a long English language text was measured
(<a href="ftp://ibiblio.org/pub/docs/books/gutenberg/etext02/mtent12.zip">mtent12.txt</a> (<a href="http://www.gutenberg.org/files/3200/old/mtent12.zip">mtent12.txt</a>
from <a href="http://promo.net/pg/">Project Gutenberg</a>, 19Mb).&nbsp;</p> from <a href="http://promo.net/pg/">Project Gutenberg</a>, 19Mb).&nbsp;</p>
<P><table border="1" cellspacing="1"> <P><table border="1" cellspacing="1">
<tr> <tr>

View File

@ -39,7 +39,7 @@
<h3>Comparison 1: Long Search</h3> <h3>Comparison 1: Long Search</h3>
<p>For each of the following regular expressions the time taken to find all <p>For each of the following regular expressions the time taken to find all
occurrences of the expression within a long English language text was measured occurrences of the expression within a long English language text was measured
(<a href="ftp://ibiblio.org/pub/docs/books/gutenberg/etext02/mtent12.zip">mtent12.txt</a> (<a href="http://www.gutenberg.org/files/3200/old/mtent12.zip">mtent12.txt</a>
from <a href="http://promo.net/pg/">Project Gutenberg</a>, 19Mb).&nbsp;</p> from <a href="http://promo.net/pg/">Project Gutenberg</a>, 19Mb).&nbsp;</p>
<P>%long_twain_search%</P> <P>%long_twain_search%</P>
<h3>Comparison 2: Medium Sized Search</h3> <h3>Comparison 2: Medium Sized Search</h3>