Packageflash.globalization
Classpublic final class CollatorMode
InheritanceCollatorMode Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 2

The CollatorMode class enumerates constant values that govern the behavior of string comparisons performed by a Collator object. These constants represent the values that can be passed in the initialMode parameter of the Collator() constructor.

See also

Collator


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined by
  MATCHING : String = "matching"
[static] Initializes a Collator object so that the compare method is optimized for determining whether two strings are equivalent.
CollatorMode
  SORTING : String = "sorting"
[static] Initializes a Collator object so that the compare method is optimized for sorting a list of text strings to be displayed to an end user.
CollatorMode
Constant detail
MATCHINGconstant
public static const MATCHING:String = "matching"

Language version: ActionScript 3.0
Runtime version: AIR 2

Initializes a Collator object so that the compare method is optimized for determining whether two strings are equivalent. In this mode, string comparisons ignore differences in uppercase and lower case letters, accented characters, etc.

See also

SORTINGconstant 
public static const SORTING:String = "sorting"

Language version: ActionScript 3.0
Runtime version: AIR 2

Initializes a Collator object so that the compare method is optimized for sorting a list of text strings to be displayed to an end user. In this mode, string comparisons consider differences in uppercase and lowercase letters, accented characters, and so on, according to the language and sorting rules required by the locale.

See also