Update of /cvsroot/boost/boost/libs/regex/test/regress
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2334/libs/regex/test/regress
Modified Files:
test_replace.cpp
Log Message:
Added new test for Perl style formatting with \u and \l.
Index: test_replace.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/regex/test/regress/test_replace.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- test_replace.cpp 21 Jan 2005 17:26:28 -0000 1.3
+++ test_replace.cpp 19 Mar 2007 13:21:05 -0000 1.4
@@ -55,6 +55,7 @@
TEST_REGEX_REPLACE("(A+)", perl, "...AAA,,,", match_default|format_no_copy,
"\\l$1", "aAA");
TEST_REGEX_REPLACE("(A+)", perl, "...AAA,,,", match_default|format_no_copy,
"\\L$1", "aaa");
TEST_REGEX_REPLACE("(A+)", perl, "...AAA,,,", match_default|format_no_copy,
"\\L$1\\E$1", "aaaAAA");
+ TEST_REGEX_REPLACE("\\w+", perl, "fee FOO FAR bAR",
match_default|format_perl, "\\L\\u$0", "Fee Foo Far Bar");
// sed format sequences:
TEST_REGEX_REPLACE("(a+)(b+)", perl, " ...aabb,,",
match_default|format_sed|format_no_copy, "\\0", "aabb");
TEST_REGEX_REPLACE("(a+)(b+)", perl, " ...aabb,,",
match_default|format_sed|format_no_copy, "\\1", "aa");
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs