From 30acb7d2f8f6b838779463dbfec2b48b5505a20f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 15 Jan 2005 12:29:59 +0000 Subject: [PATCH] Rewritten grep example program. "touched" some of the sources to force regression tests to rebuild. Split test code up some more to help msvc-stlport. [SVN r26705] --- doc/Attic/examples.html | 11 +- doc/examples.html | 11 +- example/Jamfile | 2 +- example/Jamfile.v2 | 2 +- example/grep/grep.cpp | 212 +++++++++++++++++++++++++ example/jgrep/bc55.mak | 51 ------ example/jgrep/bcb4.mak | 51 ------ example/jgrep/bcb5.mak | 50 ------ example/jgrep/gcc.mak | 32 ---- example/jgrep/jgrep.cpp | 148 ----------------- example/jgrep/jgrep.h | 42 ----- example/jgrep/main.cpp | 289 ---------------------------------- example/jgrep/vc6-stlport.mak | 18 --- example/jgrep/vc6.mak | 18 --- src/instances.cpp | 1 - src/winstances.cpp | 2 + test/regress/test_sets.cpp | 7 + 17 files changed, 231 insertions(+), 716 deletions(-) create mode 100644 example/grep/grep.cpp delete mode 100644 example/jgrep/bc55.mak delete mode 100644 example/jgrep/bcb4.mak delete mode 100644 example/jgrep/bcb5.mak delete mode 100644 example/jgrep/gcc.mak delete mode 100644 example/jgrep/jgrep.cpp delete mode 100644 example/jgrep/jgrep.h delete mode 100644 example/jgrep/main.cpp delete mode 100644 example/jgrep/vc6-stlport.mak delete mode 100644 example/jgrep/vc6.mak diff --git a/doc/Attic/examples.html b/doc/Attic/examples.html index 8f73b69a..737b11ee 100644 --- a/doc/Attic/examples.html +++ b/doc/Attic/examples.html @@ -53,13 +53,10 @@

Directory: libs/test/captures.

Files: captures_test.cpp.

Example programs

-

jgrep.exe

-

A simple grep implementation, run with no command line options to find out its - usage. Look at fileiter.cpp/fileiter.hpp and - the mapfile class to see an example of a "smart" bidirectional iterator that - can be used with boost.regex or any other STL algorithm.

-

Files: jgrep.cpp, - main.cpp.

+

grep

+

A simple grep implementation, run with the -h command line option to find out + its usage.

+

Files: grep.cpp

timer.exe

A simple interactive expression matching application, the results of all matches are timed, allowing the programmer to optimize their regular diff --git a/doc/examples.html b/doc/examples.html index 8f73b69a..737b11ee 100644 --- a/doc/examples.html +++ b/doc/examples.html @@ -53,13 +53,10 @@

Directory: libs/test/captures.

Files: captures_test.cpp.

Example programs

-

jgrep.exe

-

A simple grep implementation, run with no command line options to find out its - usage. Look at fileiter.cpp/fileiter.hpp and - the mapfile class to see an example of a "smart" bidirectional iterator that - can be used with boost.regex or any other STL algorithm.

-

Files: jgrep.cpp, - main.cpp.

+

grep

+

A simple grep implementation, run with the -h command line option to find out + its usage.

+

Files: grep.cpp

timer.exe

A simple interactive expression matching application, the results of all matches are timed, allowing the programmer to optimize their regular diff --git a/example/Jamfile b/example/Jamfile index f7b8c21a..0b0c4572 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -63,7 +63,7 @@ rule regex-test-run ( sources + : input * ) test-suite regex-examples : [ regex-test-run timer/regex_timer.cpp