forked from boostorg/regex
Merge accumulated minor fixes from Trunk.
[SVN r74964]
This commit is contained in:
@ -189,6 +189,8 @@ test-suite regex
|
||||
|
||||
;
|
||||
|
||||
compile test_consolidated.cpp ;
|
||||
|
||||
build-project ../example ;
|
||||
|
||||
|
||||
|
@ -216,6 +216,10 @@ void test_options2()
|
||||
TEST_REGEX_SEARCH("(a(?i)b)c", perl, "ABc", match_default, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("(a(?i)b)c", perl, "ABC", match_default, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("(a(?i)b)c", perl, "AbC", match_default, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("(?i)[dh]og", perl, "hog", match_default, make_array(0, 3, -2, -2));
|
||||
TEST_REGEX_SEARCH("(?i)[dh]og", perl, "dog", match_default, make_array(0, 3, -2, -2));
|
||||
TEST_REGEX_SEARCH("(?i)[dh]og", perl, "Hog", match_default, make_array(0, 3, -2, -2));
|
||||
TEST_REGEX_SEARCH("(?i)[dh]og", perl, "Dog", match_default, make_array(0, 3, -2, -2));
|
||||
|
||||
TEST_REGEX_SEARCH("(a(?i)B)c", perl, "abc", match_default, make_array(0, 3, 0, 2, -2, -2));
|
||||
TEST_REGEX_SEARCH("(a(?i)B)c", perl, "aBc", match_default, make_array(0, 3, 0, 2, -2, -2));
|
||||
|
29
test/test_consolidated.cpp
Normal file
29
test/test_consolidated.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2011
|
||||
* John Maddock
|
||||
*
|
||||
* Use, modification and distribution are subject to the
|
||||
* Boost Software License, Version 1.0. (See accompanying file
|
||||
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <libs/regex/src/c_regex_traits.cpp>
|
||||
#include <libs/regex/src/cpp_regex_traits.cpp>
|
||||
#include <libs/regex/src/cregex.cpp>
|
||||
#include <libs/regex/src/fileiter.cpp>
|
||||
#include <libs/regex/src/icu.cpp>
|
||||
#include <libs/regex/src/instances.cpp>
|
||||
#include <libs/regex/src/posix_api.cpp>
|
||||
#include <libs/regex/src/regex.cpp>
|
||||
#include <libs/regex/src/regex_debug.cpp>
|
||||
#include <libs/regex/src/regex_raw_buffer.cpp>
|
||||
#include <libs/regex/src/regex_traits_defaults.cpp>
|
||||
#include <libs/regex/src/static_mutex.cpp>
|
||||
#include <libs/regex/src/usinstances.cpp>
|
||||
#include <libs/regex/src/wc_regex_traits.cpp>
|
||||
#include <libs/regex/src/w32_regex_traits.cpp>
|
||||
#include <libs/regex/src/wide_posix_api.cpp>
|
||||
#include <libs/regex/src/winstances.cpp>
|
@ -30,7 +30,7 @@
|
||||
template <class I>
|
||||
typename I::value_type iterate_over(I a, I b)
|
||||
{
|
||||
typedef I::value_type value_type;
|
||||
typedef typename I::value_type value_type;
|
||||
value_type v = 0;
|
||||
while(a != b)
|
||||
{
|
||||
|
Reference in New Issue
Block a user