Adobe® Flash® Platform용 ActionScript® 3.0 참조 설명서
 |  패키지 및 클래스 목록 숨기기 |  패키지  |  클래스  |  새로운 내용  |  색인  |  부록  |  영어로 표시되는 이유
필터: AIR 30.0 이하, Flash Player 30.0 이하, Flash Lite 4
Flex 4.6 이하, Flash Pro CS6 이하
필터 숨기기
flash.globalization 

Collator  - AS3

패키지x

최상위 레벨
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

언어 요소

전역 상수
전역 함수
연산자
명령문, 키워드 및 지시문
특수 유형 연산자

부록

새로운 내용
컴파일러 오류
컴파일러 경고
런타임 오류
ActionScript 3으로 마이그레이션
지원되는 문자 세트
MXML 전용 태그
모션 XML 요소
Timed Text 태그
사용되지 않는 요소의 목록
액세스 가능성 구현 상수
ActionScript 예제 사용 방법
법적 고지 사항
패키지flash.globalization
클래스public final class Collator
상속Collator Inheritance Object

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

Collator 클래스는 로캘별 문자열 비교 기능을 제공합니다.

이 클래스에서는 운영 체제에서 제공된 문자열 비교 서비스를 사용합니다. 비교는 클래스 인스턴스가 만들어질 때 제공되는 로캘 식별자에 따라 다릅니다. ActionScript에서는 유니코드 문자 집합을 사용하여 문자열을 저장합니다. 부울 문자열 비교 연산자(==, !=, <, <=, >, >=)에서는 비교를 위해 유니코드 코드 포인트를 사용합니다. 대부분의 경우 결과 정렬 순서는 특정 언어 및 지역의 규칙과 일치하지 않으므로 사용자 인터페이스에 제공되는 문자열을 정렬하는 데 사용하면 안 됩니다. 반면에 이 클래스의 비교 메서드는 이러한 규칙을 지키는 순서를 제공합니다.

아래에는 언어에 따라 정렬 순서가 다른 몇 가지 예가 나와 있습니다.

  • 영어에서는 소문자 a가 대문자 A 앞에 있고 대문자 A가 소문자 b 앞에 있습니다.
  • 스웨덴어에서는 ö가 z 뒤에 있지만 독일어에서는 ö가 o 뒤에 있습니다.
  • 전통 스페인어에서는 ch가 c - d 사이에서 한 문자로 정렬됩니다.

정렬 순서는 같은 언어 및 지역에서도 용례에 따라 달라질 수 있습니다. 예를 들어 독일어에서는 전화 번호부의 이름과 사전의 단어에 여러 가지 정렬 순서가 사용됩니다. 중국어 및 일본어에서는 여러 가지 방식으로 표의 문자가 정렬됩니다. 예를 들어 발음을 기준으로 정렬되거나 문자 모양에서 사용되는 표의 문자 부수 및 획수를 기준으로 정렬됩니다. 스페인어와 그루지야어에서는 현대식 정렬과 전통식 정렬이 다릅니다.

이 클래스의 비교 메서드는 두 가지 기본 사용 모드를 제공합니다. Collator() 생성자의 initialMode 매개 변수에서 이러한 모드를 제어합니다. 기본 "정렬" 모드는 최종 사용자에게 표시되는 항목을 정렬하기 위한 모드입니다. 이 모드에서는 비교가 더욱 엄격하여 그렇지 않았을 경우 서로 같은 항목이 일관적인 방식으로 정렬되도록 합니다. 예를 들어 대문자와 소문자는 같은 것으로 비교되지 않습니다. "일치" 모드에서는 비교가 좀 더 관대합니다. 예를 들어 이 모드에서는 대문자와 소문자가 같은 것으로 취급됩니다. 다음은 이 두 모드를 모두 보여 주는 예입니다.

 
     var sortingCollator:Collator = new Collator("en-US", CollatorMode.SORTING);
     var words:Array = new  Array("Airplane" , "airplane", "boat", "Boat");
     words.sort(sortingCollator.compare);
     trace(words);
              
     var matchingCollator:Collator = new Collator("en-US", CollatorMode.MATCHING);
     if (matchingCollator.equals("Car", "car")) {
       trace("The words match!");
     }
     

