/external/apache-http/src/org/apache/commons/codec/net/ |
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...] |
H A D | URLCodec.java | 43 * 1.4 rely on the platform's default charset encoding. 53 * The default charset used for string decoding and encoding. 55 protected String charset = StringEncodings.UTF8; field in class:URLCodec 94 * Constructor which allows for the selection of a default charset 96 * @param charset the default string charset to use. 98 public URLCodec(String charset) { argument 100 this.charset = charset; 212 * string charset 220 encode(String pString, String charset) argument 264 decode(String pString, String charset) argument [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/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...] |
/external/chromium/net/base/ |
H A D | data_url.cc | 20 std::string* charset, std::string* data) { 49 const char kCharsetTag[] = "charset="; 53 charset->assign(it + sizeof(kCharsetTag)-1, comma); 60 if (charset->empty()) 61 charset->assign("US-ASCII"); 19 Parse(const GURL& url, std::string* mime_type, std::string* charset, std::string* data) argument
|
/external/chromium/net/url_request/ |
H A D | url_request_data_job.cc | 24 std::string* charset, 31 return DataURL::Parse(url, mime_type, charset, data); 23 GetData(std::string* mime_type, std::string* charset, std::string* data) const argument
|
H A D | url_request_simple_job.cc | 33 bool URLRequestSimpleJob::GetCharset(std::string* charset) { argument 34 *charset = charset_;
|
/external/freetype/src/cff/ |
H A D | cffcmap.c | 127 CFF_Charset charset = &cff->charset; local 128 FT_UInt sid = charset->sids[idx]; 141 CFF_Charset charset = &cff->charset; local 147 if ( !charset->sids )
|
/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()));
|
H A D | HashFunction.java | 20 import java.nio.charset.Charset; 186 * Shortcut for {@code newHasher().putString(input, charset).hash()}. Characters are encoded 190 HashCode hashString(CharSequence input, Charset charset); argument
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
H A D | MessageFactoryExt.java | 41 * Set default charset used for encoding String content. Note that this 46 * @param charset -- charset to set. 48 * @throws IllegalArgumentException if Charset is not a known charset. 51 public void setDefaultContentEncodingCharset(String charset) argument
|
/external/webkit/Source/WebCore/platform/network/ |
H A D | DataURL.cpp | 60 mediaType = "text/plain;charset=US-ASCII"; 63 String charset = extractCharsetFromMediaType(mediaType); local 67 response.setTextEncodingName(charset); 80 data = decodeURLEscapeSequences(data, TextEncoding(charset));
|
/external/apache-harmony/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
H A 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; 45 // Populate the known charset vars 57 * @tests java.nio.charset.Charset#isRegistered() 74 * @tests java.nio.charset.Charset#isSupported(String) 129 public boolean contains(Charset charset) { argument 191 contains(Charset charset) argument [all...] |
H A D | ASCIICharsetEncoderTest.java | 17 package org.apache.harmony.nio_char.tests.java.nio.charset; 21 import java.nio.charset.CharacterCodingException; 22 import java.nio.charset.Charset; 23 import java.nio.charset.CharsetEncoder; 24 import java.nio.charset.CoderResult; 25 import java.nio.charset.CodingErrorAction; 26 import java.nio.charset.MalformedInputException; 27 import java.nio.charset.UnmappableCharacterException; 33 // charset for ascii
|
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
H A D | CoderResultTest.java | 17 package tests.api.java.nio.charset; 21 import java.nio.charset.CoderResult; 22 import java.nio.charset.MalformedInputException; 23 import java.nio.charset.UnmappableCharacterException; 28 * Test class java.nio.charset.CoderResult.
|
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 | UTF16BECharsetEncoderTest.java | 17 package tests.api.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset; 28 // charset for utf-16be
|
H A D | UTF16CharsetDecoderTest.java | 17 package tests.api.java.nio.charset; 22 import java.nio.charset.CharacterCodingException; 23 import java.nio.charset.Charset; 24 import java.nio.charset.CoderResult; 25 import java.nio.charset.CodingErrorAction;
|
H A D | UTF16LECharsetEncoderTest.java | 17 package tests.api.java.nio.charset; 20 import java.nio.charset.CharacterCodingException; 21 import java.nio.charset.Charset; 28 // charset for utf-16le
|
H A D | UTFCharsetEncoderTest.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 utf-8 charset encoder 28 // charset for UTF-8
|
/external/apache-http/src/org/apache/http/impl/auth/ |
H A D | BasicScheme.java | 141 String charset = AuthParams.getCredentialCharset(request.getParams()); 142 return authenticate(credentials, charset, isProxy()); 147 * {@link Credentials} and charset. 150 * @param charset The charset to use for encoding the credentials 156 final String charset, 161 if (charset == null) { 162 throw new IllegalArgumentException("charset may not be null"); 171 EncodingUtils.getBytes(tmp.toString(), charset)); 154 authenticate( final Credentials credentials, final String charset, boolean proxy) argument
|
/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/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/guava/guava-tests/test/com/google/common/hash/ |
H A D | AbstractNonStreamingHashFunctionTest.java | 12 import java.nio.charset.Charset; 98 public HashCode hashString(CharSequence input, Charset charset) { argument
|
/external/webkit/Source/WebCore/html/parser/ |
H A D | HTMLMetaCharsetParser.cpp | 54 static const char charsetString[] = "charset"; 55 static const size_t charsetLength = sizeof("charset") - 1; 107 String charset; local 118 } else if (charset.isEmpty()) { 120 charset = attributeValue; 123 charset = extractCharset(attributeValue); 124 if (charset.length()) 131 m_encoding = TextEncoding(stripLeadingAndTrailingHTMLSpaces(charset)); 139 static const int bytesToCheckUnconditionally = 1024; // That many input bytes will be checked for meta charset even if <head> section is over. 162 // Since many sites have charset declaration [all...] |