/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
CharsetUTF16BE.java | 16 public CharsetUTF16BE(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 17 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetUTF16LE.java | 16 public CharsetUTF16LE(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 17 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetUTF32BE.java | 16 public CharsetUTF32BE(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 17 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetUTF32LE.java | 16 public CharsetUTF32LE(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 17 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetCESU8.java | 19 public CharsetCESU8(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 20 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetICU.java | 68 String icuCanonicalName; 112 * @param icuCanonicalName 117 protected CharsetICU(String icuCanonicalName, String canonicalName, String[] aliases) { 122 this.icuCanonicalName = icuCanonicalName; 198 /*public*/ static final Charset getCharset(String icuCanonicalName, String javaCanonicalName, String[] aliases){ 199 String className = algorithmicCharsets.get(icuCanonicalName); 209 Object[] params = new Object[]{ icuCanonicalName, javaCanonicalName, aliases}; 220 icuCanonicalName + ": " + "Could not load " + className + ". Exception: " + cause); 229 throw new UnsupportedCharsetException( icuCanonicalName+": "+"Could not load " + className) [all...] |
CharsetProviderICU.java | 62 String icuCanonicalName = getICUCanonicalName(charsetName); 65 if(icuCanonicalName==null || icuCanonicalName.length()==0){ 68 icuCanonicalName = charsetName; 70 return getCharset(icuCanonicalName, optionsString); 158 private static final Charset getCharset(String icuCanonicalName, String optionsString) 160 String[] aliases = getAliases(icuCanonicalName); 161 String canonicalName = getJavaCanonicalName(icuCanonicalName); 163 /* Concat the option string to the icuCanonicalName so that the options can be handled properly 166 return (CharsetICU.getCharset(icuCanonicalName + optionsString, canonicalName, aliases)) [all...] |
Charset88591.java | 21 public Charset88591(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 22 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetUTF16.java | 44 public CharsetUTF16(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 45 super(icuCanonicalName, javaCanonicalName, aliases); 48 int versionIndex = icuCanonicalName.indexOf("version="); 50 version = Integer.decode(icuCanonicalName.substring(versionIndex+8, versionIndex+9)).intValue();
|
CharsetUTF32.java | 41 public CharsetUTF32(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 42 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetASCII.java | 26 public CharsetASCII(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 27 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetHZ.java | 35 public CharsetHZ(String icuCanonicalName, String canonicalName, String[] aliases) { 36 super(icuCanonicalName, canonicalName, aliases);
|
CharsetUTF7.java | 29 public CharsetUTF7(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 30 super(icuCanonicalName, javaCanonicalName, aliases); 37 if (icuCanonicalName.equals(IMAP_NAME)) { [all...] |
CharsetMBCS.java | 169 public CharsetMBCS(String icuCanonicalName, String javaCanonicalName, String[] aliases, String classPath, 171 super(icuCanonicalName, javaCanonicalName, aliases); 173 /* See if the icuCanonicalName contains certain option information. */ 174 if (icuCanonicalName.indexOf(UConverterConstants.OPTION_SWAP_LFNL_STRING) > -1) { 176 icuCanonicalName = icuCanonicalName.substring(0, icuCanonicalName.indexOf(UConverterConstants.OPTION_SWAP_LFNL_STRING)); 177 super.icuCanonicalName = icuCanonicalName; 181 sharedData = loadConverter(1, icuCanonicalName, classPath, loader) [all...] |
CharsetBOCU1.java | 224 public CharsetBOCU1(String icuCanonicalName, String javaCanonicalName, String[] aliases){ 225 super(icuCanonicalName, javaCanonicalName, aliases); [all...] |
CharsetCompoundText.java | 278 public CharsetCompoundText(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 279 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetUTF8.java | 31 public CharsetUTF8(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 32 super(icuCanonicalName, javaCanonicalName, aliases);
|
CharsetLMBCS.java | 546 public CharsetLMBCS(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 547 super(icuCanonicalName, javaCanonicalName, aliases); 561 int option = Integer.parseInt(icuCanonicalName.substring(6)); [all...] |
CharsetISO2022.java | 96 public CharsetISO2022(String icuCanonicalName, String javaCanonicalName, String[] aliases) { 97 super(icuCanonicalName, javaCanonicalName, aliases); 101 int versionIndex = icuCanonicalName.indexOf("version="); 102 int version = Integer.decode(icuCanonicalName.substring(versionIndex+8, versionIndex+9)).intValue(); 106 if (icuCanonicalName.indexOf("locale=ja") > 0) { 108 } else if (icuCanonicalName.indexOf("locale=zh") > 0) { 110 } else /* if (icuCanonicalName.indexOf("locale=ko") > 0) */ { [all...] |
CharsetSCSU.java | 186 public CharsetSCSU(String icuCanonicalName, String javaCanonicalName, String[] aliases){ 187 super(icuCanonicalName, javaCanonicalName, aliases); [all...] |
CharsetISCII.java | [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
CharsetICU.java | 15 private final String icuCanonicalName; 19 icuCanonicalName = icuCanonName; 23 return CharsetDecoderICU.newInstance(this, icuCanonicalName); 27 return CharsetEncoderICU.newInstance(this, icuCanonicalName);
|
CharsetEncoderICU.java | 66 public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) { 71 address = NativeConverter.openConverter(icuCanonicalName); 74 byte[] replacement = makeReplacement(icuCanonicalName, address); 85 private static byte[] makeReplacement(String icuCanonicalName, long address) { 87 byte[] replacement = DEFAULT_REPLACEMENTS.get(icuCanonicalName);
|
CharsetDecoderICU.java | 50 public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) { 55 address = NativeConverter.openConverter(icuCanonicalName);
|
/libcore/luni/src/main/native/ |
libcore_icu_NativeConverter.cpp | 123 static jstring getJavaCanonicalName(JNIEnv* env, const char* icuCanonicalName) { 128 if ((cName = ucnv_getStandardName(icuCanonicalName, "MIME", &status)) != NULL) { 130 } else if ((cName = ucnv_getStandardName(icuCanonicalName, "IANA", &status)) != NULL) { 136 int32_t aliasCount = ucnv_countAliases(icuCanonicalName, &status); 138 const char* name = ucnv_getAlias(icuCanonicalName, i, &status); 146 const char* name = ucnv_getStandardName(icuCanonicalName, "UTR22", &status); 147 if (name == NULL && strchr(icuCanonicalName, ',') != NULL) { 148 name = ucnv_getAlias(icuCanonicalName, 1, &status); 152 name = icuCanonicalName; 559 const char* icuCanonicalName = getICUCanonicalName(charsetNameChars.c_str()) [all...] |