위에 나타난 것처럼 생성자에 로컬 ID 매개 변수를 제공할 때도 사용자의 운영 체제 설정과 요청된 로캘이 지원되지 않는 경우 대체 로캘이 사용되는지 여부에 따라 사용자별로 정렬 동작이 달라질 수 있습니다.

예제 보기



공용 속성
 속성정의 주체
  actualLocaleIDName : String
[읽기 전용] 이 Collator 객체에서 사용된 실제 로캘 ID 이름입니다.
Collator
 Inheritedconstructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.
Object
  ignoreCase : Boolean
이 속성이 true로 설정되면 동일한 문자열 및 대/소문자만 서로 다른 문자열이 같은 것으로 평가됩니다.
Collator
  ignoreCharacterWidth : Boolean
이 속성이 true로 설정되면 중국어와 일본어에서 전각 형식과 반각 형식의 일부 문자가 같은 것으로 평가됩니다.
Collator
  ignoreDiacritics : Boolean
이 속성이 true로 설정되면 사용하는 기본 문자는 같지만 악센트 부호 또는 기타 분음 부호는 서로 다른 문자열이 같은 것으로 평가됩니다.
Collator
  ignoreKanaType : Boolean
이 속성이 true로 설정되면 사용되는 가나 문자의 유형만 서로 다른 문자열이 같은 것으로 취급됩니다.
Collator
  ignoreSymbols : Boolean
이 속성이 true로 설정되면 정렬하거나 일치시킬 때 공백, 통화 기호, 수학 기호, 다른 유형의 기호 등 기호 문자가 무시됩니다.
Collator
  lastOperationStatus : String
[읽기 전용] 이 Collator 객체에서 수행한 가장 최근 작업의 상태입니다.
Collator
  numericComparison : Boolean
문자열에 포함된 숫자 값이 문자열 비교 동안 처리되는 방식을 제어합니다.
Collator
  requestedLocaleIDName : String
[읽기 전용] 이 Collator 객체의 생성자에 전달된 요청된 로캘 ID의 이름입니다.
Collator
공용 메서드
 메서드정의 주체
  
Collator(requestedLocaleIDName:String, initialMode:String = "sorting")
지정된 로캘의 규칙에 따라 문자열 비교를 제공하는 새 Collator 객체를 생성합니다.
Collator
  
compare(string1:String, string2:String):int
두 문자열을 비교하고 첫 번째 문자열이 두 번째보다 작은지, 같은지 또는 큰지 여부를 나타내는 정수 값을 반환합니다.
Collator
  
equals(string1:String, string2:String):Boolean
두 문자열을 비교하고 두 문자열이 같은지 여부를 나타내는 부울 값을 반환합니다.
Collator
  
[정적] 이 클래스에서 지원되는 로캘 ID 이름을 모두 나열합니다.
Collator
 Inherited
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.
Object
 Inherited
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.
Object
 Inherited
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.
Object
 Inherited
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.
Object
 Inherited
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.
Object
 Inherited
지정된 객체의 문자열 표현을 반환합니다.
Object
 Inherited
지정된 객체의 프리미티브 값을 반환합니다.
Object
속성 세부 정보

actualLocaleIDName

속성
actualLocaleIDName:String  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 Collator 객체에서 사용된 실제 로캘 ID 이름입니다.

