Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > Re: Weak formal...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 894 of 913
Post > Topic >>

Re: Weak formal methods ?

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




 3 Posts in Topic:
Weak formal methods ?
problems@[EMAIL PROTECTED  2007-10-28 20:35:38 
Re: Weak formal methods ?
CBFalconer <cbfalconer  2007-10-29 00:08:11 
Re: Weak formal methods ?
Georg Bauhaus <rm.tsoh  2007-10-29 10:45:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 22:42:53 CDT 2008.