[Reference] System.SysUtils.Trim
Delphi
function Trim(const S: string): string;
C++
extern PACKAGE System::UnicodeString __fastcall Trim(const System::UnicodeString S)/* overload */;
Properties
Type |
Visibility |
Source |
Unit |
Parent |
function |
public |
System.SysUtils.pas System.SysUtils.hpp |
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.
문자열의 앞뒤 공백을 제거하고, 문자열에서 문자를 제어합니다.
Trim 은 주어진 문자열 S에서 앞뒤 공백과 제어 문자를 제거합니다.
ANSI X3.4-1977 (C0 및 G0)에 정의된 7 비트 ASCII 문자 집합에서 "제어 코드"는 코드가 0에서 31 사이인 모든 문자로 정의됩니다.
Example
var Str: string; begin Str := ' 공 백 '; Str := Trim(Str);
// 결과: '공 백' Writeln(Str); Readln; end. |
leading1 미국·영국 [|li:dɪŋ] 1. 가장 중요한, 선두적인 trailing 미국·영국 [tréiliŋ] 질질 끌리는; 길게 나부끼는 <연기·구름 ((등))>; 기는 <덩굴 ((등))> trim (trims) 미국·영국 [trɪm] 1. (끝부분을 잘라 내거나 하여) 다듬다, 손질하다 whose 미국·영국 [hu:z] 1. (의문문에서) 누구의 whose 중요 1. 누구의 |
출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.Trim