운영 체제와 Collator() 생성자에 전달된 requestedLocaleIDName 매개 변수의 값에 따라 세 가지 이름 값이 가능합니다.

  1. 요청된 로캘이 LocaleID.DEFAULT가 아니고 운영 체제에서 요청된 로캘을 지원하는 경우 requestedLocaleIDName 속성과 같은 이름이 반환됩니다.
  2. LocaleID.DEFAULT가 생성자에 전달되는 requestedLocaleIDName 매개 변수의 값으로 사용된 경우 사용자의 운영 체제에서 지정된 현재 로캘의 이름이 사용됩니다. LocaleID.DEFAULT 값은 OS의 사용자 정의된 설정을 유지합니다. requestedLocaleIDName 매개 변수로 명시적 값을 전달하면 두 로캘 ID 이름이 같아도 LocaleID.DEFAULT를 사용할 때의 결과와 달라질 수 있습니다. 사용자가 컴퓨터에 로캘 설정을 사용자 정의했을 경우 LocaleID.DEFAULT를 사용하는 대신 명시적 로캘 ID 이름을 요청하면 응용 프로그램에서 사용자 정의된 설정을 검색하지 못합니다.
  3. 운영 체제가 생성자에 지정된 requestedLocaleIDName을 지원하지 않는 경우 대체 로캘 ID 이름이 제공됩니다.



구현
    public function get actualLocaleIDName():String

관련 API 요소

ignoreCase

속성 
ignoreCase:Boolean

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 속성이 true로 설정되면 동일한 문자열 및 대/소문자만 서로 다른 문자열이 같은 것으로 평가됩니다. 예를 들어 ignoreCase 속성이 true로 설정된 경우 compare("ABC", "abc")true를 반환합니다.

문자열의 대/소문자 변환은 지정된 로캘의 규칙을 따릅니다.

ignoreCase 속성이 false이면 대문자와 소문자가 서로 다른 것으로 평가됩니다.

이 속성에 값이 할당되면 오류나 경고가 없을 경우 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

Collator() 생성자의 initialMode 매개 변수가 Collator.MATCHING으로 설정된 경우 기본값은 true입니다. Collator() 생성자의 initialMode 매개 변수가 Collator.SORTING으로 설정된 경우 기본값은 false입니다.



구현
    public function get ignoreCase():Boolean
    public function set ignoreCase(value:Boolean):void

관련 API 요소

ignoreCharacterWidth

속성 
ignoreCharacterWidth:Boolean

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 속성이 true로 설정되면 중국어와 일본어에서 전각 형식과 반각 형식의 일부 문자가 같은 것으로 평가됩니다.

기존 중국어 및 일본어 문자 집합 표준과의 호환성을 위해 유니코드는 일부 문자의 전각 및 반각 형식 모두에 대한 문자 코드를 제공합니다. 예를 들어 ignoreCharacterWidth 속성이 true이면 compare("Aア", "Aア")true를 반환합니다.

ignoreCharacterWidth 속성이 false이면 전각 형식과 반각 형식이 서로 다른 것으로 평가됩니다.

이 속성에 값이 할당되면 오류나 경고가 없을 경우 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

기본값: false.



구현
    public function get ignoreCharacterWidth():Boolean
    public function set ignoreCharacterWidth(value:Boolean):void

관련 API 요소

ignoreDiacritics

속성 
ignoreDiacritics:Boolean

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 속성이 true로 설정되면 사용하는 기본 문자는 같지만 악센트 부호 또는 기타 분음 부호는 서로 다른 문자열이 같은 것으로 평가됩니다. 예를 들어 ignoreDiacritics 속성이 true로 설정된 경우 compare("coté", "côte")true를 반환합니다.

ignoreDiacriticsfalse로 설정된 경우 분음 기호 또는 악센트 부호가 있는 기본 문자가 서로 다른 것으로 평가됩니다.

이 속성에 값이 할당되면 오류나 경고가 없을 경우 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

기본값: false.



구현
    public function get ignoreDiacritics():Boolean
    public function set ignoreDiacritics(value:Boolean):void

관련 API 요소

ignoreKanaType

속성 
ignoreKanaType:Boolean

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 속성이 true로 설정되면 사용되는 가나 문자의 유형만 서로 다른 문자열이 같은 것으로 취급됩니다. 예를 들어 ignoreKanaType 속성이 true로 설정된 경우 compare("カナ", "かな")true를 반환합니다.

ignoreKanaTypefalse이면 같은 음절을 나타내는 히라가나와 가타카나가 서로 다른 것으로 평가됩니다.

이 속성에 값이 할당되면 오류나 경고가 없을 경우 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

기본값: false.



구현
    public function get ignoreKanaType():Boolean
    public function set ignoreKanaType(value:Boolean):void

