For Programmers: Free Programming Magazines  


Home > Archive > Tcl > July 2004 > bug? in textutil::splitx only first parantheses captured.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author bug? in textutil::splitx only first parantheses captured.
Klaus Robert Suetterlin From:

2004-07-29, 3:58 pm

I was thinking about a new split variant for tcllib's textutil package
(as proposed by Donald Arseneau). So I checked textutil and found
that it already contained a splitx. I tested it and found it would
not work correct --- as I understand its specification.

It only captures the first parantheses of the separator.

When You do [textutil::splitx "a b c" "( (b) )"] You will get
a [list a { b } c] instead of a [list a { b } b c] as I'd expect.

Is this a feature or a bug?

Regards, Robert S.

P.S.: Of course I did try to create a splitx that captures all
parantheses of the separator correctly. I succeeded, but had some
problems with the regexp command, I will do a separate post on that.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com