Re: getVectorFromString is bust

2002-11-05 Thread Angus Leeming
On Tuesday 05 November 2002 11:36 am, Andre Poenitz wrote: > On Tue, Nov 05, 2002 at 11:14:37AM +, Angus Leeming wrote: > > void InsetCommandParams::setFromString(string const & b) > > { > > string::size_type idx = b.find("|++|"); > > if (idx == string::npos) { > > cmdname =

Re: getVectorFromString is bust

2002-11-05 Thread Andre Poenitz
On Tue, Nov 05, 2002 at 11:14:37AM +, Angus Leeming wrote: > void InsetCommandParams::setFromString(string const & b) > { > string::size_type idx = b.find("|++|"); > if (idx == string::npos) { > cmdname = b; > contents = ""; > options = "";

Re: getVectorFromString is bust

2002-11-05 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> f.ex. a construct that would make us more robust is: Lars> vector a = getVectorFromString(l, " \n\t\r"); Lars> Where l is f.ex. a line read from a file, and I just want to Lars> split on all "whitespace". (or could be

Re: getVectorFromString is bust

2002-11-05 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Tuesday 05 November 2002 10:53 am, Lars Gullik Bjønnes wrote: | > Angus Leeming <[EMAIL PROTECTED]> writes: | > | To tell me that my thought process is invalid is just plain rude. | > | > At least I stay away from the "f" words. | | I promise not to

Re: getVectorFromString is bust

2002-11-05 Thread Angus Leeming
On Tuesday 05 November 2002 10:53 am, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | To tell me that my thought process is invalid is just plain rude. > > At least I stay away from the "f" words. I promise not to swear and apologise for having done so. I promise not to

Re: getVectorFromString is bust

2002-11-05 Thread Andre Poenitz
On Tue, Nov 05, 2002 at 11:53:27AM +0100, Lars Gullik Bjønnes wrote: > | To tell me that my thought process is invalid is just plain rude. > > At least I stay away from the "f" words. "Fangus' fought frocess fis finvalid". See? I dare. Andre' -- Those who desire to give up Freedom in order to

Re: getVectorFromString is bust

2002-11-05 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | To tell me that my thought process is invalid is just plain rude. At least I stay away from the "f" words. -- Lgb

Re: getVectorFromString is bust

2002-11-05 Thread Angus Leeming
On Tuesday 05 November 2002 10:31 am, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | Lars, what the fuck have you done to getVectorFromString? > | > :-) > > The fuctions description is completely bogus then, and behaves > differently from _all_ similiar functions that I

Re: getVectorFromString is bust

2002-11-05 Thread Andre Poenitz
On Tue, Nov 05, 2002 at 11:39:36AM +0100, Lars Gullik Bjønnes wrote: > src/mathed/math_extern.C: > std::vector tmp = getVectorFromString(out, "$$"); Hm, not my doing... Dekel: Why is this needed? [And since I am at it: while (is) { getline(is, line); if (line.find("Incorrect syn

Re: getVectorFromString is bust

2002-11-05 Thread Angus Leeming
On Tuesday 05 November 2002 10:39 am, Lars Gullik Bjønnes wrote: > [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > | Turn the #if on! > | On second thought, don't! I'd rather go through the sources and fix up > | the cases that expects this behaviour from getVectorFromString. > > And that is -two

Re: getVectorFromString is bust

2002-11-05 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Tue, Nov 05, 2002 at 11:31:02AM +0100, Lars Gullik Bjønnes wrote: | > actually it is working just as I planned it to work. | | Whereas it might have been preferable (only from a purely practical, not to | say opportunistic point of view...) if it act

Re: getVectorFromString is bust

2002-11-05 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Turn the #if on! | On second thought, don't! I'd rather go through the sources and fix up | the cases that expects this behaviour from getVectorFromString. And that is -two- places! src/frontends/controllers/biblio.C: vector authors = getV

Re: getVectorFromString is bust

2002-11-05 Thread Andre Poenitz
On Tue, Nov 05, 2002 at 11:31:02AM +0100, Lars Gullik Bjønnes wrote: > actually it is working just as I planned it to work. Whereas it might have been preferable (only from a purely practical, not to say opportunistic point of view...) if it acted a bit more similar to the original code ;-} Andre

Re: getVectorFromString is bust

2002-11-05 Thread Andre Poenitz
On Tue, Nov 05, 2002 at 10:12:45AM +, Angus Leeming wrote: > Lars, what the fuck have you done to getVectorFromString? > > vector const authors = getVectorFromString(author, " and "); > > vector::const_iterator cit = authors.begin(); > vector::const_iterator end = authors.en

Re: getVectorFromString is bust

2002-11-05 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars, what the fuck have you done to getVectorFromString? :-) The fuctions description is completely bogus then, and behaves differently from _all_ similiar functions that I have ever seen. Delim is used in a really magic way... the function need to b