RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.Trim Function

Trims leading and trailing spaces and control characters from a string.

Pascal
function Trim(const S: string): string; overload;
C++
AnsiString Trim(const AnsiString S);

Trim removes leading and trailing spaces and control characters from the given string S. 

In the 7-bit ASCII character set defined in ANSI X3.4-1977 (C0 and G0), "control codes" are defined as all characters whose code is between 0 and 31. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!