Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/regex/doc/examples.html @ 35

Last change on this file since 35 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 7.1 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3   <head>
4      <title>Boost.Regex: Examples</title>
5      <meta name="generator" content="HTML Tidy, see www.w3.org">
6      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7      <link rel="stylesheet" type="text/css" href="../../../boost.css">
8   </head>
9   <body>
10      <p></p>
11      <table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="0">
12         <tr>
13            <td valign="top" width="300">
14               <h3><a href="../../../index.htm"><IMG height="86" alt="C++ Boost" src="../../../boost.png" width="277" border="0"></a></h3>
15            </td>
16            <td width="353">
17               <h1 align="center">Boost.Regex</h1>
18               <h2 align="center">Examples</h2>
19            </td>
20            <td width="50">
21               <h3><a href="index.html"><IMG height="45" alt="Boost.Regex Index" src="uarrow.gif" width="43" border="0"></a></h3>
22            </td>
23         </tr>
24      </table>
25      <BR>
26      <BR>
27      <HR>
28      <H3>Test Programs</H3>
29      <H4>regress:</H4>
30      <P>A regression test application that gives the matching/searching algorithms a
31         full workout. The presence of this program is your guarantee that the library
32         will behave as claimed - at least as far as those items tested are concerned -
33         if anyone spots anything that isn't being tested I'd be glad to hear about it.</P>
34      <P>Directory: <A href="../test/regress">libs/regex/test/regress</A>.</P>
35      <P>Files: <A href="../test/regress/basic_tests.cpp">basic_tests.cpp</A> <A href="../test/regress/test_deprecated.cpp">
36            test_deprecated.cpp</A> <A href="../test/regress/main.cpp">main.cpp</A>.</P>
37      <H4>bad_expression_test:</H4>
38      <P>Verifies that "bad" regular expressions don't cause the matcher to go into
39         infinite loops, but to throw an exception instead.</P>
40      <P>Directory: <A href="../test/pathology">libs/regex/test/pathology</A>.</P>
41      <P>Files: <A href="../test/pathology/bad_expression_test.cpp">bad_expression_test.cpp</A>.</P>
42      <H4>recursion_test:</H4>
43      <P>Verifies that the matcher can't overrun the stack (no matter what the
44         expression).</P>
45      <P>Directory: <A href="../test/pathology">libs/regex/test/pathology</A>.</P>
46      <P>Files: <A href="../test/pathology/recursion_test.cpp">recursion_test.cpp</A>.</P>
47      <H4>concepts:</H4>
48      <P>Verifies that the library meets all documented concepts (a compile only test).</P>
49      <P>Directory: <A href="../test/concepts">libs/regex/test/concepts</A>.</P>
50      <P>Files: <A href="../test/concepts/concept_check.cpp">concept_check.cpp</A>.</P>
51      <H4>captures_test:</H4>
52      <P>Test code for captures.</P>
53      <P>Directory: <A href="../test/captures">libs/test/captures</A>.</P>
54      <P>Files: <A href="../test/captures/captures_test.cpp">captures_test.cpp</A>.</P>
55      <H3>Example programs</H3>
56      <H4>grep</H4>
57      <P>A simple grep implementation, run with the -h command line option to find out
58         its usage.</P>
59      <P>Files: <A href="../example/grep/grep.cpp">grep.cpp</A></P>
60      <H4>timer.exe</H4>
61      <P>A simple interactive expression matching application, the results of all
62         matches are timed, allowing the programmer to optimize their regular
63         expressions where performance is critical.</P>
64      <P>Files: <A href="../example/timer/regex_timer.cpp">regex_timer.cpp</A>.</P>
65      <H4>Code snippets</H4>
66      <P>The snippets examples contain the code examples used in the documentation:</P>
67      <P><A href="../example/snippets/captures_example.cpp">captures_example.cpp</A>:
68         Demonstrates the use of captures.</P>
69      <P><A href="../example/snippets/credit_card_example.cpp">credit_card_example.cpp</A>:
70         Credit card number formatting code.</P>
71      <P><A href="../example/snippets/partial_regex_grep.cpp">partial_regex_grep.cpp</A>:
72         Search example using partial matches.</P>
73      <P><A href="../example/snippets/partial_regex_match.cpp">partial_regex_match.cpp</A>:
74         regex_match example using partial matches.</P>
75      <P><A href="../example/snippets/regex_iterator_example.cpp">regex_iterator_example.cpp</A>:
76         Iterating through a series of matches.</P>
77      <P><A href="../example/snippets/regex_match_example.cpp">regex_match_example.cpp</A>:
78         ftp based regex_match example.</P>
79      <P><A href="../example/snippets/regex_merge_example.cpp">regex_merge_example.cpp</A>:
80         regex_merge example: converts a C++ file to syntax highlighted HTML.</P>
81      <P><A href="../example/snippets/regex_replace_example.cpp">regex_replace_example.cpp</A>:
82         regex_replace example: converts a C++ file to syntax highlighted HTML</P>
83      <P><A href="../example/snippets/regex_search_example.cpp">regex_search_example.cpp</A>:
84         regex_search example: searches a cpp file for class definitions.</P>
85      <P><A href="../example/snippets/regex_token_iterator_eg_1.cpp">regex_token_iterator_eg_1.cpp</A>:
86         split a string into a series of tokens.</P>
87      <P><A href="../example/snippets/regex_token_iterator_eg_2.cpp">regex_token_iterator_eg_2.cpp</A>:
88         enumerate the linked URL's in a HTML file.</P>
89      <P>The following are deprecated:</P>
90      <P><A href="../example/snippets/regex_grep_example_1.cpp">regex_grep_example_1.cpp</A>:
91         regex_grep example 1: searches a cpp file for class definitions.</P>
92      <P><A href="../example/snippets/regex_grep_example_2.cpp">regex_grep_example_2.cpp</A>:
93         regex_grep example 2: searches a cpp file for class definitions, using a global
94         callback function.</P>
95      <P><A href="../example/snippets/regex_grep_example_3.cpp">regex_grep_example_3.cpp</A>:
96         regex_grep example 2: searches a cpp file for class definitions, using a bound
97         member function callback.</P>
98      <P><A href="../example/snippets/regex_grep_example_4.cpp">regex_grep_example_4.cpp</A>:
99         regex_grep example 2: searches a cpp file for class definitions, using a C++
100         Builder closure as a callback.</P>
101      <P><A href="../example/snippets/regex_split_example_1.cpp">regex_split_example_1.cpp</A>:
102         regex_split example: split a string into tokens.</P>
103      <P><A href="../example/snippets/regex_split_example_2.cpp">regex_split_example_2.cpp</A>
104         : regex_split example: spit out linked URL's.</P>
105      <P></P>
106      <HR>
107      <p>Revised&nbsp; 
108         <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan --> 
109         28 June 2004&nbsp; 
110         <!--webbot bot="Timestamp" endspan i-checksum="39359" --></p>
111      <p><i>© Copyright John Maddock&nbsp;1998-
112            <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y" startspan -->  2004<!--webbot bot="Timestamp" endspan i-checksum="39359" --></i></p>
113      <P><I>Use, modification and distribution are subject to the Boost Software License,
114            Version 1.0. (See accompanying file <A href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A>
115            or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P>
116   </body>
117</html>
Note: See TracBrowser for help on using the repository browser.