forked from boostorg/regex
Added extra non-greedy repeat tests,
fixed concept checks for vc6 (they don't work, and won't work). [SVN r22423]
This commit is contained in:
@ -88,6 +88,8 @@ int main()
|
|||||||
r.assign(c_exp, c_exp+1);
|
r.assign(c_exp, c_exp+1);
|
||||||
r.assign(c_exp, c_exp+1, boost::regex::perl);
|
r.assign(c_exp, c_exp+1, boost::regex::perl);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_STD_ITERATOR
|
||||||
//
|
//
|
||||||
//check iterators work with std lib algorithms:
|
//check iterators work with std lib algorithms:
|
||||||
//
|
//
|
||||||
@ -97,6 +99,7 @@ int main()
|
|||||||
boost::cregex_token_iterator rk, rm;
|
boost::cregex_token_iterator rk, rm;
|
||||||
std::distance(rk, rm);
|
std::distance(rk, rm);
|
||||||
std::advance(rk, 0);
|
std::advance(rk, 0);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1018,6 +1018,7 @@ ab.{2,5}? ab__ 0 4
|
|||||||
ab.{2,5}? ab_______ 0 4
|
ab.{2,5}? ab_______ 0 4
|
||||||
ab.{2,5}?xy ab______xy -1 -1
|
ab.{2,5}?xy ab______xy -1 -1
|
||||||
ab.{2,5}xy ab_xy -1 -1
|
ab.{2,5}xy ab_xy -1 -1
|
||||||
|
(.*?).somesite \n\n555.somesite 2 14 2 5
|
||||||
|
|
||||||
; now again for single character repeats:
|
; now again for single character repeats:
|
||||||
|
|
||||||
@ -1054,6 +1055,7 @@ ab_{2,5}? ab__ 0 4
|
|||||||
ab_{2,5}? ab_______ 0 4
|
ab_{2,5}? ab_______ 0 4
|
||||||
ab_{2,5}?xy ab______xy -1 -1
|
ab_{2,5}?xy ab______xy -1 -1
|
||||||
ab_{2,5}xy ab_xy -1 -1
|
ab_{2,5}xy ab_xy -1 -1
|
||||||
|
(5*?).somesite //555.somesite 2 14 2 5
|
||||||
|
|
||||||
; and again for sets:
|
; and again for sets:
|
||||||
ab[_,;]*xy abxy_ 0 4
|
ab[_,;]*xy abxy_ 0 4
|
||||||
@ -1089,6 +1091,7 @@ ab[_,;]{2,5}? ab__ 0 4
|
|||||||
ab[_,;]{2,5}? ab_______ 0 4
|
ab[_,;]{2,5}? ab_______ 0 4
|
||||||
ab[_,;]{2,5}?xy ab______xy -1 -1
|
ab[_,;]{2,5}?xy ab______xy -1 -1
|
||||||
ab[_,;]{2,5}xy ab_xy -1 -1
|
ab[_,;]{2,5}xy ab_xy -1 -1
|
||||||
|
(\d*?).somesite //555.somesite 2 14 2 5
|
||||||
|
|
||||||
; and again for tricky sets with digraphs:
|
; and again for tricky sets with digraphs:
|
||||||
ab[_[.ae.]]*xy abxy_ 0 4
|
ab[_[.ae.]]*xy abxy_ 0 4
|
||||||
@ -1124,6 +1127,7 @@ ab[_[.ae.]]{2,5}? ab__ 0 4
|
|||||||
ab[_[.ae.]]{2,5}? ab_______ 0 4
|
ab[_[.ae.]]{2,5}? ab_______ 0 4
|
||||||
ab[_[.ae.]]{2,5}?xy ab______xy -1 -1
|
ab[_[.ae.]]{2,5}?xy ab______xy -1 -1
|
||||||
ab[_[.ae.]]{2,5}xy ab_xy -1 -1
|
ab[_[.ae.]]{2,5}xy ab_xy -1 -1
|
||||||
|
([5[.ae.]]*?).somesite //555.somesite 2 14 2 5
|
||||||
|
|
||||||
; new bugs detected in spring 2003:
|
; new bugs detected in spring 2003:
|
||||||
- normal match_continuous REG_NO_POSIX_TEST
|
- normal match_continuous REG_NO_POSIX_TEST
|
||||||
|
Reference in New Issue
Block a user