관련 API 요소

ignoreSymbols

속성 
ignoreSymbols:Boolean

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 속성이 true로 설정되면 정렬하거나 일치시킬 때 공백, 통화 기호, 수학 기호, 다른 유형의 기호 등 기호 문자가 무시됩니다. 예를 들어 ignoreSymbols 속성이 true로 설정되면 "OBrian", "O'Brian" 및 "O Brian"이 모두 같은 것으로 취급됩니다.

ignoreSymbols 속성이 false이면 기호 문자가 문자열 비교에서 고려됩니다.

이 속성에 값이 할당되면 오류나 경고가 없을 경우 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

기본값: false.



구현
    public function get ignoreSymbols():Boolean
    public function set ignoreSymbols(value:Boolean):void

관련 API 요소

lastOperationStatus

속성 
lastOperationStatus:String  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 Collator 객체에서 수행한 가장 최근 작업의 상태입니다. lastOperationStatus는 이 클래스의 생성자 또는 메서드가 호출되거나 속성이 설정될 때마다 설정됩니다. 가능한 값은 각 메서드 아래 설명을 참조하십시오.



구현
    public function get lastOperationStatus():String

관련 API 요소

numericComparison

속성 
numericComparison:Boolean

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

문자열에 포함된 숫자 값이 문자열 비교 동안 처리되는 방식을 제어합니다.

numericComparison 속성이 true로 설정되면 비교 메서드가 문자열에 나타나는 숫자를 비교를 위해 숫자 값으로 변환합니다.

이 속성이 false로 설정되면 비교에서 숫자를 문자 코드로 취급하고 지정된 로캘의 정렬 문자 규칙에 따라 숫자를 정렬합니다.

예를 들어 이 속성이 로캘 ID "en-US"에 대해 true이면 문자열 "version1", "version10" 및 "version2"는 version1 < version2 < version10 순으로 정렬됩니다.

이 속성이 "en-US"에 대해 false이면 동일한 문자열이 version1 < version10 < version2 순으로 정렬됩니다.

이 속성에 값이 할당되면 오류나 경고가 없을 경우 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

기본값: false.



구현
    public function get numericComparison():Boolean
    public function set numericComparison(value:Boolean):void

관련 API 요소

requestedLocaleIDName

속성 
requestedLocaleIDName:String  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 Collator 객체의 생성자에 전달된 요청된 로캘 ID의 이름입니다.

LocaleID.DEFAULT 값이 사용된 경우 "i-default"가 반환됩니다. 대체 로캘이 적용된 경우 사용된 실제 로캘은 요청된 로캘과 다를 수 있습니다. 실제 로캘 이름은 actualLocaleIDName 속성을 사용하여 검색할 수 있습니다.



구현
    public function get requestedLocaleIDName():String

관련 API 요소

생성자 세부 정보

Collator

()생성자
public function Collator(requestedLocaleIDName:String, initialMode:String = "sorting")

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

지정된 로캘의 규칙에 따라 문자열 비교를 제공하는 새 Collator 객체를 생성합니다.

현재 운영 체제가 requestedLocaleIDName 매개 변수에 전달된 로캘 ID를 지원하지 않으면 대체 로캘이 결정됩니다. 대체 로캘이 사용되면 대체 유형을 나타내도록 lastOperationStatus 속성이 설정됩니다.

initialMode 매개 변수는 일반적인 용도의 다양한 정렬 옵션을 설정하며 다음 값 중 하나로 설정할 수 있습니다.

  • CollatorMode.SORTING: 최종 사용자에게 표시될 텍스트 문자열 목록 정렬 등 일반적인 언어적 정렬을 위한 정렬 옵션을 설정합니다. 이 모드에서는 문자열을 비교할 때 대문자와 소문자, 악센트 부호 문자의 차이와 해당 로캘 관련 기타 차이가 고려됩니다.
  • CollatorMode.MATCHING: 두 문자열이 서로 같은지 여부를 결정하는 등 일반적인 용도의 정렬 옵션을 설정합니다. 이 모드에서는 문자열을 비교할 때 대문자와 소문자, 악센트 부호 문자 등의 차이가 무시됩니다.

