/external/apache-http/src/org/apache/http/auth/params/ |
H A D | AuthParams.java | 61 * Obtains the charset for encoding 67 * @return The charset 75 String charset = (String) params.getParameter 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) { argument [all...] |
H A D | AuthParamBean.java | 49 public void setCredentialCharset (final String charset) { argument 50 AuthParams.setCredentialCharset(params, charset);
|
/external/chromium_org/net/base/ |
H A D | 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,
|
H A D | net_string_util_icu.cc | 16 bool ConvertToUtf8(const std::string& text, const char* charset, argument 21 UConverter* converter(ucnv_open(charset, &err)); 43 bool ConvertToUtf8AndNormalize(const std::string& text, const char* charset, argument 45 return base::ConvertToUtf8AndNormalize(text, charset, output); 48 bool ConvertToUTF16(const std::string& text, const char* charset, argument 50 return base::CodepageToUTF16(text, charset, 55 const char* charset, 57 return base::CodepageToUTF16(text, charset, 54 ConvertToUTF16WithSubstitutions(const std::string& text, const char* charset, base::string16* output) argument
|
H A D | data_url_unittest.cc | 16 const char* charset; member in struct:__anon8992::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, [all...] |
H A D | 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, argument 20 ConvertToJstring(const std::string& text, const char* charset) argument 37 ConvertToNormalizedJstring( const std::string& text, const char* charset) argument 53 ConvertToJstringWithSubstitutions( const std::string& text, const char* charset) argument 81 ConvertToUtf8AndNormalize(const std::string& text, const char* charset, std::string* output) argument 92 ConvertToUTF16(const std::string& text, const char* charset, base::string16* output) argument 102 ConvertToUTF16WithSubstitutions(const std::string& text, const char* charset, base::string16* output) argument [all...] |
H A D | 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 23 Parse(const GURL& url, std::string* mime_type, std::string* charset, std::string* data) argument [all...] |
/external/apache-http/src/org/apache/http/util/ |
H A D | 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) { argument 110 getBytes(final String data, final String charset) argument [all...] |
H A D | EntityUtils.java | 99 String charset = null; 103 NameValuePair param = values[0].getParameterByName("charset"); 105 charset = param.getValue(); 109 return charset; 128 String charset = getContentCharSet(entity); 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/ |
H A D | HttpProtocolParams.java | 68 * Returns the charset to be used for writing HTTP headers. 69 * @return The charset 75 String charset = (String) params.getParameter 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) { argument 116 setContentCharset(final HttpParams params, final String charset) argument [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
H A D | 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) { argument 43 this.charset = charset; 56 String charset = null; 63 if (name == null || !name.equalsIgnoreCase("charset")) continue; 64 if (charset != null) throw new IllegalArgumentException("Multiple charsets: " + string); 65 charset = parameter.group(2) != null 70 return new MediaType(string, type, subtype, charset); 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/ |
H A D | StyleSheetResource.h | 44 StyleSheetResource(const ResourceRequest& request, Type type, const String& mimeType, const String& charset) argument 45 : TextResource(request, type, mimeType, charset)
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
H A D | 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); 35 CharsetDecoder decoder = charset.newDecoder(); 72 Charset charset = Charset.forName(charsetName); 77 // but Charset.decode() docs say it uses the "charset's default 79 CharsetDecoder decoder = charset.newDecoder();
|
/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/chromium_org/content/browser/renderer_host/ |
H A D | font_utils_linux.h | 15 uint32 charset,
|
/external/chromium_org/net/url_request/ |
H A D | 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, dat 16 BuildResponse(const GURL& url, std::string* mime_type, std::string* charset, std::string* data, HttpResponseHeaders* headers) argument 51 GetData(std::string* mime_type, std::string* charset, std::string* data, const CompletionCallback& callback) const argument [all...] |
H A D | 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...] |
H A D | url_request_data_job.h | 26 std::string* charset, 34 std::string* charset,
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | 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"); 55 assertMediaType("text/plain; charset [all...] |
/external/apache-http/src/org/apache/commons/codec/net/ |
H A D | 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) { argument 74 this.charset = charset; 96 * Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped. 100 * @param charset 107 encode(final String value, final String charset) argument [all...] |
H A D | 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) argument 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 [all...] |
/external/apache-http/src/org/apache/http/entity/ |
H A D | StringEntity.java | 60 public StringEntity(final String s, String charset) argument 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/ |
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/pdfium/core/src/fxge/apple/ |
H A D | fx_mac_imp.cpp | 32 virtual void* MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR family, FX_BOOL& bExact);
48 void* CFX_MacFontInfo::MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR cstr_face, FX_BOOL& bExact)
argument 65 if (charset == FXFONT_ANSI_CHARSET && (pitch_family & FXFONT_FF_FIXEDPITCH)) {
68 if (charset == FXFONT_ANSI_CHARSET || charset == FXFONT_SYMBOL_CHARSET) {
71 switch (charset) {
|
/external/chromium_org/ppapi/cpp/private/ |
H A D | flash_font_file.cc | 30 PP_PrivateFontCharset charset) { 33 instance.pp_instance(), description, charset)); 28 FontFile(const InstanceHandle& instance, const PP_BrowserFont_Trusted_Description* description, PP_PrivateFontCharset charset) argument
|