Static class that defines properties and methods with regard to Hangul (Korean character) data filtering.
public static function compareComplexConsonants(code1:int, code2:int, code3:int):Boolean
Compares three codes to indicates whether the character users are typing in are in the
range of charaters in the character code table.
Parameters
| code1:int — The last consontant's character code that the user has just typed in.
|
| |
| code2:int — The last consonant's character code in the character code table.
|
| |
| code3:int — The first consonant's character code right after the last consonant in the character code table.
|
Returns
| Boolean — Returns true if the last consonant user typed in falls in the range of character code table, other wise false.
|
public static function compareLastAndFirstConsonant(code1:int, code2:int):Boolean
Compares last consonant and first consontant's code to see if they are equal or not.
Parameters
| code1:int — Last consonant's character code.
|
| |
| code2:int — First consonant's character code.
|
Returns
| Boolean — Returns true if both codes correspond to the same character, otherwise false.
|
public static function compareVowels(code1:int, code2:int):Boolean
Compares vowels' codes to see whether a vowel that the user typed in fall in the range of character code table.
Parameters
| code1:int — The vowel's character code that the user has just typed in.
|
| |
| code2:int — The vowel's character code in the character code table.
|
Returns
| Boolean — Returns true if the vowel user typed in falls in the range of character code table, other wise false.
|
public static function containsChar(original:String, target:Array):Boolean
Compares a string and an Array so see whether a string is matching the character codes of a given array.
Parameters
| original:String — String to compare
|
| |
| target:Array — An array with character codes.
|
Returns
| Boolean — Returns true if original matches the character codes of target array, otherwise false.
|
public static function hashToCharMap(value:ICollectionView, key:String):Dictionary
Saves character-by-character splitted character code of a data in a dictionary
with mx_internal_uid key mapping the ICollecionView items and the dictionary.
Parameters
| value:ICollectionView — ICollectionView type of instance to save character code.
|
| |
| key:String — Key string to search.
|
Returns
| Dictionary — Returns a new Dictionary instance with all the character code data.
|
public static function toCharArray(value:String):Array
Converts string to an Array of character codes.
Parameters
| value:String — String to convert into character codes' array.
|
Returns
| Array — Returns an Array instance with character codes of a string.
|