subproject libs/regex/example ;


unit-test timer : timer/regex_timer.cpp 
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		release
	:
		timer/input_script.txt
	;

unit-test jgrep : jgrep/jgrep.cpp jgrep/main.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		release
	:
		-n boost/ ../../../boost/regex.hpp
	;

unit-test credit_card_example : snippets/credit_card_example.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	;


unit-test partial_regex_grep : snippets/partial_regex_grep.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../index.htm
	;

unit-test partial_regex_match : snippets/partial_regex_match.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		1234-5678-8765-4
	;

unit-test regex_grep_example_1 : snippets/regex_grep_example_1.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../../../boost/smart_ptr.hpp
	;

unit-test regex_grep_example_2 : snippets/regex_grep_example_2.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../../../boost/smart_ptr.hpp
	;

unit-test regex_grep_example_3 : snippets/regex_grep_example_3.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../../../boost/smart_ptr.hpp
	;

unit-test regex_grep_example_4 : snippets/regex_grep_example_4.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../../../boost/smart_ptr.hpp
	;

unit-test regex_match_example : snippets/regex_match_example.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		-auto
	;

unit-test regex_merge_example : snippets/regex_merge_example.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../../../boost/smart_ptr.hpp
	;

unit-test regex_search_example : snippets/regex_search_example.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../../../boost/smart_ptr.hpp
	;

unit-test regex_split_example_1 : snippets/regex_split_example_1.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		-auto
	;

unit-test regex_split_example_2 : snippets/regex_split_example_2.cpp
   <lib>../build/libboost_regex$(SUFLIB) 
	: 
		<include>../../../
		<define>BOOST_REGEX_NO_LIB=1
		<define>BOOST_REGEX_STATIC_LINK=1
	: 
		debug
	:
		../index.htm
	;