다음은 로캘 ID "en-US"(영어-미국)와 CollatorMode.SORTING 옵션과 함께 Collator를 사용하여 만들어진 정렬 목록의 예입니다.

AaÄäAaAEaeÆæBbBbCcçCc

위에 나타난 것처럼 모든 문자는 언어적인 순서로 표시되고 서로 다른 값을 가진 것처럼 취급됩니다.

다음은 로캘 ID "en-US"(영어-미국)와 CollatorMode.MATCHING 옵션과 함께 Collator를 사용하여 만들어진 정렬 목록의 예입니다.

A a Ä ä A aAE ae Æ æB b B bC c ç C c

위에 나타난 것처럼 일부 문자는 언어적인 순서로 표시되고 동일한 문자 값을 가진 것처럼 취급됩니다.

정렬 순서를 좀 더 세밀하게 제어하기 위해 Collator.ignoreCase 또는 Collator.ignoreDiacritics 같은 정렬 속성을 변경할 수도 있습니다.

참조용으로 아래에는 로캘을 인식하지 않는 표준 Array.sort()를 사용하여 수행한 일치 정렬 예제가 나와 있습니다.

AAEBCaaebcÄÆäæçABab

위에서 볼 수 있는 것처럼 모든 문자가 유니코드 숫자 값 순서로만 정렬되어 있어 언어적으로는 거의 의미가 없습니다.

사용자의 현재 운영 체제 환경 설정을 사용하려면 requestedLocaleIDName 매개 변수의 정적 값 LocaleID.DEFAULT를 생성자에 전달합니다.

일부 로캘에는 몇 가지 정렬 순서 변형이 있습니다. 예를 들어 독일어에서는 전화 번호부와 사전에 서로 다른 정렬 순서가 사용됩니다. 중국어에서는 단어가 대개 문자를 병음으로 음차하여 지원됩니다. 이러한 여러 가지 정렬 순서는 requestedLocaleIDName 매개 변수에서 생성자에 전달되는 문자열에 "정렬" 키워드를 포함하여 선택할 수 있습니다.

         var germanPhonebook:LocaleID = new LocaleID("de-DE@collation=phonebook");
         var chinesePinyin:LocaleID = new LocaleID("zh-Hant@collation=pinyin");
         

정렬 문자열에 가능한 값은 다음과 같습니다. 괄호 안에는 영향을 받는 언어가 표시되어 있습니다.

정렬 문자열 설명standard - 각 언어의 기본 순서 phonebook - 전화 번호부 스타일의 순서(독일어)pinyin - 라틴어 및 한중일 문자의 병음 순서, 즉 문자 대 문자 병음 음차를 기준으로 하는 한중일 문자 순서 (중국어)traditional - 전통 스타일 정렬(스페인어) stroke - 라틴어의 병음 순서, 한중일 문자의 획 순서(중국어)direct(힌디어) big5han - 라틴어의 병음 순서, 한중일 문자의 Big5 문자 집합 순서 (중국어) gb2312han - 라틴어의 병음 순서, 한중일 문자의 gb2312han 문자 집합 순서 (중국어) unihan 라틴어의 병음 순서, 한중일 문자의 Unihan 부수-획 순서 (중국어)

호스트 플랫폼에서 요청된 정렬 유형을 지원하지 않으면 대체 유형이 사용되고 대체 유형이 선택되었음을 나타내도록 lastOperationStatus 속성이 설정됩니다. 다음 예제에서처럼 actualLocaleIDName 속성을 사용하여 대체 유형으로 사용된 값을 확인할 수 있습니다.

         var collator:Collator = new Collator("fr-FR");
         if (collator.lastOperationStatus == LastOperationStatus.USING_FALLBACK_WARNING)
         {
           trace ("Using fallback locale: " + collator.actualLocaleIDName);
         }
         

생성자가 성공적으로 완료되면 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

요청된 로캘 ID가 지원되지 않으면 lastOperationStatus 속성이 다음 중 하나로 설정됩니다.

  • LastOperationStatus.USING_FALLBACK_WARNING
  • LastOperationStatus.USING_DEFAULT_WARNING

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

