티스토리 뷰
Delphi
function ExtractFileExt(const FileName: string): string;
C++
extern PACKAGE System::UnicodeString __fastcall ExtractFileExt(const System::UnicodeString FileName)/* overload */;
Properties
Type |
Visibility |
Source |
Unit |
Parent |
function |
public |
System.SysUtils.pas System.SysUtils.hpp |
Description
Returns the extension portions of a file name.
Use ExtractFileExt to obtain the extension of a file name.
For example, the following code returns the extension of the file name specified by a variable named FileName:
MyFilesExtension := ExtractFileExt(MyFileName); // Delphi
MyFilesExtension = ExtractFileExt(MyFileName); // C++
The resulting string includes the period character that separates the name and extension parts.
This string is empty if the given file name has no extension.
Note: This function works for multi-byte character systems (MBCS).
파일 이름의 확장 부분을 반환합니다.
ExtractFileExt를 사용하여 파일 이름의 확장자를 가져옵니다.
예를 들어 다음 코드는 FileName로 명명된 변수에 지정된 파일 이름의 확장명을 반환합니다.
MyFilesExtension : = ExtractFileExt (MyFileName); // Delphi
MyFilesExtension = ExtractFileExt (MyFileName); // C ++
결과 문자열에는 이름과 확장 부분을 구분하는 마침표가 포함됩니다.
주어진 파일 이름에 확장자가 없으면 이 문자열은 비어 있습니다.
참고: 이 함수는 멀티 바이트 문자 시스템 (MBCS)에서 작동합니다.
portion 미국식 [|pɔ:rʃn] 1. (더 큰 것의) 부분 period 미국식 [|pɪriəd] (프로그래밍) 마침표 1. 기간,
시기(時期) |
출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.ExtractFileExt
'프로그래밍 언어 > Delphi' 카테고리의 다른 글
[Reference] System.Concat (0) | 2017.02.28 |
---|---|
[Reference] Vcl.Dialogs.InputQuery (0) | 2017.02.27 |
[Reference] System.SysUtils.FindNext (0) | 2017.02.25 |
[Reference] System.Readln (0) | 2017.02.23 |
[Reference] System.RunError (0) | 2017.02.22 |
- Total
- Today
- Yesterday
- wfd
- SysUtils
- tdataset
- 알고리즘
- 일기
- 교육센터
- 작문
- 정렬
- 응용
- 문법
- 영어
- ADODB
- 말하기
- 대상
- java
- RA
- 상황
- Delphi
- Reference
- System
- 스택
- VCL
- Pte
- 왕초보 영어회화 100일의 기적
- 자료구조
- 독해
- 여행영어 100일의 기적
- 설명
- 계산기
- SWT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |