주요 콘텐츠

getFileExtension

FileExtensions의 명명된 파일 형식의 파일 확장자 가져오기

구문

value = h.getFileExtension(name)

설명

value = h.getFileExtension(name)coder.make.BuildTool.FileExtensions의 명명된 파일 형식의 파일 확장자를 가져옵니다.

입력 인수

모두 확장

coder.make.BuildTool 객체에 대한 객체 핸들로, 변수로 지정됩니다.

예: tool

파일 형식의 이름으로, 문자형 벡터로 지정됩니다.

데이터형: char

출력 인수

모두 확장

파일 확장자의 값으로, 문자형 벡터로 지정됩니다.

데이터형: char

예제

tc = coder.make.ToolchainInfo;
tool = tc.getBuildTool('C Compiler');
blditm = coder.make.BuildItem('CD','.cd')
bldtm = 

	Macro  : CD
	Value : .cd
tool.addFileExtension('SourceX',blditm)
value = tool.getFileExtension('SourceX')
value  = 

.cd
tool.setFileExtension('SourceX','.ef')
value = tool.getFileExtension('SourceX')
value  = 

.ef

버전 내역

R2013a에 개발됨