System.SysUtils.Trim

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Trim(const S: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall Trim(const System::UnicodeString S)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

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

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 from 0 through 31.

See Also