/external/expat/xmlwf/ |
H A D | xmlmime.h | 5 /* Registered charset names are at most 40 characters long. */ 9 /* Figure out the charset to use from the ContentType. 11 charset gets the charset to use. It must be at least CHARSET_MAX chars 12 long. charset will be empty if the default charset should be used. 15 void getXMLCharset(const char *buf, char *charset);
|
H A D | xmlmime.c | 88 getXMLCharset(const char *buf, char *charset) argument 92 charset[0] = '\0'; 96 strcpy(charset, "us-ascii"); 104 if (!matchkey(p, next, "xml") && charset[0] == '\0') 111 if (matchkey(p, next, "charset")) { 116 char *s = charset; 121 if (s == charset + CHARSET_MAX - 1) { 122 charset[0] = '\0'; 159 printf("charset=\"%s\"\n", buf);
|
H A D | ct.c | 84 getXMLCharset(const char *buf, char *charset) argument 88 charset[0] = '\0'; 92 strcpy(charset, "us-ascii"); 105 if (matchkey(p, next, "charset")) { 110 char *s = charset; 115 if (s == charset + CHARSET_MAX - 1) { 116 charset[0] = '\0'; 145 printf("charset = \"%s\"\n", buf);
|
/external/apache-http/src/org/apache/http/auth/params/ |
H A D | AuthParams.java | 56 * Obtains the charset for encoding 62 * @return The charset 70 String charset = (String) params.getParameter 74 if (charset == null) { 75 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; 77 return charset; 82 * Sets the charset to be used when encoding 85 * @param charset The charset 87 public static void setCredentialCharset(final HttpParams params, final String charset) { argument [all...] |
H A D | AuthParamBean.java | 43 public void setCredentialCharset (final String charset) { argument 44 AuthParams.setCredentialCharset(params, charset);
|
/external/apache-http/src/org/apache/http/util/ |
H A D | EncodingUtils.java | 49 * the specified charset is not supported, default system encoding 55 * @param charset the desired character encoding 62 String charset 69 if (charset == null || charset.length() == 0) { 70 throw new IllegalArgumentException("charset may not be null or empty"); 74 return new String(data, offset, length, charset); 83 * the specified charset is not supported, default system encoding 87 * @param charset the desired character encoding 90 public static String getString(final byte[] data, final String charset) { argument 105 getBytes(final String data, final String charset) argument [all...] |
H A D | EntityUtils.java | 94 String charset = null; 98 NameValuePair param = values[0].getParameterByName("charset"); 100 charset = param.getValue(); 104 return charset; 123 String charset = getContentCharSet(entity); 124 if (charset == null) { 125 charset = defaultCharset; 127 if (charset == null) { 128 charset = HTTP.DEFAULT_CONTENT_CHARSET; 130 Reader reader = new InputStreamReader(instream, charset); [all...] |
/external/apache-http/src/org/apache/http/params/ |
H A D | HttpProtocolParams.java | 63 * Returns the charset to be used for writing HTTP headers. 64 * @return The charset 70 String charset = (String) params.getParameter 72 if (charset == null) { 73 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; 75 return charset; 79 * Sets the charset to be used for writing HTTP headers. 80 * @param charset The charset 82 public static void setHttpElementCharset(final HttpParams params, final String charset) { argument 111 setContentCharset(final HttpParams params, final String charset) argument [all...] |
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
H A D | UTF16CharsetTest.java | 17 package tests.api.java.nio.charset; 34 * @see tests.api.java.nio.charset.ConcreteCharsetTest#testEncode_Normal() 44 * @see tests.api.java.nio.charset.ConcreteCharsetTest#testDecode_Normal()
|
H A D | CP037CharsetTest.java | 17 package tests.api.java.nio.charset; 22 * test case specific activity of IBM037 charset encoder/decoder
|
H A D | ISOCharsetDecoderTest.java | 17 package tests.api.java.nio.charset; 21 import java.nio.charset.Charset;
|
H A D | GBCharsetEncoderTest.java | 17 package tests.api.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset; 24 * test case specific activity of gb18030 charset encoder 28 // charset for gb180303
|
H A 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; 27 * test case specific activity of iso-8859-1 charset encoder 31 // charset for iso-8859-1
|
H A D | ASCCharsetDecoderTest.java | 17 package tests.api.java.nio.charset; 21 import java.nio.charset.Charset;
|
H A D | GBCharsetDecoderTest.java | 17 package tests.api.java.nio.charset; 21 import java.nio.charset.Charset;
|
H A D | UTF16BECharsetDecoderTest.java | 17 package tests.api.java.nio.charset; 21 import java.nio.charset.Charset;
|
/external/chromium/net/base/ |
H A D | data_url_unittest.cc | 16 const char* charset; member in struct:__anon2918::ParseTestData 42 { "data:;charset=,test", 66 { "data:foo/bar;baz=1;charset=kk,boo", 144 std::string charset; local 147 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); 151 EXPECT_EQ(tests[i].charset, charset);
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
H A D | StrictLineReader.java | 24 import java.nio.charset.Charset; 45 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1. 46 * The default charset is US_ASCII. 53 private final Charset charset; field in class:StrictLineReader 64 * Constructs a new {@code StrictLineReader} with the default capacity and charset. 74 * Constructs a new {@code LineReader} with the specified capacity and the default charset. 86 * Constructs a new {@code LineReader} with the specified charset and the default capacity. 89 * @param charset the charset used to decode data. 91 * @throws NullPointerException if {@code in} or {@code charset} i 94 StrictLineReader(InputStream in, Charset charset) argument 109 StrictLineReader(InputStream in, int capacity, Charset charset) argument [all...] |
/external/guava/guava/src/com/google/common/io/ |
H A D | Resources.java | 29 import java.nio.charset.Charset; 70 * @param charset the character set used when reading the URL contents 74 URL url, Charset charset) { 75 return CharStreams.newReaderSupplier(newInputStreamSupplier(url), charset); 94 * @param charset the character set used when reading the URL 98 public static String toString(URL url, Charset charset) throws IOException { argument 99 return CharStreams.toString(newReaderSupplier(url, charset)); 107 * @param charset the character set used when reading the URL 112 public static <T> T readLines(URL url, Charset charset, argument 114 return CharStreams.readLines(newReaderSupplier(url, charset), callbac 73 newReaderSupplier( URL url, Charset charset) argument 127 readLines(URL url, Charset charset) argument [all...] |
/external/apache-http/src/org/apache/commons/codec/net/ |
H A D | BCodec.java | 47 * The default charset used for string decoding and encoding. 49 private String charset = StringEncodings.UTF8; field in class:BCodec 59 * Constructor which allows for the selection of a default charset 61 * @param charset 62 * the default string charset to use. 67 public BCodec(final String charset) { argument 69 this.charset = charset; 91 * Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped. 95 * @param charset 102 encode(final String value, final String charset) argument [all...] |
H A D | RFC1522Codec.java | 49 * given charset. This method constructs the "encoded-word" header common to all the 54 * @param charset a charset to be used 60 * @throws UnsupportedEncodingException thrown if charset is not supported 65 protected String encodeText(final String text, final String charset) argument 73 buffer.append(charset); 77 byte [] rawdata = doEncoding(text.getBytes(charset)); 92 * @throws UnsupportedEncodingException thrown if charset specified in the "encoded-word" 108 throw new DecoderException("RFC 1522 violation: charset token not found"); 110 String charset [all...] |
/external/apache-http/src/org/apache/http/entity/ |
H A D | StringEntity.java | 55 public StringEntity(final String s, String charset) argument 61 if (charset == null) { 62 charset = HTTP.DEFAULT_CONTENT_CHARSET; 64 this.content = s.getBytes(charset); 65 setContentType(HTTP.PLAIN_TEXT_TYPE + HTTP.CHARSET_PARAM + charset);
|
/external/guava/guava/src/com/google/common/hash/ |
H A D | AbstractHasher.java | 19 import java.nio.charset.Charset; 46 @Override public Hasher putString(CharSequence charSequence, Charset charset) { argument 48 return putBytes(charSequence.toString().getBytes(charset.name()));
|
/external/apache-harmony/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
H A D | CharacterCodingExceptionTest.java | 17 package org.apache.harmony.nio_char.tests.java.nio.charset; 20 import java.nio.charset.CharacterCodingException;
|
H A D | CoderMalfunctionErrorTest.java | 17 package org.apache.harmony.nio_char.tests.java.nio.charset; 19 import java.nio.charset.CoderMalfunctionError;
|