[fpc-pascal] Trim(): incompatibility with Delphi

patspiper patspiper at gmail.com
Tue Mar 6 17:42:58 CET 2012

On 06/03/12 11:00, michael.vancanneyt at wisa.be wrote:
> On Mon, 5 Mar 2012, Bart wrote:
>> Hi,
>> Brought up in Lazarus forums.
>> Fpc Trim(): Trim whitespace from the ends of a string.
>> Delphi Trim(): Trims leading and trailing spaces and control
>> characters from a string.
> Depends on what you mean by whitespace, of course. FPC strips 
> everything below Ord(' '), and thus should behave the same as Delphi.
 From http://www.freepascal.org/docs-html/rtl/sysutils/trim.html:

"Trim strips blank characters (spaces) at the beginning and end of S and 
returns the resulting string. Only #32 characters are stripped."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120306/998635b7/attachment.html>

More information about the fpc-pascal mailing list