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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users