On Tue, Nov 05, 2002 at 11:14:37AM +0000, Angus Leeming wrote: > void InsetCommandParams::setFromString(string const & b) > { > string::size_type idx = b.find("|++|"); > if (idx == string::npos) { > cmdname = b; > contents = ""; > options = ""; > return; > }
Actually I don't really like this idea of magic delimiters. At least if we can't pass three separate strings (which should be the prefered solution) we could use some "safe char" e.g. '\001' and read from the string with getline. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)