|
| 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 StringTools { |
| 8 | + private var _requestedLocaleIDName:String; |
| 9 | + |
| 10 | + public function StringTools(requestedLocaleIDName:String) { |
| 11 | + stub_constructor("flash.globalization.StringTools"); |
| 12 | + this._requestedLocaleIDName = requestedLocaleIDName; |
| 13 | + } |
| 14 | + |
| 15 | + public function get actualLocaleIDName():String { |
| 16 | + stub_getter("flash.globalization.StringTools", "actualLocaleIDName"); |
| 17 | + return "en-US"; |
| 18 | + } |
| 19 | + |
| 20 | + public function get lastOperationStatus():String { |
| 21 | + stub_getter("flash.globalization.StringTools", "lastOperationStatus"); |
| 22 | + return "noError"; |
| 23 | + } |
| 24 | + |
| 25 | + public function get requestedLocaleIDName():String { |
| 26 | + return this._requestedLocaleIDName; |
| 27 | + } |
| 28 | + |
| 29 | + public function toLowerCase(s:String):String { |
| 30 | + stub_method("flash.globalization.StringTools", "toLowerCase"); |
| 31 | + return s.toLowerCase(); |
| 32 | + } |
| 33 | + |
| 34 | + public function toUpperCase(s:String):String { |
| 35 | + stub_method("flash.globalization.StringTools", "toUpperCase"); |
| 36 | + return s.toUpperCase(); |
| 37 | + } |
| 38 | + |
| 39 | + public static function getAvailableLocaleIDNames():Vector.<String> { |
| 40 | + stub_method("flash.globalization.StringTools", "getAvailableLocaleIDNames"); |
| 41 | + return new <String>["en-US"]; |
| 42 | + } |
| 43 | + } |
| 44 | +} |
0 commit comments