티스토리 뷰

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

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.

 

문자열의 앞뒤 공백을 제거하고, 문자열에서 문자를 제어합니다.

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. 가장 중요한, 선두적인
2. (
경주・시합에서) 선두의

trailing 미국·영국 [tréiliŋ]   영국식   

질질 끌리는; 길게 나부끼는 <연기·구름 (())>; 기는 <덩굴 (())>

trim (trims) 미국·영국 [trɪm]   영국식   중요

1. (끝부분을 잘라 내거나 하여) 다듬다, 손질하다
2. (
불필요한 부분을) 잘라 내다
3. (
특히 가장자리를) 장식하다

whose 미국·영국 [hu:z]   영국식   중요

1. (의문문에서) 누구의
2.
소유의 의미와 함께 어떤 사람・사물을 수식하는 형용사절을 이끄는 데 씀
3.
소유의 의미와 함께 어떤 사람・사물에 대해 정보를 덧붙일 때 씀

whose 중요

1. 누구의
2.
누구의 것
3. (
그 사람의) …가 …하는 바의

 

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.Trim

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함