Boost logo

Boost Users :

From: Pavol Droba (droba_at_[hidden])
Date: 2005-12-01 07:11:34


Hi,

This seems like a goot idea. I like the interface with int parameter.
I'll add it to my todo list.

Thanks,
Pavol

On Thu, Dec 01, 2005 at 11:54:38AM +0200, Yuval Ronen wrote:
> Hi.
>
> I have a feature I would like to see in the string algo library.
> The present find_head function gets an unsigned int N and returns the
> head of the input string with size is at most N. I would like another
> option that will return the head of the input with size at most
> original_size minus N. In other words, all the string without the last N
> characters. if original_size < N the return would be an empty string.
>
> The interface for such a functionality might introduce a new function
> (find_head_but()?), or make the present find_head function accept a
> signed int N, instead of unsigned int, with a negetive number indicates
> the new functionality.
>
> And of course the same for find_tail.
>
> Thanks,
> Yuval
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net