by Georg Bauhaus <rm.tsoh+bauhaus@[EMAIL PROTECTED]
>
Oct 29, 2007 at 10:45 AM
On Sun, 2007-10-28 at 20:35 -0500, problems@[EMAIL PROTECTED]
wrote:
> Occasionally, like now, I want to write a small routine to:
> FOR StartLine TO EndLine DO
> RemoveMultipleConsecutiveSpaces;
> I.e. remove the extra spaces -- which I remember WS
> could insert for text to fill the line nicely.
The STRING class has some routines that I guess will be
helpful here. See http://www.gobosoft.com/eiffel/nice/elks01/string.html
feature -- Access
...
feature -- Removal
...
If this requires too many intuitions, so to speak, you can also get
Lex style parsing from that place, and probably REs with replacements.
-- Georg Bauhaus