/external/apache-http/src/org/apache/http/auth/params/ |
AuthParams.java | 61 * Obtains the charset for encoding 67 * @return The charset 75 String charset = (String) params.getParameter local 79 if (charset == null) { 80 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; 82 return charset; 87 * Sets the charset to be used when encoding 90 * @param charset The charset 92 public static void setCredentialCharset(final HttpParams params, final String charset) { [all...] |
AuthParamBean.java | 49 public void setCredentialCharset (final String charset) { 50 AuthParams.setCredentialCharset(params, charset);
|
/external/chromium_org/net/base/ |
net_string_util.h | 19 // Converts |text| using |charset| to UTF-8, and writes it to |output|. 21 bool ConvertToUtf8(const std::string& text, const char* charset, 24 // Converts |text| using |charset| to UTF-8, normalizes the result, and writes 26 bool ConvertToUtf8AndNormalize(const std::string& text, const char* charset, 29 // Converts |text| using |charset| to UTF-16, and writes it to |output|. 31 bool ConvertToUTF16(const std::string& text, const char* charset, 34 // Converts |text| using |charset| to UTF-16, and writes it to |output|. 37 const char* charset,
|
net_string_util_icu.cc | 16 bool ConvertToUtf8(const std::string& text, const char* charset, 21 UConverter* converter(ucnv_open(charset, &err)); 43 bool ConvertToUtf8AndNormalize(const std::string& text, const char* charset, 45 return base::ConvertToUtf8AndNormalize(text, charset, output); 48 bool ConvertToUTF16(const std::string& text, const char* charset, 50 return base::CodepageToUTF16(text, charset, 55 const char* charset, 57 return base::CodepageToUTF16(text, charset,
|
data_url_unittest.cc | 16 const char* charset; member in struct:__anon13617::ParseTestData 42 { "data:;charset=,test", 74 // When accepting an invalid mediatype, override charset with "US-ASCII" 75 { "data:foo;charset=UTF-8,boo", 82 { "data:f(oo/bar;baz=1;charset=kk,boo", 88 { "data:foo/bar;baz=1;charset=kk,boo", 94 { "data:foo/bar;charset=kk;baz=1,boo", 167 { "data:text/plain;charset=utf-8;base64,SGVsbMO2", 192 std::string charset; local 195 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data) [all...] |
data_url.h | 27 // If <mediatype> is omitted, it defaults to text/plain;charset=US-ASCII. As a 28 // shorthand, "text/plain" can be omitted but the charset parameter supplied. 48 // If the charset parameter is specified but its value doesn't match the 61 std::string* charset,
|
net_string_util_icu_alternatives_android.cc | 18 // Attempts to convert |text| encoded in |charset| to a jstring (Java unicode 21 const char* charset) { 27 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset)); 34 // Attempts to convert |text| encoded in |charset| to a jstring (Java unicode 38 const std::string& text, const char* charset) { 44 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset)); 51 // Converts |text| encoded in |charset| to a jstring (Java unicode string). 54 const std::string& text, const char* charset) { 60 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset)); 71 bool ConvertToUtf8(const std::string& text, const char* charset, [all...] |
data_url.cc | 24 std::string* charset, std::string* data) { 26 DCHECK(charset->empty()); 51 static const char kCharsetTag[] = "charset="; 58 } else if (charset->empty() && 60 charset->assign(iter->substr(kCharsetTagLength)); 61 // The grammar for charset is not specially defined in RFC2045 and 63 if (!net::HttpUtil::IsToken(*charset)) 70 // specified in RFC2045. As specified in RFC2397, we use |charset| even if 75 // value is invalid. For this case, we don't respect |charset| but force it 78 charset->assign("US-ASCII") [all...] |
/external/apache-http/src/org/apache/http/util/ |
EncodingUtils.java | 54 * the specified charset is not supported, default system encoding 60 * @param charset the desired character encoding 67 String charset 74 if (charset == null || charset.length() == 0) { 75 throw new IllegalArgumentException("charset may not be null or empty"); 79 return new String(data, offset, length, charset); 88 * the specified charset is not supported, default system encoding 92 * @param charset the desired character encoding 95 public static String getString(final byte[] data, final String charset) { [all...] |
EntityUtils.java | 99 String charset = null; local 103 NameValuePair param = values[0].getParameterByName("charset"); 105 charset = param.getValue(); 109 return charset; 128 String charset = getContentCharSet(entity); local 129 if (charset == null) { 130 charset = defaultCharset; 132 if (charset == null) { 133 charset = HTTP.DEFAULT_CONTENT_CHARSET; 135 Reader reader = new InputStreamReader(instream, charset); [all...] |
/external/apache-http/src/org/apache/http/params/ |
HttpProtocolParams.java | 68 * Returns the charset to be used for writing HTTP headers. 69 * @return The charset 75 String charset = (String) params.getParameter local 77 if (charset == null) { 78 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; 80 return charset; 84 * Sets the charset to be used for writing HTTP headers. 85 * @param charset The charset 87 public static void setHttpElementCharset(final HttpParams params, final String charset) { 103 String charset = (String) params.getParameter local [all...] |
/external/chromium_org/content/browser/renderer_host/ |
font_utils_linux.h | 15 uint32 charset,
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
MediaType.java | 18 import java.nio.charset.Charset; 37 private final String charset; field in class:MediaType 39 private MediaType(String mediaType, String type, String subtype, String charset) { 43 this.charset = charset; 56 String charset = null; local 63 if (name == null || !name.equalsIgnoreCase("charset")) continue; 64 if (charset != null) throw new IllegalArgumentException("Multiple charsets: " + string); 65 charset = parameter.group(2) != nul 93 public Charset charset() { method in class:MediaType 101 public Charset charset(Charset defaultValue) { method in class:MediaType [all...] |
/external/chromium_org/third_party/WebKit/Source/core/fetch/ |
StyleSheetResource.h | 44 StyleSheetResource(const ResourceRequest& request, Type type, const String& mimeType, const String& charset) 45 : TextResource(request, type, mimeType, charset)
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
NetStringUtil.java | 11 import java.nio.charset.Charset; 12 import java.nio.charset.CharsetDecoder; 13 import java.nio.charset.CodingErrorAction; 34 Charset charset = Charset.forName(charsetName); local 35 CharsetDecoder decoder = charset.newDecoder(); 72 Charset charset = Charset.forName(charsetName) local [all...] |
/external/guava/guava/src/com/google/common/io/ |
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 { 99 return CharStreams.toString(newReaderSupplier(url, charset)); [all...] |
/external/chromium_org/net/url_request/ |
url_request_data_job.cc | 18 std::string* charset, 21 if (!net::DataURL::Parse(url, mime_type, charset, data)) 26 // form. |charset| is also guaranteed to be a token. 29 DCHECK(!charset->empty()); 33 // "charset" in the Content-Type header is specified explicitly to follow 35 // successful, it's guaranteed that the string in |charset| follows the 38 "Content-Type: " + *mime_type + ";charset=" + *charset; 52 std::string* charset, 63 return BuildResponse(url, mime_type, charset, data, NULL) [all...] |
url_request_data_job_unittest.cc | 19 std::string charset; local 27 GURL("data:,Hello"), &mime_type, &charset, &data, headers.get())); 30 EXPECT_EQ("US-ASCII", charset); 39 EXPECT_EQ(value, "text/plain;charset=US-ASCII"); 48 std::string charset; local 56 GURL("bogus"), &mime_type, &charset, &data, headers.get())); 61 std::string charset; local 72 &mime_type, &charset, &data, headers.get())); 76 EXPECT_EQ(value, "text/plain;charset=US-ASCII"); 81 std::string charset; local [all...] |
url_request_data_job.h | 26 std::string* charset, 34 std::string* charset,
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
MediaTypeTest.java | 20 import java.nio.charset.Charset; 21 import java.nio.charset.IllegalCharsetNameException; 22 import java.nio.charset.UnsupportedCharsetException; 38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8"); 41 assertEquals("UTF-8", mediaType.charset().name()); 42 assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString()); 43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8"))); 45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode()); 50 assertMediaType("application/atom+xml; charset=utf-8") 138 MediaType charset = MediaType.parse("text\/plain; charset=iso-8859-1"); local [all...] |
/external/apache-http/src/org/apache/commons/codec/net/ |
BCodec.java | 52 * The default charset used for string decoding and encoding. 54 private String charset = StringEncodings.UTF8; field in class:BCodec 64 * Constructor which allows for the selection of a default charset 66 * @param charset 67 * the default string charset to use. 72 public BCodec(final String charset) { 74 this.charset = charset; 96 * Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped. 100 * @param charset [all...] |
RFC1522Codec.java | 54 * given charset. This method constructs the "encoded-word" header common to all the 59 * @param charset a charset to be used 65 * @throws UnsupportedEncodingException thrown if charset is not supported 70 protected String encodeText(final String text, final String charset) 78 buffer.append(charset); 82 byte [] rawdata = doEncoding(text.getBytes(charset)); 97 * @throws UnsupportedEncodingException thrown if charset specified in the "encoded-word" 113 throw new DecoderException("RFC 1522 violation: charset token not found"); 115 String charset = text.substring(from, to) local [all...] |
/external/apache-http/src/org/apache/http/entity/ |
StringEntity.java | 60 public StringEntity(final String s, String charset) 66 if (charset == null) { 67 charset = HTTP.DEFAULT_CONTENT_CHARSET; 69 this.content = s.getBytes(charset); 70 setContentType(HTTP.PLAIN_TEXT_TYPE + HTTP.CHARSET_PARAM + charset);
|
/external/guava/guava/src/com/google/common/hash/ |
AbstractHasher.java | 19 import java.nio.charset.Charset; 24 * {@link #putString(CharSequence, Charset)} as prescribed by {@link Hasher}. 46 @Override public Hasher putString(CharSequence charSequence, Charset charset) { 48 return putBytes(charSequence.toString().getBytes(charset.name()));
|
/external/chromium_org/ppapi/cpp/private/ |
flash_font_file.cc | 30 PP_PrivateFontCharset charset) { 33 instance.pp_instance(), description, charset));
|