팩토리 » Api

stringrtrim

Description

기본 트림 방식은 화이트 스페이스 문자(스페이스, 탭) 및 라인 구분 문자(LF, CR) 문자를 공백 문자열로 치환한다.

strRightTrimChar 지정한 경우, 해당 문자를 빈 문자열로 치환한다.

Parameters

Parameters Type Description
strString STRING 원본 문자열
strRightTrimChar STRING [옵션] 뒤에서 트림 처리할 문자

Return Value

Type Description
STRING 트림 처리된 문자열

Remark

strRightTrimChar 파라미터를 지정하지 않거나, 빈 문자열로 지정한 경우, 기본 트림 방식으로 동작한다.

Example

function btn_trim_on_mouseup(objInst) { // 결과값: "000123000" factory.consoleprint("[" + factory.stringtrim(" 000123000 ") + "]"); // 결과값: "123" factory.consoleprint("[" + factory.stringtrim("000123000", "0", "0") + "]"); // 결과값: "123000" factory.consoleprint("[" + factory.stringltrim("000123000", "0") + "]"); // 결과값: "000123" factory.consoleprint("[" + factory.stringrtrim("000123000", "0") + "]"); // 결과값: "000123 " factory.consoleprint("[" + factory.stringltrim(" 000123000 ") + "]"); // 결과값: " 000123" factory.consoleprint("[" + factory.stringrtrim(" 000123000 ") + "]"); }

See Also

stringltrim
stringtrim

Viewer Ver.

9.1.1.1

Update Date

20180705