Home
last modified time | relevance | path

Searched refs:icuCanonicalName (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/nio/charset/
DCharsetICU.java18 private final String icuCanonicalName; field in CharsetICU
22 icuCanonicalName = icuCanonName; in CharsetICU()
26 return CharsetDecoderICU.newInstance(this, icuCanonicalName); in newDecoder()
30 return CharsetEncoderICU.newInstance(this, icuCanonicalName); in newEncoder()
DCharsetEncoderICU.java67 public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) { in newInstance() argument
73 address = NativeConverter.openConverter(icuCanonicalName); in newInstance()
76 byte[] replacement = makeReplacement(icuCanonicalName, address); in newInstance()
90 private static byte[] makeReplacement(String icuCanonicalName, long address) { in makeReplacement() argument
92 byte[] replacement = DEFAULT_REPLACEMENTS.get(icuCanonicalName); in makeReplacement()
DCharsetDecoderICU.java52 public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) { in newInstance() argument
58 address = NativeConverter.openConverter(icuCanonicalName); in newInstance()
/libcore/luni/src/main/native/
Dlibcore_icu_NativeConverter.cpp124 static jstring getJavaCanonicalName(JNIEnv* env, const char* icuCanonicalName) { in getJavaCanonicalName() argument
129 if ((cName = ucnv_getStandardName(icuCanonicalName, "MIME", &status)) != NULL) { in getJavaCanonicalName()
131 } else if ((cName = ucnv_getStandardName(icuCanonicalName, "IANA", &status)) != NULL) { in getJavaCanonicalName()
137 int32_t aliasCount = ucnv_countAliases(icuCanonicalName, &status); in getJavaCanonicalName()
139 const char* name = ucnv_getAlias(icuCanonicalName, i, &status); in getJavaCanonicalName()
147 const char* name = ucnv_getStandardName(icuCanonicalName, "UTR22", &status); in getJavaCanonicalName()
148 if (name == NULL && strchr(icuCanonicalName, ',') != NULL) { in getJavaCanonicalName()
149 name = ucnv_getAlias(icuCanonicalName, 1, &status); in getJavaCanonicalName()
153 name = icuCanonicalName; in getJavaCanonicalName()
164 static char const * getVersionedIcuCanonicalName(char const * icuCanonicalName) { in getVersionedIcuCanonicalName() argument
[all …]