On 09/07/2011 08:07 AM, Julien Rioux wrote:
On 06/09/2011 6:28 PM, Richard Heck wrote:
On 09/06/2011 11:11 AM, Julien Rioux wrote:
On 06/09/2011 4:49 PM, Jean-Marc Lasgouttes wrote:
Le 06/09/11 16:44, Julien Rioux a écrit :
Are there quick ways to join a vector into a single string and vice
versa, à la python?
string = ','.join(list)
list = string.split(',')
A bit more verbose, but getVectorFromString in lstrings.h is what you
want.
JMarc
Thanks, will try.
And getStringFromVector will let you go the other way. You can specify
the delimiter, etc.
Yep, found all that after Jean-Marc pointed it out. Any reason why not
to use getStringFromVector and friend in ModuleList.cpp, instead of
the split in a while loop that is used there in a number of places?
No, I don't think so. What I do think is that that code was written
early in my days with LyX. Please feel free to simplify it.
Richard