
12 Jun
2008
12 Jun
'08
9:40 p.m.
*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
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/