| Package | mx.utils |
| Class | public class StringUtil |
| Inheritance | StringUtil Object |
StringUtil.substitute() Methods등의 Methods를 호출합니다.
| Methods | 정의 | ||
|---|---|---|---|
![]() | hasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
| Object | |
![]() | isPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
| Object | |
| isWhitespace (character:String ):Boolean
[static]
지정한 string가 단일의 공백, 탭, 복귀 캐릭터, 개행 캐릭터, 또는 용지 보내 캐릭터의 경우,
true 를 돌려줍니다. | StringUtil | ||
![]() | propertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
| Object | |
![]() | setPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
| Object | |
| substitute (str:String , ... rest):String
[static]
지정한 string내의 "{n}" 토큰을, 건네받은 대응하는 Parameters와 옮겨놓습니다.
| StringUtil | ||
![]() | toString ():String
지정된 object의 string 표현을 돌려줍니다.
| Object | |
| trim (str:String ):String
[static]
지정한 string의 선두와 말미로부터, 모든 공백 캐릭터를 삭제합니다.
| StringUtil | ||
![]() | valueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
| Object | |
| isWhitespace | () | Methods |
public static function isWhitespace(character:String ):Boolean
지정한 string가 단일의 공백, 탭, 복귀 캐릭터, 개행 캐릭터, 또는 용지 보내 캐릭터의 경우,true 를 돌려줍니다.
character:String — 조회의 대상이 되고 있는 string입니다.
|
Boolean —
지정한 string가 단일의 공백, 탭, 복귀 캐릭터, 개행 캐릭터, 또는 용지 보내 캐릭터의 경우,true 가 됩니다.
|
| substitute | () | Methods |
public static function substitute(str:String , ... rest):String 지정한 string내의 "{n}" 토큰을, 건네받은 대응하는 Parameters와 옮겨놓습니다.
Parametersstr:String — 값환을 실시하는 string입니다. 이 string에는 {n} 형식의 특수한 토큰을 포함할 수가 있습니다. 여기서,n 는 0 으로부터 시작되는 인덱스로, 지정되었을 경우, 그 인덱스로 검출된 추가 Parameters에 값환됩니다.
|
|
... rest — 각각의 {n} 위치에 있는 str Parameters내에서 값환가능인 추가 Parameters입니다. 여기서 n 는, 지정된 값의 배열의 (0 으로부터 시작된다) 정수 인덱스입니다. 최초의 Parameters가 배열의 경우, 이 배열은 Parameters 리스트로서 사용됩니다. 이것에 의해,... rest 서명을 사용하는 다른 Methods로 이 routine를 재사용할 수 있습니다. 다음에 예를 나타냅니다.
public function myTracer(str:String, ... rest) :void
{
label.text += StringUtil.substitute(str, rest) + "\n";
}
|
String —
모든 {n} 토큰이, 지정된 대응하는 Parameters와 값환된 새로운 string입니다.
|
| trim | () | Methods |
public static function trim(str:String ):String 지정한 string의 선두와 말미로부터, 모든 공백 캐릭터를 삭제합니다.
Parametersstr:String — 공백을 삭제할 필요가 있는 string입니다.
|
String —
선두 및 마지막 공백을 삭제해 갱신된 string입니다.
|
코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트
현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/utils/StringUtil.html