/external/guava/guava/src/com/google/common/io/ |
D | Files.java | 42 import java.nio.charset.Charset; 72 public static BufferedReader newReader(File file, Charset charset) in newReader() argument 75 new InputStreamReader(new FileInputStream(file), charset)); in newReader() 86 public static BufferedWriter newWriter(File file, Charset charset) in newWriter() argument 89 new OutputStreamWriter(new FileOutputStream(file), charset)); in newWriter() 151 Charset charset) { 152 return CharStreams.newReaderSupplier(newInputStreamSupplier(file), charset); 164 Charset charset) { 165 return newWriterSupplier(file, charset, false); 179 Charset charset, boolean append) { [all …]
|
D | Resources.java | 29 import java.nio.charset.Charset; 74 URL url, Charset charset) { 75 return CharStreams.newReaderSupplier(newInputStreamSupplier(url), charset); 98 public static String toString(URL url, Charset charset) throws IOException { 99 return CharStreams.toString(newReaderSupplier(url, charset)); 112 public static <T> T readLines(URL url, Charset charset, 114 return CharStreams.readLines(newReaderSupplier(url, charset), callback); 127 public static List<String> readLines(URL url, Charset charset) 129 return CharStreams.readLines(newReaderSupplier(url, charset));
|
/external/apache-http/src/org/apache/http/params/ |
D | HttpProtocolParams.java | 70 String charset = (String) params.getParameter in getHttpElementCharset() local 72 if (charset == null) { in getHttpElementCharset() 73 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; in getHttpElementCharset() 75 return charset; in getHttpElementCharset() 82 public static void setHttpElementCharset(final HttpParams params, final String charset) { in setHttpElementCharset() argument 86 params.setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET, charset); in setHttpElementCharset() 98 String charset = (String) params.getParameter in getContentCharset() local 100 if (charset == null) { in getContentCharset() 101 charset = HTTP.DEFAULT_CONTENT_CHARSET; in getContentCharset() 103 return charset; in getContentCharset() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | EncodingUtils.java | 62 String charset in getString() argument 69 if (charset == null || charset.length() == 0) { in getString() 74 return new String(data, offset, length, charset); in getString() 90 public static String getString(final byte[] data, final String charset) { in getString() argument 94 return getString(data, 0, data.length, charset); in getString() 105 public static byte[] getBytes(final String data, final String charset) { in getBytes() argument 111 if (charset == null || charset.length() == 0) { in getBytes() 116 return data.getBytes(charset); in getBytes()
|
D | EntityUtils.java | 94 String charset = null; in getContentCharSet() local 100 charset = param.getValue(); in getContentCharSet() 104 return charset; in getContentCharSet() 123 String charset = getContentCharSet(entity); in toString() local 124 if (charset == null) { in toString() 125 charset = defaultCharset; in toString() 127 if (charset == null) { in toString() 128 charset = HTTP.DEFAULT_CONTENT_CHARSET; in toString() 130 Reader reader = new InputStreamReader(instream, charset); in toString()
|
/external/freetype/src/cff/ |
D | cffload.c | 779 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument 789 if ( charset->max_cid > 0 ) in cff_charset_compute_cids() 794 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids() 795 max_cid = charset->sids[i]; in cff_charset_compute_cids() 798 if ( FT_NEW_ARRAY( charset->cids, (FT_ULong)max_cid + 1 ) ) in cff_charset_compute_cids() 805 charset->cids[charset->sids[j]] = (FT_UShort)j; in cff_charset_compute_cids() 807 charset->max_cid = max_cid; in cff_charset_compute_cids() 808 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids() 816 cff_charset_cid_to_gindex( CFF_Charset charset, in cff_charset_cid_to_gindex() argument 822 if ( cid <= charset->max_cid ) in cff_charset_cid_to_gindex() [all …]
|
/external/oauth/core/src/main/java/net/oauth/http/ |
D | HttpMessage.java | 134 String charset = m.group(1); in getCharset() local 135 if (charset.length() >= 2 && charset.charAt(0) == '"' in getCharset() 136 && charset.charAt(charset.length() - 1) == '"') { in getCharset() 137 charset = charset.substring(1, charset.length() - 1); in getCharset() 138 charset = charset.replace("\\\"", "\""); in getCharset() 140 return charset; in getCharset()
|
/external/jmonkeyengine/engine/src/core/com/jme3/font/ |
D | BitmapCharacterSet.java | 66 IntMap<BitmapCharacter> charset = entry.getValue(); in write() local 67 writeCharset(oc, style, charset); in write() 72 …protected void writeCharset(OutputCapsule oc, int style, IntMap<BitmapCharacter> charset) throws I… in writeCharset() argument 73 int size = charset.size(); in writeCharset() 77 for (Entry<BitmapCharacter> chr : charset){ in writeCharset() 104 IntMap<BitmapCharacter> charset = new IntMap<BitmapCharacter>(); in readCharset() local 111 charset.put(index, chr); in readCharset() 113 return charset; in readCharset() 195 IntMap<BitmapCharacter> charset = entry.getValue(); in merge() local 197 IntMap<BitmapCharacter> old = this.characters.put(style, charset); in merge() [all …]
|
/external/apache-harmony/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
D | CharsetDecoderTest.java | 17 package org.apache.harmony.nio_char.tests.java.nio.charset; 23 import java.nio.charset.CharacterCodingException; 24 import java.nio.charset.Charset; 25 import java.nio.charset.CharsetDecoder; 26 import java.nio.charset.CharsetEncoder; 27 import java.nio.charset.CoderMalfunctionError; 28 import java.nio.charset.CoderResult; 29 import java.nio.charset.CodingErrorAction; 30 import java.nio.charset.MalformedInputException; 153 static class MockMalfunctionDecoder extends java.nio.charset.CharsetDecoder { [all …]
|
D | CharsetEncoderTest.java | 17 package org.apache.harmony.nio_char.tests.java.nio.charset; 23 import java.nio.charset.Charset; 24 import java.nio.charset.CharsetDecoder; 25 import java.nio.charset.CharsetEncoder; 26 import java.nio.charset.CoderMalfunctionError; 27 import java.nio.charset.CoderResult; 64 assertNull(ech.charset()); in test_ConstructorLjava_nio_charset_CharsetNull() 143 static class MockMalfunctionEncoder extends java.nio.charset.CharsetEncoder {
|
D | CharsetTest.java | 17 package org.apache.harmony.nio_char.tests.java.nio.charset; 21 import java.nio.charset.Charset; 22 import java.nio.charset.CharsetDecoder; 23 import java.nio.charset.CharsetEncoder; 24 import java.nio.charset.CoderResult; 25 import java.nio.charset.IllegalCharsetNameException; 129 public boolean contains(Charset charset) { in contains() argument 191 public boolean contains(Charset charset) { in contains() argument
|
/external/apache-http/src/org/apache/http/auth/params/ |
D | AuthParams.java | 70 String charset = (String) params.getParameter in getCredentialCharset() local 74 if (charset == null) { in getCredentialCharset() 75 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; in getCredentialCharset() 77 return charset; in getCredentialCharset() 87 public static void setCredentialCharset(final HttpParams params, final String charset) { in setCredentialCharset() argument 91 params.setParameter(AuthPNames.CREDENTIAL_CHARSET, charset); in setCredentialCharset()
|
/external/webkit/LayoutTests/fast/encoding/ |
D | css-charset-default-expected.txt | 3 Stylesheet 1 (inherit document charset using xml-stylesheet processing instruction): SUССЕSS 5 Stylesheet 2 (inherit document charset using link): SUССЕSS 7 Stylesheet 3 (inherit referring stylesheet charset): SUССЕSS 9 Stylesheet 4 (inherit referring inline stylesheet charset): SUССЕSS 11 Stylesheet 5 (inherit document charset using link after document.charset was set): SUССЕSS
|
D | preload-encoding-expected.txt | 1 Script with charset: SUССЕSS. 2 Link rel=stylesheet with charset: SUCCESS 3 Script without charset: SUССЕSS 4 Link rel=stylesheet without charset: SUCCESS
|
/external/apache-http/src/org/apache/commons/codec/net/ |
D | BCodec.java | 49 private String charset = StringEncodings.UTF8; field in BCodec 67 public BCodec(final String charset) { in BCodec() argument 69 this.charset = charset; in BCodec() 102 public String encode(final String value, final String charset) throws EncoderException { in encode() argument 107 return encodeText(value, charset); in encode() 205 return this.charset; in getDefaultCharset()
|
D | URLCodec.java | 55 protected String charset = StringEncodings.UTF8; field in URLCodec 98 public URLCodec(String charset) { in URLCodec() argument 100 this.charset = charset; in URLCodec() 220 public String encode(String pString, String charset) in encode() argument 226 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode() 264 public String decode(String pString, String charset) in decode() argument 270 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode() 352 return this.charset; in getEncoding() 361 return this.charset; in getDefaultCharset()
|
D | QuotedPrintableCodec.java | 63 private String charset = StringEncodings.UTF8; field in QuotedPrintableCodec 101 public QuotedPrintableCodec(String charset) { in QuotedPrintableCodec() argument 103 this.charset = charset; in QuotedPrintableCodec() 275 …public String decode(String pString, String charset) throws DecoderException, UnsupportedEncodingE… in decode() argument 279 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode() 361 return this.charset; in getDefaultCharset() 381 public String encode(String pString, String charset) throws UnsupportedEncodingException { in encode() argument 385 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode()
|
D | RFC1522Codec.java | 65 protected String encodeText(final String text, final String charset) in encodeText() argument 73 buffer.append(charset); in encodeText() 77 byte [] rawdata = doEncoding(text.getBytes(charset)); in encodeText() 110 String charset = text.substring(from, to); in decodeText() local 111 if (charset.equals("")) { in decodeText() 128 return new String(data, charset); in decodeText()
|
/external/expat/xmlwf/ |
D | xmlmime.c | 88 getXMLCharset(const char *buf, char *charset) in getXMLCharset() argument 92 charset[0] = '\0'; in getXMLCharset() 96 strcpy(charset, "us-ascii"); in getXMLCharset() 104 if (!matchkey(p, next, "xml") && charset[0] == '\0') in getXMLCharset() 116 char *s = charset; in getXMLCharset() 121 if (s == charset + CHARSET_MAX - 1) { in getXMLCharset() 122 charset[0] = '\0'; in getXMLCharset()
|
D | ct.c | 84 getXMLCharset(const char *buf, char *charset) in getXMLCharset() argument 88 charset[0] = '\0'; in getXMLCharset() 92 strcpy(charset, "us-ascii"); in getXMLCharset() 110 char *s = charset; in getXMLCharset() 115 if (s == charset + CHARSET_MAX - 1) { in getXMLCharset() 116 charset[0] = '\0'; in getXMLCharset()
|
/external/chromium/net/base/ |
D | data_url_unittest.cc | 16 const char* charset; member 144 std::string charset; in TEST() local 147 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); in TEST() 151 EXPECT_EQ(tests[i].charset, charset); in TEST()
|
/external/webkit/Source/WebCore/css/ |
D | CSSStyleSheet.h | 51 …et> create(Node* ownerNode, const String& originalURL, const KURL& finalURL, const String& charset) in create() argument 53 return adoptRef(new CSSStyleSheet(ownerNode, originalURL, finalURL, charset)); in create() 55 … create(CSSRule* ownerRule, const String& originalURL, const KURL& finalURL, const String& charset) in create() argument 57 return adoptRef(new CSSStyleSheet(ownerRule, originalURL, finalURL, charset)); in create() 92 const String& charset() const { return m_charset; } in charset() function 108 …tyleSheet(Node* ownerNode, const String& originalURL, const KURL& finalURL, const String& charset); 109 …SSStyleSheet* parentSheet, const String& originalURL, const KURL& finalURL, const String& charset); 110 …eSheet(CSSRule* ownerRule, const String& originalURL, const KURL& finalURL, const String& charset);
|
/external/apache-http/src/org/apache/http/entity/ |
D | StringEntity.java | 55 public StringEntity(final String s, String charset) in StringEntity() argument 61 if (charset == null) { in StringEntity() 62 charset = HTTP.DEFAULT_CONTENT_CHARSET; in StringEntity() 64 this.content = s.getBytes(charset); in StringEntity() 65 setContentType(HTTP.PLAIN_TEXT_TYPE + HTTP.CHARSET_PARAM + charset); in StringEntity()
|
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
D | ISOCharsetEncoderTest.java | 16 package tests.api.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset; 22 import java.nio.charset.CoderResult; 23 import java.nio.charset.CodingErrorAction; 24 import java.nio.charset.UnmappableCharacterException;
|
/external/icu4c/test/intltest/ |
D | convtest.cpp | 89 char charset[100], cbopt[4]; in TestToUnicode() local 117 s.extract(0, 0x7fffffff, charset, sizeof(charset), ""); in TestToUnicode() 118 cc.charset=charset; in TestToUnicode() 123 if (strlen(charset) >= 8 && in TestToUnicode() 124 strncmp(charset+4, "2022", 4) == 0) { in TestToUnicode() 194 logln("TestToUnicode[%d] %s", i, charset); in TestToUnicode() 210 char charset[100], cbopt[4]; in TestFromUnicode() local 239 s.extract(0, 0x7fffffff, charset, sizeof(charset), ""); in TestFromUnicode() 240 cc.charset=charset; in TestFromUnicode() 245 if (strlen(charset) >= 8 && in TestFromUnicode() [all …]
|