negative indexes support added to *_nth, *_head and *_tail algorithms

[SVN r32475]
This commit is contained in:
Pavol Droba
2006-01-31 12:36:32 +00:00
parent d9ebe5da13
commit dd11014682
5 changed files with 248 additions and 146 deletions

View File

@ -188,7 +188,7 @@ namespace boost {
find_nth(
Range1T& Input,
const Range2T& Search,
unsigned int Nth)
int Nth)
{
return nth_finder(Search,Nth)(
begin(Input),end(Input));
@ -218,7 +218,7 @@ namespace boost {
ifind_nth(
Range1T& Input,
const Range2T& Search,
unsigned int Nth,
int Nth,
const std::locale& Loc=std::locale())
{
return nth_finder(Search,Nth,is_iequal(Loc))(
@ -248,7 +248,7 @@ namespace boost {
BOOST_STRING_TYPENAME range_result_iterator<RangeT>::type>
find_head(
RangeT& Input,
unsigned int N)
int N)
{
return head_finder(N)(
begin(Input),end(Input));
@ -278,7 +278,7 @@ namespace boost {
BOOST_STRING_TYPENAME range_result_iterator<RangeT>::type>
find_tail(
RangeT& Input,
unsigned int N)
int N)
{
return tail_finder(N)(
begin(Input),end(Input));