/external/flac/src/share/utf8/ |
D | charset_test.c | 28 void test_any(struct charset *charset) in test_any() argument 33 assert(charset); in test_any() 37 assert(charset_mbtowc(charset, 0, 0, 0) == 0); in test_any() 38 assert(charset_mbtowc(charset, 0, 0, 1) == 0); in test_any() 39 assert(charset_mbtowc(charset, 0, (char *)(-1), 0) == 0); in test_any() 41 assert(charset_mbtowc(charset, 0, "a", 0) == 0); in test_any() 42 assert(charset_mbtowc(charset, 0, "", 1) == 0); in test_any() 43 assert(charset_mbtowc(charset, 0, "b", 1) == 1); in test_any() 44 assert(charset_mbtowc(charset, 0, "", 2) == 0); in test_any() 45 assert(charset_mbtowc(charset, 0, "c", 2) == 1); in test_any() [all …]
|
D | charset.c | 183 struct charset { struct 190 int charset_mbtowc(struct charset *charset, int *pwc, const char *s, size_t n) in charset_mbtowc() argument 192 return (*charset->mbtowc)(charset->map, pwc, s, n); in charset_mbtowc() 195 int charset_wctomb(struct charset *charset, char *s, int wc) in charset_wctomb() argument 197 return (*charset->wctomb)(charset->map, s, wc); in charset_wctomb() 200 int charset_max(struct charset *charset) in charset_max() argument 202 return charset->max; in charset_max() 406 struct charset charset_utf8 = { 413 struct charset charset_iso1 = { 420 struct charset charset_ascii = { [all …]
|
D | charset.h | 44 struct charset; 46 struct charset *charset_find(const char *code); 48 int charset_mbtowc(struct charset *charset, int *pwc, const char *s, size_t n); 49 int charset_wctomb(struct charset *charset, char *s, int wc); 50 int charset_max(struct charset *charset);
|
/external/python/cpython2/Lib/email/ |
D | header.py | 20 from email.charset import Charset 93 charset, encoding = [s.lower() for s in parts[0:2]] 112 if decoded and decoded[-1][1] == charset: 115 decoded.append((dec, charset)) 135 for s, charset in decoded_seq: 137 if charset is not None and not isinstance(charset, Charset): 138 charset = Charset(charset) 139 h.append(s, charset) 145 def __init__(self, s=None, charset=None, argument 173 if charset is None: [all …]
|
D | message.py | 16 import email.charset 218 def set_payload(self, payload, charset=None): argument 225 if charset is not None: 226 self.set_charset(charset) 228 def set_charset(self, charset): argument 243 if charset is None: 247 if isinstance(charset, basestring): 248 charset = email.charset.Charset(charset) 249 if not isinstance(charset, email.charset.Charset): 250 raise TypeError(charset) [all …]
|
/external/curl/lib/ |
D | curl_fnmatch.c | 72 static int parsekeyword(unsigned char **pattern, unsigned char *charset) in parsekeyword() argument 104 charset[CURLFNM_DIGIT] = 1; in parsekeyword() 106 charset[CURLFNM_ALNUM] = 1; in parsekeyword() 108 charset[CURLFNM_ALPHA] = 1; in parsekeyword() 110 charset[CURLFNM_XDIGIT] = 1; in parsekeyword() 112 charset[CURLFNM_PRINT] = 1; in parsekeyword() 114 charset[CURLFNM_GRAPH] = 1; in parsekeyword() 116 charset[CURLFNM_SPACE] = 1; in parsekeyword() 118 charset[CURLFNM_BLANK] = 1; in parsekeyword() 120 charset[CURLFNM_UPPER] = 1; in parsekeyword() [all …]
|
/external/python/cpython3/Lib/email/ |
D | header.py | 20 from email import charset as _charset 77 return [(_charset._encode(string, str(charset)), str(charset)) 78 for string, charset in header._chunks] 97 charset = parts.pop(0).lower() 100 words.append((encoded, encoding, charset)) 114 for encoded_string, encoding, charset in words: 117 decoded_words.append((encoded_string, charset)) 120 decoded_words.append((word, charset)) 130 decoded_words.append((word, charset)) 137 for word, charset in decoded_words: [all …]
|
D | _encoded_words.py | 173 _, charset, cte, cte_string, _ = ew.split('?') 174 charset, _, lang = charset.partition('*') 181 string = bstring.decode(charset) 184 "contains bytes not decodable using {} charset".format(charset))) 185 string = bstring.decode(charset, 'surrogateescape') 188 if charset.lower() != 'unknown-8bit': 190 "in encoded word; decoded as unknown bytes".format(charset))) 191 return string, charset, lang, defects 204 def encode(string, charset='utf-8', encoding=None, lang=''): argument 221 if charset == 'unknown-8bit': [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | MediaType.java | 19 import java.nio.charset.Charset; 39 private final String charset; field in MediaType 41 private MediaType(String mediaType, String type, String subtype, String charset) { in MediaType() argument 45 this.charset = charset; in MediaType() 58 String charset = null; in parse() local 69 if (charset != null && !charsetParameter.equalsIgnoreCase(charset)) { in parse() 72 charset = charsetParameter; in parse() 75 return new MediaType(string, type, subtype, charset); in parse() 98 public Charset charset() { in charset() method in MediaType 99 return charset != null ? Charset.forName(charset) : null; in charset() [all …]
|
D | ResponseBody.java | 25 import java.nio.charset.Charset; 78 return r != null ? r : (reader = new InputStreamReader(byteStream(), charset())); in charStream() 87 return new String(bytes(), charset().name()); in string() 90 private Charset charset() { in charset() method in ResponseBody 92 return contentType != null ? contentType.charset(UTF_8) : UTF_8; in charset() 104 Charset charset = Util.UTF_8; in create() local 106 charset = contentType.charset(); in create() 107 if (charset == null) { in create() 108 charset = Util.UTF_8; in create() 112 Buffer buffer = new Buffer().writeString(content, charset); in create()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | MediaType.java | 18 import java.nio.charset.Charset; 37 private final String charset; field in MediaType 39 private MediaType(String mediaType, String type, String subtype, String charset) { in MediaType() argument 43 this.charset = charset; in MediaType() 56 String charset = null; in parse() local 67 if (charset != null && !charsetParameter.equalsIgnoreCase(charset)) { in parse() 70 charset = charsetParameter; in parse() 73 return new MediaType(string, type, subtype, charset); in parse() 96 public Charset charset() { in charset() method in MediaType 97 return charset != null ? Charset.forName(charset) : null; in charset() [all …]
|
D | ResponseBody.java | 24 import java.nio.charset.Charset; 74 return r != null ? r : (reader = new InputStreamReader(byteStream(), charset())); in charStream() 83 return new String(bytes(), charset().name()); in string() 86 private Charset charset() { in charset() method in ResponseBody 88 return contentType != null ? contentType.charset(UTF_8) : UTF_8; in charset() 100 Charset charset = Util.UTF_8; in create() local 102 charset = contentType.charset(); in create() 103 if (charset == null) { in create() 104 charset = Util.UTF_8; in create() 108 Buffer buffer = new Buffer().writeString(content, charset); in create()
|
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestConversion.java | 10 package com.ibm.icu.dev.test.charset; 14 import java.nio.charset.Charset; 15 import java.nio.charset.CharsetDecoder; 16 import java.nio.charset.CharsetEncoder; 17 import java.nio.charset.CoderResult; 18 import java.nio.charset.CodingErrorAction; 25 import com.ibm.icu.charset.CharsetCallback; 26 import com.ibm.icu.charset.CharsetDecoderICU; 27 import com.ibm.icu.charset.CharsetEncoderICU; 28 import com.ibm.icu.charset.CharsetICU; [all …]
|
/external/python/cpython2/Lib/bsddb/test/ |
D | test_all.py | 16 charset = "iso8859-1" # Full 8 bit variable 28 v = (v[0], v[1].decode(charset)) 36 v = (v[0], v[1].decode(charset)) 42 v = (v[0], v[1].decode(charset)) 48 v = (v[0], v[1].decode(charset)) 54 v = (v[0], v[1].decode(charset)) 60 v = (v[0], v[1].decode(charset)) 74 key = key.decode(charset) 75 return (key, value.decode(charset)) 93 k = bytes(k, charset) [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | MediaTypeTest.java | 20 import java.nio.charset.Charset; 21 import java.nio.charset.IllegalCharsetNameException; 22 import java.nio.charset.UnsupportedCharsetException; 41 assertEquals("UTF-8", mediaType.charset().name()); in testParse() 101 assertEquals("UTF-8", mediaType.charset().name()); in testCharsetIsOneOfManyParameters() 107 assertEquals("UTF-8", mediaType.charset().name()); in testCharsetAndQuoting() 112 assertEquals("UTF-8", mediaType.charset().name()); in testDuplicatedCharsets() 126 mediaType.charset(); in testIllegalCharsetName() 135 mediaType.charset(); in testUnsupportedCharset() 143 assertEquals("UTF-8", noCharset.charset(Util.UTF_8).name()); in testDefaultCharset() [all …]
|
/external/libcups/test/ |
D | 4.2-cups-printer-ops.test | 20 ATTR charset attributes-charset utf-8 30 EXPECT attributes-charset 43 ATTR charset attributes-charset utf-8 51 EXPECT attributes-charset 64 ATTR charset attributes-charset utf-8 72 EXPECT attributes-charset 85 ATTR charset attributes-charset utf-8 93 EXPECT attributes-charset 106 ATTR charset attributes-charset utf-8 119 EXPECT attributes-charset [all …]
|
D | 4.1-requests.test | 4 # attributes-charset 25 EXPECT attributes-charset 37 ATTR charset attributes-charset utf-8 43 EXPECT attributes-charset 61 EXPECT attributes-charset 74 ATTR charset attributes-charset utf-8 80 EXPECT attributes-charset 92 ATTR charset attributes-charset utf-8 99 EXPECT attributes-charset 111 ATTR charset attributes-charset utf-8 [all …]
|
D | 4.3-job-ops.test | 20 ATTR charset attributes-charset utf-8 41 ATTR charset attributes-charset utf-8 52 EXPECT attributes-charset 66 ATTR charset attributes-charset utf-8 75 EXPECT attributes-charset 91 ATTR charset attributes-charset utf-8 105 EXPECT attributes-charset 120 ATTR charset attributes-charset utf-8 129 EXPECT attributes-charset 145 ATTR charset attributes-charset utf-8 [all …]
|
/external/apache-http/src/org/apache/http/params/ |
D | HttpProtocolParams.java | 75 String charset = (String) params.getParameter in getHttpElementCharset() local 77 if (charset == null) { in getHttpElementCharset() 78 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; in getHttpElementCharset() 80 return charset; in getHttpElementCharset() 87 public static void setHttpElementCharset(final HttpParams params, final String charset) { in setHttpElementCharset() argument 91 params.setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET, charset); in setHttpElementCharset() 103 String charset = (String) params.getParameter in getContentCharset() local 105 if (charset == null) { in getContentCharset() 106 charset = HTTP.DEFAULT_CONTENT_CHARSET; in getContentCharset() 108 return charset; in getContentCharset() [all …]
|
/external/guava/guava/src/com/google/common/hash/ |
D | Funnels.java | 21 import java.nio.charset.Charset; 84 public static Funnel<CharSequence> stringFunnel(Charset charset) { in stringFunnel() argument 85 return new StringCharsetFunnel(charset); in stringFunnel() 89 private final Charset charset; field in Funnels.StringCharsetFunnel 91 StringCharsetFunnel(Charset charset) { in StringCharsetFunnel() argument 92 this.charset = Preconditions.checkNotNull(charset); in StringCharsetFunnel() 97 into.putString(from, charset); in funnel() 102 return "Funnels.stringFunnel(" + charset.name() + ")"; in toString() 109 return this.charset.equals(funnel.charset); in equals() 116 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode(); in hashCode() [all …]
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | Funnels.java | 21 import java.nio.charset.Charset; 84 public static Funnel<CharSequence> stringFunnel(Charset charset) { in stringFunnel() argument 85 return new StringCharsetFunnel(charset); in stringFunnel() 89 private final Charset charset; field in Funnels.StringCharsetFunnel 91 StringCharsetFunnel(Charset charset) { in StringCharsetFunnel() argument 92 this.charset = Preconditions.checkNotNull(charset); in StringCharsetFunnel() 97 into.putString(from, charset); in funnel() 102 return "Funnels.stringFunnel(" + charset.name() + ")"; in toString() 109 return this.charset.equals(funnel.charset); in equals() 116 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode(); in hashCode() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | EncodingUtils.java | 67 String charset in getString() argument 74 if (charset == null || charset.length() == 0) { in getString() 79 return new String(data, offset, length, charset); in getString() 95 public static String getString(final byte[] data, final String charset) { in getString() argument 99 return getString(data, 0, data.length, charset); in getString() 110 public static byte[] getBytes(final String data, final String charset) { in getBytes() argument 116 if (charset == null || charset.length() == 0) { in getBytes() 121 return data.getBytes(charset); in getBytes()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | Charsets.java | 21 import java.nio.charset.Charset; 22 import java.nio.charset.StandardCharsets; 72 public static Charset toCharset(final Charset charset) { in toCharset() argument 73 return charset == null ? Charset.defaultCharset() : charset; in toCharset() 87 public static Charset toCharset(final String charset) { in toCharset() argument 88 return charset == null ? Charset.defaultCharset() : Charset.forName(charset); in toCharset()
|
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
D | StrictLineReader.java | 25 import java.nio.charset.Charset; 50 private final Charset charset; field in StrictLineReader 71 public StrictLineReader(InputStream in, Charset charset) { in StrictLineReader() argument 72 this(in, 8192, charset); in StrictLineReader() 86 public StrictLineReader(InputStream in, int capacity, Charset charset) { in StrictLineReader() argument 87 if (in == null || charset == null) { in StrictLineReader() 93 if (!(charset.equals(Util.US_ASCII))) { in StrictLineReader() 98 this.charset = charset; in StrictLineReader() 141 String res = new String(buf, pos, lineEnd - pos, charset.name()); in readLine() 153 return new String(buf, 0, length, charset.name()); in readLine()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | Relay.java | 24 import org.apache.harmony.niochar.charset.additional.IBM437; 31 import java.nio.charset.Charset; 32 import java.nio.charset.CharsetDecoder; 33 import java.nio.charset.CoderResult; 34 import java.nio.charset.CodingErrorAction; 73 Charset charset; in setCharset() local 75 charset = new IBM437("IBM437", new String[] { "IBM437", "CP437" }); in setCharset() 77 charset = Charset.forName(encoding); in setCharset() 80 if (charset == currentCharset || charset == null) { in setCharset() 84 CharsetDecoder newCd = charset.newDecoder(); in setCharset() [all …]
|