/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetProviderICU.java | 52 public final Charset charsetForName(String charsetName){ in charsetForName() argument 56 if (charsetName.endsWith(UConverterConstants.OPTION_SWAP_LFNL_STRING)) { in charsetForName() 59 … charsetName = charsetName.substring(0, charsetName.length() - optionsString.length()); in charsetForName() 62 String icuCanonicalName = getICUCanonicalName(charsetName); in charsetForName() 68 icuCanonicalName = charsetName; in charsetForName() 89 public final Charset charsetForName(String charsetName, String classPath) { in charsetForName() argument 90 return charsetForName(charsetName, classPath, null); in charsetForName() 102 public Charset charsetForName(String charsetName, String classPath, ClassLoader loader) { in charsetForName() argument 105 cs = new CharsetMBCS(charsetName, charsetName, new String[0], classPath, loader); in charsetForName() 176 public static String getJavaCanonicalName(String charsetName){ in getJavaCanonicalName() argument [all …]
|
D | CharsetICU.java | 261 …public static Charset forNameICU(String charsetName) throws IllegalCharsetNameException, Unsupport… in forNameICU() argument 263 CharsetICU cs = (CharsetICU) icuProvider.charsetForName(charsetName); in forNameICU() 267 return Charset.forName(charsetName); in forNameICU()
|
/external/guava/guava-gwt/src-super/java/nio/charset/ |
D | IllegalCharsetNameException.java | 25 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()
|
D | UnsupportedCharsetException.java | 25 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()
|
D | Charset.java | 41 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/ |
D | StringUtils.java | 150 public static byte[] getBytesUnchecked(String string, String charsetName) { in getBytesUnchecked() argument 155 return string.getBytes(charsetName); in getBytesUnchecked() 157 throw StringUtils.newIllegalStateException(charsetName, e); in getBytesUnchecked() 161 …private static IllegalStateException newIllegalStateException(String charsetName, UnsupportedEncod… in newIllegalStateException() argument 162 return new IllegalStateException(charsetName + ": " + e); in newIllegalStateException() 183 public static String newString(byte[] bytes, String charsetName) { in newString() argument 188 return new String(bytes, charsetName); in newString() 190 throw StringUtils.newIllegalStateException(charsetName, e); in newString()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | ZipEncodingHelper.java | 71 static boolean isUTF8(String charsetName) { in isUTF8() argument 72 if (charsetName == null) { in isUTF8() 74 charsetName = Charset.defaultCharset().name(); in isUTF8() 76 if (StandardCharsets.UTF_8.name().equalsIgnoreCase(charsetName)) { in isUTF8() 80 if (alias.equalsIgnoreCase(charsetName)) { in isUTF8()
|
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/ |
D | ByteStringMicro.java | 100 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/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/arj/ |
D | ArjArchiveInputStream.java | 46 private final String charsetName; field in ArjArchiveInputStream 59 final String charsetName) throws ArchiveException { in ArjArchiveInputStream() argument 61 this.charsetName = charsetName; in ArjArchiveInputStream() 115 if (charsetName != null) { in readString() 116 return new String(buffer.toByteArray(), charsetName); in readString()
|
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/ |
D | MinimalZipEntry.java | 166 String charsetName = generalPurposeFlagBit11 ? "UTF8" : "Cp437"; in getFileName() local 168 return new String(fileNameBytes, charsetName); in getFileName() 173 throw new RuntimeException("System doesn't support " + charsetName, e); in getFileName()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/ |
D | StreamProvider.java | 39 public StreamProvider(InputStream stream, String charsetName) throws IOException { in StreamProvider() argument 40 _reader = new BufferedReader(new InputStreamReader(stream, charsetName)); in StreamProvider()
|
/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/ |
D | StreamProvider.java | 47 public StreamProvider(InputStream stream, String charsetName) throws IOException { in StreamProvider() argument 48 _reader = new BufferedReader(new InputStreamReader(stream, charsetName)); in StreamProvider()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/comments/ |
D | CommentsParser.java | 48 …public CommentsCollection parse(final InputStream in, final String charsetName) throws IOException… in parse() argument 50 BufferedReader br = new BufferedReader(new InputStreamReader(in, charsetName)); in parse()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | ByteString.java | 365 public static ByteString copyFrom(String text, String charsetName) in copyFrom() argument 367 return new LiteralByteString(text.getBytes(charsetName)); in copyFrom() 712 public final String toString(String charsetName) in toString() argument 715 return toString(Charset.forName(charsetName)); in toString() 717 UnsupportedEncodingException exception = new UnsupportedEncodingException(charsetName); in toString()
|
/external/sfntly/cpp/src/test/ |
D | test_utils.h | 97 static UConverter* GetEncoder(const char* charsetName);
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_expected_output/ |
D | com_github_javaparser_ast_comments_CommentsParser.txt | 10 …Line 50) BufferedReader br = new BufferedReader(new InputStreamReader(in, charsetName)) ==> java.i… 11 Line 50) new BufferedReader(new InputStreamReader(in, charsetName)) ==> java.io.BufferedReader
|
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestCharset.java | 2721 String charsetName = null; in TestCharsetICUNullCharsetName() local 2724 CharsetICU.forNameICU(charsetName); in TestCharsetICUNullCharsetName() 5068 String charsetName = "test4"; in TestCharsetTestData() local 5070 …Charset charset = ((CharsetProviderICU)provider).charsetForName(charsetName, "com/ibm/icu/dev/data… in TestCharsetTestData() 5091 errln("Error occurred while decoding: " + charsetName + " with error: " + result); in TestCharsetTestData() 5097 errln("Error occurred while decoding: " + charsetName + " with error: " + result); in TestCharsetTestData() 5103 errln("Error occurred while decoding: " + charsetName + " with error: " + result); in TestCharsetTestData() 5119 errln("Error occurred while encoding: " + charsetName + " with error: " + result); in TestCharsetTestData() 5124 errln("Error occurred while encoding: " + charsetName + " with error: " + result); in TestCharsetTestData() 5129 errln("Error should have occurred while encoding: " + charsetName); in TestCharsetTestData() [all …]
|