|
| 1 | +package flash.globalization { |
| 2 | + import __ruffle__.stub_constructor; |
| 3 | + import __ruffle__.stub_getter; |
| 4 | + import __ruffle__.stub_method; |
| 5 | + |
| 6 | + [API("667")] |
| 7 | + public final class Collator { |
| 8 | + private var _requestedLocaleIDName:String; |
| 9 | + |
| 10 | + public function Collator(requestedLocaleIDName:String, initialMode:String = "sorting") { |
| 11 | + stub_constructor("flash.globalization.Collator"); |
| 12 | + this._requestedLocaleIDName = requestedLocaleIDName; |
| 13 | + } |
| 14 | + |
| 15 | + public function get actualLocaleIDName():String { |
| 16 | + stub_getter("flash.globalization.Collator", "actualLocaleIDName"); |
| 17 | + return "en-US"; |
| 18 | + } |
| 19 | + |
| 20 | + public function get ignoreCase():Boolean { |
| 21 | + stub_getter("flash.globalization.Collator", "ignoreCase"); |
| 22 | + return false; |
| 23 | + } |
| 24 | + |
| 25 | + public function set ignoreCase(value:Boolean):void { |
| 26 | + stub_setter("flash.globalization.Collator", "ignoreCase"); |
| 27 | + } |
| 28 | + |
| 29 | + public function get ignoreCharacterWidth():Boolean { |
| 30 | + stub_getter("flash.globalization.Collator", "ignoreCharacterWidth"); |
| 31 | + return false; |
| 32 | + } |
| 33 | + |
| 34 | + public function set ignoreCharacterWidth(value:Boolean):void { |
| 35 | + stub_setter("flash.globalization.Collator", "ignoreCharacterWidth"); |
| 36 | + } |
| 37 | + |
| 38 | + public function get ignoreDiacritics():Boolean { |
| 39 | + stub_getter("flash.globalization.Collator", "ignoreDiacritics"); |
| 40 | + return false; |
| 41 | + } |
| 42 | + |
| 43 | + public function set ignoreDiacritics(value:Boolean):void { |
| 44 | + stub_setter("flash.globalization.Collator", "ignoreDiacritics"); |
| 45 | + } |
| 46 | + |
| 47 | + public function get ignoreKanaType():Boolean { |
| 48 | + stub_getter("flash.globalization.Collator", "ignoreKanaType"); |
| 49 | + return false; |
| 50 | + } |
| 51 | + |
| 52 | + public function set ignoreKanaType(value:Boolean):void { |
| 53 | + stub_setter("flash.globalization.Collator", "ignoreKanaType"); |
| 54 | + } |
| 55 | + |
| 56 | + public function get ignoreSymbols():Boolean { |
| 57 | + stub_getter("flash.globalization.Collator", "ignoreSymbols"); |
| 58 | + return false; |
| 59 | + } |
| 60 | + |
| 61 | + public function set ignoreSymbols(value:Boolean):void { |
| 62 | + stub_setter("flash.globalization.Collator", "ignoreSymbols"); |
| 63 | + } |
| 64 | + |
| 65 | + public function get lastOperationStatus():String { |
| 66 | + stub_getter("flash.globalization.Collator", "lastOperationStatus"); |
| 67 | + return "noError"; |
| 68 | + } |
| 69 | + |
| 70 | + public function get numericComparison():Boolean { |
| 71 | + stub_getter("flash.globalization.Collator", "numericComparison"); |
| 72 | + return false; |
| 73 | + } |
| 74 | + |
| 75 | + public function set numericComparison(value:Boolean):void { |
| 76 | + stub_setter("flash.globalization.Collator", "numericComparison"); |
| 77 | + } |
| 78 | + |
| 79 | + public function get requestedLocaleIDName():String { |
| 80 | + return this._requestedLocaleIDName; |
| 81 | + } |
| 82 | + |
| 83 | + public function compare(string1:String, string2:String):int { |
| 84 | + stub_method("flash.globalization.Collator", "compare"); |
| 85 | + return string1.localeCompare(string2); |
| 86 | + } |
| 87 | + |
| 88 | + public function equals(string1:String, string2:String):Boolean { |
| 89 | + stub_method("flash.globalization.Collator", "equals"); |
| 90 | + return this.compare(string1, string2) == 0; |
| 91 | + } |
| 92 | + |
| 93 | + public static function getAvailableLocaleIDNames():Vector.<String> { |
| 94 | + stub_method("flash.globalization.Collator", "getAvailableLocaleIDNames"); |
| 95 | + return new <String>["en-US"]; |
| 96 | + } |
| 97 | + } |
| 98 | +} |
0 commit comments