Boost logo

Boost Users :

From: Yang Zhang (yanghatespam_at_[hidden])
Date: 2008-06-12 17:40:06


*bump*, and also....

When using the split_iterator, is there a way to find a match's offset
into the string? (It seems I can only dereference the iterator to get
the string, when I would instead like to find the position.)

On Fri, Jun 6, 2008 at 4:02 PM, Yang Zhang <yanghatespam_at_[hidden]> wrote:
>
> Is there a way to split a string only n times? (a la Java's String.split(String, int)) Can one do this in reverse? Is it possible to do this using the split iterator? (Simple example is if I'd like to implement Unix basename and dirname using these algos.)
>
> Is there anything that could interpret a (C-like) string literal? E.g.:
>
> "\"hello,\\nworld!\"" -> "hello,\nworld!"
>
> Thanks in advance!
> --
> Yang Zhang
> http://www.mit.edu/~y_z/
>

--
Yang Zhang
http://www.mit.edu/~y_z/

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