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

Yang Zhang

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at