위에 나열된 경고 및 lastOperationStatus 속성의 다른 가능한 값에 대한 자세한 내용은 LastOperationStatus 클래스의 설명을 참조하십시오.

매개 변수
requestedLocaleIDName:String — 이 Collator 객체에서 사용되는 String입니다.
 
initialMode:String (default = "sorting") — 초기 정렬 모드를 지정하는 문자열 값입니다. 기본값은 CollatorMode.SORTING입니다. 사용 가능한 모드 목록은 CollatorMode 클래스를 참조하십시오.

오류
TypeError requestedLocaleIDName 매개 변수가 null인 경우
 
ArgumentError requestedLocaleIDName 매개 변수에 잘못된 값이 포함된 경우

관련 API 요소

메서드 세부 정보

compare

()메서드
public function compare(string1:String, string2:String):int

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

두 문자열을 비교하고 첫 번째 문자열이 두 번째보다 작은지, 같은지 또는 큰지 여부를 나타내는 정수 값을 반환합니다. 비교에는 Collator() 생성자에 지정된 로캘 ID의 정렬 순서 규칙이 사용됩니다.

이 메서드가 호출되고 성공적으로 완료되면 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

매개 변수

string1:String — 첫 번째 비교 문자열입니다.
 
string2:String — 두 번째 비교 문자열입니다.

반환값
int — 첫 번째 문자열이 두 번째 문자열보다 작은지, 같은지 또는 큰지를 나타내는 정수 값입니다.
  • 반환 값이 음수이면 string1string2보다 작습니다.
  • 반환 값이 0이면 string1string2와 같습니다.
  • 반환 값이 양수이면 string1string2보다 큽니다.

오류
TypeError — 필수 매개 변수가 null인 경우
 
ArgumentError — 매개 변수에 잘못된 값이 포함된 경우

관련 API 요소

equals

()메서드 
public function equals(string1:String, string2:String):Boolean

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

두 문자열을 비교하고 두 문자열이 같은지 여부를 나타내는 부울 값을 반환합니다. 비교에는 Collator() 생성자에 지정된 로캘 ID의 정렬 순서 규칙이 사용됩니다.

이 메서드가 호출되고 성공적으로 완료되면 lastOperationStatus 속성이 다음으로 설정됩니다.

  • LastOperationStatus.NO_ERROR

또는 lastOperationStatus 속성이 LastOperationStatus 클래스에 정의된 상수 중 하나로 설정됩니다.

매개 변수

string1:String — 첫 번째 비교 문자열입니다.
 
string2:String — 두 번째 비교 문자열입니다.

반환값
Boolean — 문자열이 서로 같은지(true) 또는 다른지(false)를 나타내는 부울 값입니다.

오류
TypeError — 필수 매개 변수가 null인 경우
 
ArgumentError — 매개 변수에 잘못된 값이 포함된 경우

관련 API 요소

getAvailableLocaleIDNames

()메서드 
public static function getAvailableLocaleIDNames():Vector.<String>

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10.1, AIR 2

이 클래스에서 지원되는 로캘 ID 이름을 모두 나열합니다.

이 클래스가 현재 운영 체제에서 전혀 지원되지 않으면 이 메서드는 null 값을 반환합니다.

반환값
Vector.<String> — 이 클래스에서 지원되는 모든 로캘 ID 이름을 포함하는 문자열 벡터입니다.
CollatorExample1.as

다음 예제에서는 로캘에 따라 달라지는 정렬 결과를 보여 줍니다. 이 예제에서는 다음 단계를 수행합니다.
  1. LocaleID.DEFAULT에 지정된 대로 운영 체제의 기본 로캘 ID를 포함하여 로캘 ID 이름의 배열을 반복합니다.
  2. "정렬" 모드(기본값)를 사용하여 각 로캘 ID 이름에 대해 Collator 객체를 만듭니다.
  3. 대체 로캘이 사용되었는지를 확인하기 위해 요청된 및 실제 로캘 ID 이름과 lastOperationStatus 속성 값을 표시합니다.
  4. 각 Collator를 사용하여 데이터 배열을 정렬하고 결과를 표시합니다. 결과 순서는 각 로캘에 따라 다릅니다.
