LocaleData.java 1.27 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.agl.util;

import com.adobe.agl.impl.ICUResourceBundle;
import com.adobe.agl.util.ULocale;
import com.adobe.agl.util.UResourceBundle;

public final class LocaleData {
    public static final int ES_STANDARD = 0;
    public static final int ES_AUXILIARY = 1;
    public static final int ES_COUNT = 2;
    public static final int QUOTATION_START = 0;
    public static final int QUOTATION_END = 1;
    public static final int ALT_QUOTATION_START = 2;
    public static final int ALT_QUOTATION_END = 3;
    public static final int DELIMITER_COUNT = 4;

    private LocaleData() {
    }

    public static final OpenTypeData getOpenTypeData(ULocale locale) {
        ICUResourceBundle bundle = (ICUResourceBundle)UResourceBundle.getBundleInstance("com/adobe/agl/impl/data/icudt40b", locale);
        UResourceBundle ot = bundle.get("OpenType");
        UResourceBundle tagsbundle = ot.get("Tags");
        int[] tags = tagsbundle.getIntVector();
        return new OpenTypeData(tags);
    }

    public static final class OpenTypeData {
        private int[] tags;

        private OpenTypeData(int[] tags_) {
            this.tags = tags_;
        }

        public final int getLanguageTag() {
            return this.tags[0];
        }
    }

}