Re: [Boost-users] Quick questions on string algorithms
*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@gmail.com> 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/
participants (1)
-
Yang Zhang