/libcore/luni/src/main/java/java/nio/charset/ |
IllegalCharsetNameException.java | 33 private String charsetName; 39 * @param charsetName 42 public IllegalCharsetNameException(String charsetName) { 43 super((charsetName != null) ? charsetName : "null"); 44 this.charsetName = charsetName; 51 return charsetName;
|
UnsupportedCharsetException.java | 33 private String charsetName; 39 * @param charsetName 42 public UnsupportedCharsetException(String charsetName) { 43 super((charsetName != null) ? charsetName : "null"); 44 this.charsetName = charsetName; 53 return charsetName;
|
Charset.java | 218 for (String charsetName : NativeConverter.getAvailableCharsetNames()) { 219 Charset charset = NativeConverter.charsetForName(charsetName); 238 private static Charset cacheCharset(String charsetName, Charset cs) { 254 CACHED_CHARSETS.put(charsetName, canonicalCharset); 268 * @param charsetName a charset name (either canonical or an alias) 274 public static Charset forName(String charsetName) { 278 cs = CACHED_CHARSETS.get(charsetName); 284 if (charsetName == null) { 289 checkCharsetName(charsetName); 290 cs = NativeConverter.charsetForName(charsetName); [all...] |
/frameworks/base/core/java/android/util/ |
CharsetUtils.java | 85 * @param charsetName the base character set name 87 * @return the specialized character set name, or {@code charsetName} if 90 public static String nameForVendor(String charsetName, String vendor) { 91 if (!TextUtils.isEmpty(charsetName) && !TextUtils.isEmpty(vendor)) { 93 if (isShiftJis(charsetName)) { 101 return charsetName; 112 * @param charsetName the base character set name 113 * @return the specialized character set name, or {@code charsetName} if 116 public static String nameForDefaultVendor(String charsetName) { 117 return nameForVendor(charsetName, getDefaultVendor()) [all...] |
/external/webkit/LayoutTests/fast/encoding/resources/ |
char-decoding-utils.js | 12 function decodeText(charsetName, characterSequence) 16 req.overrideMimeType('text/plain; charset="' + charsetName + '"'); 21 function decode(charsetName, characterSequence) 23 var decodedText = decodeText(charsetName, characterSequence); 34 function testDecode(charsetName, characterSequence, unicode) 36 shouldBe("decode('" + charsetName + "', '" + characterSequence + "')", "'" + unicode + "'");
|
char-encoding-utils.js | 64 function testEncode(charsetName, unicode, characterSequence) 66 charsets.push(charsetName);
|
/libcore/luni/src/main/java/java/net/ |
URLEncoder.java | 54 * Encodes {@code s} using the {@link Charset} named by {@code charsetName}. 56 public static String encode(String s, String charsetName) throws UnsupportedEncodingException { 57 return ENCODER.encode(s, Charset.forName(charsetName));
|
/libcore/luni/src/main/java/java/nio/charset/spi/ |
CharsetProvider.java | 45 * @param charsetName 49 public abstract Charset charsetForName(String charsetName);
|
/packages/apps/Email/src/com/beetstra/jutf7/ |
CharsetProvider.java | 69 public Charset charsetForName(String charsetName) {
70 charsetName = charsetName.toUpperCase();
73 if (charset.name().equals(charsetName))
78 if (charset.aliases().contains(charsetName))
|
/external/apache-harmony/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
IllegalCharsetNameExceptionTest.java | 72 assertEquals("CharsetName", initEx.getCharsetName(), desrEx 83 "charsetName"), COMPARATOR); 92 "charsetName"), COMPARATOR);
|
UnsupportedCharsetExceptionTest.java | 71 assertEquals("CharsetName", initEx.getCharsetName(), desrEx 82 "charsetName"), COMPARATOR); 91 "charsetName"), COMPARATOR);
|
/libcore/luni/src/main/java/java/nio/channels/ |
Channels.java | 144 * @param charsetName 151 String charsetName) { 152 if (charsetName == null) { 155 return newReader(channel, Charset.forName(charsetName).newDecoder(), -1); 187 * @param charsetName 194 String charsetName) { 195 if (charsetName == null) { 198 return newWriter(channel, Charset.forName(charsetName).newEncoder(), -1);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
OldCharset_GSM0338.java | 25 // charsetName = "GSM0338"; 26 charsetName = "x-gsm-03.38-2000";
|
OldCharset_SingleByte_x_IBM874.java | 23 // charsetName = "x-IBM874"; // ICU name "TIS-620", wanted Android name "CP874" 24 charsetName = "TIS-620"; // ICU name "TIS-620", wanted Android name "CP874"
|
OldCharset_AbstractTest.java | 33 static String charsetName; 61 charset = charset.forName(charsetName); 73 assertEquals("Name of charset must match!", charsetName, charset.name()); 80 charsetName, charset.name(), getClass().getName()); 107 charsetName, charset.name(), getClass().getName());
|
OldCharset_SingleByte_ISO_8859_1.java | 21 charsetName = "ISO-8859-1";
|
OldCharset_SingleByte_ISO_8859_13.java | 21 charsetName = "ISO-8859-13";
|
OldCharset_SingleByte_ISO_8859_15.java | 21 charsetName = "ISO-8859-15";
|
OldCharset_SingleByte_ISO_8859_2.java | 21 charsetName = "ISO-8859-2";
|
OldCharset_SingleByte_ISO_8859_4.java | 21 charsetName = "ISO-8859-4";
|
OldCharset_SingleByte_ISO_8859_5.java | 21 charsetName = "ISO-8859-5";
|
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
CharsetProviderTest.java | 373 public Charset charsetForName(String charsetName) { 374 if ("MockCharset10".equalsIgnoreCase(charsetName) 375 || "MockCharset11".equalsIgnoreCase(charsetName) 376 || "MockCharset12".equalsIgnoreCase(charsetName)) { 394 public Charset charsetForName(String charsetName) { 395 if ("US-ASCII".equalsIgnoreCase(charsetName) 396 || "ASCII".equalsIgnoreCase(charsetName)) {
|
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
ByteStringMicro.java | 100 public static ByteStringMicro copyFrom(final String text, final String charsetName) 102 return new ByteStringMicro(text.getBytes(charsetName)); 158 public String toString(final String charsetName) 160 return new String(bytes, charsetName);
|
/libcore/luni/src/main/java/libcore/icu/ |
NativeConverter.java | 42 public static native Charset charsetForName(String charsetName);
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/util/ |
CharsetUtil.java | [all...] |