LocaleData.java
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* 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];
}
}
}