package {
    import flash.globalization.Collator;
    import flash.globalization.LocaleID;

    public class CollatorExample1
    {
        public var col:Collator;
        
        public function CollatorExample1():void
        {        
            var localeNames:Array = [LocaleID.DEFAULT,
                                     "de-DE", "sv-SE",
                                     "fr-FR", "lt-LT",
                                     "es-ES"];
            
            var testSortData:Array = [
                "y ", "i ", "k ", // Latvian
                "acxa ", "acha ", "adxa ", // es_traditional
                "n ", "ö ", "o ", "z ", "vu ", "wo ", // sw
                "däd ", "daed ", // de
                "öf ", "of ", // de_dictionary
                "côte ", "coté " // fr
            ];
            
            for each (var localeName:String in localeNames) {
            
                col = new Collator(localeName);
                
                trace("LocaleID requested: " + col.requestedLocaleIDName 
                       + "; actual: " + col.actualLocaleIDName);
                       
                trace("Last Operation Status: " + col.lastOperationStatus );
                
                var result:Array = testSortData.sort(col.compare);
                        
                trace ("sorted data: " + result); 
            }
        }      
    }
}
CollatorExample2.as

다음 예제에서는 Collator 객체를 사용하여 문자열 비교 동작을 제어하는 방법을 보여 줍니다. 이 예제에서는 다음 단계를 수행합니다.
  1. "일치" 모드(기본값)를 사용하여 사용자의 기본 로캘에 대해 Collator 객체를 만듭니다.
  2. 또는 Collator.ignoreDiacritics 속성을 falsetrue로 설정합니다.
  3. 발음 기호 및 대/소문자가 포함된 문자열 세트를 비교합니다.
  4. Collator.ignoreDiacriticsCollator.ignoreCase 속성이 변경되면 비교 결과가 어떻게 변하는지 보여 줍니다.
package {
    import flash.display.Sprite;
    import flash.globalization.Collator;
    import flash.globalization.CollatorMode;
    import flash.globalization.LocaleID;
    
    public class CollatorExample2 extends Sprite
    {
        public var col:Collator;
        public var testMatchData:Array = ["cote", "Cote", "côte", "coté"];
        public var wordToMatch:String = "Cote";
        
        public function CollatorExample2()
        {
            col = new Collator( LocaleID.DEFAULT, CollatorMode.MATCHING );

            trace("LocaleID requested: " + col.requestedLocaleIDName 
                    + "; actual: " + col.actualLocaleIDName);
                    
            trace("Last Operation Status: " + col.lastOperationStatus );

            trace('\n' + "ignoreCase = " + col.ignoreCase);
            trace("ignoreDiacritics = " + col.ignoreDiacritics);

            compareString(testMatchData, wordToMatch) // All variations of the word cote match

            col.ignoreDiacritics = false;
            trace('\n' + "ignoreDiacritics = false");

            compareString(testMatchData, wordToMatch) // Variations with different diacritics will not match

            col.ignoreCase = false;
            trace('\n' + "ignoreCase = false");

            compareString(testMatchData, wordToMatch) // Variations with different case will not match
        }
    
        private function compareString(stringArray:Array, keyword:String):void
        {
            for each(var s:String in stringArray)
            {
                if(col.equals(s, keyword))    
                {
                    trace(keyword + " = " + s);
                }
            }
        }
    }
}




[ X ]영어로 표시되는 이유
ActionScript 3.0 참조 설명서의 내용이 영어로 나타납니다.

ActionScript 3.0 참조 설명서 중 일부는 전체 언어로 번역되지 않았습니다. 언어 요소가 번역되지 않은 경우 영어로 나타납니다. 예를 들어 ga.controls.HelpBox 클래스는 어떤 언어로도 번역되지 않았습니다. 그러므로 한국어 버전의 참조 설명서에서 ga.controls.HelpBox 클래스는 영어로 나타납니다.