Home
last modified time | relevance | path

Searched refs:charsetName (Results 1 – 25 of 28) sorted by relevance

12

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetProviderICU.java49 public final Charset charsetForName(String charsetName){ in charsetForName() argument
53 if (charsetName.endsWith(UConverterConstants.OPTION_SWAP_LFNL_STRING)) { in charsetForName()
56charsetName = charsetName.substring(0, charsetName.length() - optionsString.length()); in charsetForName()
59 String icuCanonicalName = getICUCanonicalName(charsetName); in charsetForName()
65 icuCanonicalName = charsetName; in charsetForName()
86 public final Charset charsetForName(String charsetName, String classPath) { in charsetForName() argument
87 return charsetForName(charsetName, classPath, null); in charsetForName()
99 public Charset charsetForName(String charsetName, String classPath, ClassLoader loader) { in charsetForName() argument
102 cs = new CharsetMBCS(charsetName, charsetName, new String[0], classPath, loader); in charsetForName()
173 public static String getJavaCanonicalName(String charsetName){ in getJavaCanonicalName() argument
[all …]
DCharsetICU.java258 …public static Charset forNameICU(String charsetName) throws IllegalCharsetNameException, Unsupport… in forNameICU() argument
260 CharsetICU cs = (CharsetICU) icuProvider.charsetForName(charsetName); in forNameICU()
264 return Charset.forName(charsetName); in forNameICU()
/external/guava/guava-gwt/src-super/java/nio/charset/
DUnsupportedCharsetException.java25 private final String charsetName; field in UnsupportedCharsetException
27 public UnsupportedCharsetException(String charsetName) { in UnsupportedCharsetException() argument
28 super(String.valueOf(charsetName)); in UnsupportedCharsetException()
29 this.charsetName = charsetName; in UnsupportedCharsetException()
33 return charsetName; in getCharsetName()
DIllegalCharsetNameException.java25 private final String charsetName; field in IllegalCharsetNameException
27 public IllegalCharsetNameException(String charsetName) { in IllegalCharsetNameException() argument
28 super(String.valueOf(charsetName)); in IllegalCharsetNameException()
29 this.charsetName = charsetName; in IllegalCharsetNameException()
33 return charsetName; in getCharsetName()
DCharset.java41 public static Charset forName(String charsetName) { in forName() argument
42 if (charsetName == null) { in forName()
45 int length = charsetName.length(); in forName()
47 throw new IllegalCharsetNameException(charsetName); in forName()
50 char c = charsetName.charAt(i); in forName()
60 throw new IllegalCharsetNameException(charsetName); in forName()
62 Charset charset = AVAILABLE_CHARSETS.get(charsetName.toUpperCase()); in forName()
66 throw new UnsupportedCharsetException(charsetName); in forName()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DStringUtils.java151 public static byte[] getBytesUnchecked(String string, String charsetName) { in getBytesUnchecked() argument
156 return string.getBytes(charsetName); in getBytesUnchecked()
158 throw StringUtils.newIllegalStateException(charsetName, e); in getBytesUnchecked()
162 …private static IllegalStateException newIllegalStateException(String charsetName, UnsupportedEncod… in newIllegalStateException() argument
163 return new IllegalStateException(charsetName + ": " + e); in newIllegalStateException()
184 public static String newString(byte[] bytes, String charsetName) { in newString() argument
189 return new String(bytes, charsetName); in newString()
191 throw StringUtils.newIllegalStateException(charsetName, e); in newString()
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DByteStringMicro.java100 public static ByteStringMicro copyFrom(final String text, final String charsetName) in copyFrom() argument
102 return new ByteStringMicro(text.getBytes(charsetName)); in copyFrom()
158 public String toString(final String charsetName) in toString() argument
160 return new String(bytes, charsetName); in toString()
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/
DBase64.java138 public static String encode(byte[] in, String charsetName) throws UnsupportedEncodingException { in encode() argument
172 return new String(out, 0, index, charsetName); in encode()
DJsonMessageBuilder.java498 String charsetName = Charset.defaultCharset().name(); in toJson() local
500 bytesStr = new String(Base64.encode(message.getSecret(), charsetName)); in toJson()
517 String charsetName = Charset.defaultCharset().name(); in toJson() local
519 bytesStr = new String(Base64.encode(message.getSecret(), charsetName)); in toJson()
/external/protobuf/java/src/main/java/com/google/protobuf/
DLiteralByteString.java153 public String toString(String charsetName) in toString() argument
155 return new String(bytes, getOffsetIntoBytes(), size(), charsetName); in toString()
DByteString.java255 public static ByteString copyFrom(String text, String charsetName) in copyFrom() argument
257 return new LiteralByteString(text.getBytes(charsetName)); in copyFrom()
611 public abstract String toString(String charsetName) in toString() argument
DRopeByteString.java419 public String toString(String charsetName) in toString() argument
421 return new String(toByteArray(), charsetName); in toString()
/external/sfntly/cpp/src/test/
Dtest_utils.h97 static UConverter* GetEncoder(const char* charsetName);
/external/owasp/sanitizer/lib/commons-codec-1.4/
Dcommons-codec-1.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
DTestCharset.java2701 String charsetName = null; in TestCharsetICUNullCharsetName() local
2704 CharsetICU.forNameICU(charsetName); in TestCharsetICUNullCharsetName()
5029 String charsetName = "test4"; in TestCharsetTestData() local
5031 …Charset charset = ((CharsetProviderICU)provider).charsetForName(charsetName, "com/ibm/icu/dev/data… in TestCharsetTestData()
5052 errln("Error occurred while decoding: " + charsetName + " with error: " + result); in TestCharsetTestData()
5058 errln("Error occurred while decoding: " + charsetName + " with error: " + result); in TestCharsetTestData()
5064 errln("Error occurred while decoding: " + charsetName + " with error: " + result); in TestCharsetTestData()
5080 errln("Error occurred while encoding: " + charsetName + " with error: " + result); in TestCharsetTestData()
5085 errln("Error occurred while encoding: " + charsetName + " with error: " + result); in TestCharsetTestData()
5090 errln("Error should have occurred while encoding: " + charsetName); in TestCharsetTestData()
[all …]
/external/robolectric/v1/lib/main/
Dcommons-codec-1.6.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.jdt.apt.core_3.3.401.R36_v20100727-0110.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/caliper/lib/
Djersey-core-1.11.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/jersey-module- ...
/external/google-tv-pairing-protocol/java/jar/
Dprotobuf-java-2.2.0-lite.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/lib/htmlparser-1.3/
Dhtmlparser-1.3-with-transitions.jarMETA-INF/MANIFEST.MF nu/validator/htmlparser/tools/XSLT4HTML5XOM.class XSLT4HTML5XOM ...
Dhtmlparser-1.3.jarMETA-INF/MANIFEST.MF nu/validator/htmlparser/tools/XSLT4HTML5XOM.class XSLT4HTML5XOM ...
/external/robolectric/v3/runtime/
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...

12