/** * Copyright 2014 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Class: LocaleID module Shumway.AVMX.AS.flash.globalization { import notImplemented = Shumway.Debug.notImplemented; import axCoerceString = Shumway.AVMX.axCoerceString; export class LocaleID extends ASObject { // Called whenever the class is initialized. static classInitializer: any = null; // List of static symbols to link. static classSymbols: string [] = null; // []; // List of instance symbols to link. static instanceSymbols: string [] = null; // []; constructor (name: string) { super(); name = axCoerceString(name); } // JS -> AS Bindings static DEFAULT: string = 'i-default'; // AS -> JS Bindings static determinePreferredLocales(want: ASVector, have: ASVector, keyword: string = 'userinterface'): ASVector { want = want; have = have; keyword = axCoerceString(keyword); release || notImplemented('public flash.globalization.LocaleID::static determinePreferredLocales'); return; } // _name: string; // _lastOperationStatus: string; get name(): string { release || notImplemented('public flash.globalization.LocaleID::get name'); return; // return this._name; } get lastOperationStatus(): string { release || notImplemented('public flash.globalization.LocaleID::get lastOperationStatus'); return; // return this._lastOperationStatus; } getLanguage(): string { release || notImplemented('public flash.globalization.LocaleID::getLanguage'); return; } getRegion(): string { release || notImplemented('public flash.globalization.LocaleID::getRegion'); return; } getScript(): string { release || notImplemented('public flash.globalization.LocaleID::getScript'); return; } getVariant(): string { release || notImplemented('public flash.globalization.LocaleID::getVariant'); return; } getKeysAndValues(): ASObject { release || notImplemented('public flash.globalization.LocaleID::getKeysAndValues'); return; } isRightToLeft(): boolean { release || notImplemented('public flash.globalization.LocaleID::isRightToLeft'); return; } ctor(name: string): void { name = axCoerceString(name); release || notImplemented('public flash.globalization.LocaleID::ctor'); return; } } }