[fpc-pascal] Trim repeated whitespace from a string

Graeme Geldenhuys graemeg.lists at gmail.com
Sat May 27 16:51:00 CEST 2006


Hi,


On 5/27/06, Michael Van Canneyt <michael at freepascal.org> wrote:
> Use Trim from sysutils and then DelSpace1 from strutils.
>
> http://www.freepascal.org/docs-html/rtl/strutils/delspace1.html
>
> It might be a good idea to look at
>
> http://www.freepascal.org/docs-html/rtl/strutils/index-5.html
>
> Just so you know what is in store...
>
> Michael.


Before all the replies, I managed to create my own custom function.  I
never knew about DelSpace1 or the StrUtils unit. Thanks everybody!  I
will go have a look at StrUtils unit and improve my own code if
needed.


Regards,
  Graeme.



-- 
There's no place like 127.0.0.1


More information about the fpc-pascal mailing list