[fpc-pascal] Trim repeated whitespace from a string
graemeg.lists at gmail.com
Fri May 26 16:07:45 CEST 2006
Anybody know of a function that can remove (normalize) a string by
remove all beginning and ending whitespace as well as replace all
repeated spaces with a single space. A bonus would be to remove tabs
and newlines chars as well, but that is not so important.
Before: " This is what it should look like. "
After: "This is what it should look like."
There's no place like 127.0.0.1
More information about the fpc-pascal