Searched defs:charset (Results 1 - 25 of 229) sorted by relevance

12345678910

/external/chromium_org/net/url_request/
H A Durl_request_data_job_unittest.cc19 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 Durl_request_data_job.cc18 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...]
/external/chromium_org/third_party/WebKit/Source/core/fetch/
H A DXSLStyleSheetResource.cpp37 XSLStyleSheetResource::XSLStyleSheetResource(const ResourceRequest& resourceRequest, const String& charset) argument
38 : StyleSheetResource(resourceRequest, XSLStyleSheet, "text/xsl", charset)
H A DStyleSheetResource.h44 StyleSheetResource(const ResourceRequest& request, Type type, const String& mimeType, const String& charset) argument
45 : TextResource(request, type, mimeType, charset)
H A DFetchRequest.cpp34 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicString& initiator, const String& charset, ResourceLoadPriority priority) argument
36 , m_charset(charset)
H A DScriptResource.cpp37 ScriptResource::ScriptResource(const ResourceRequest& resourceRequest, const String& charset) argument
38 : TextResource(resourceRequest, Script, "application/javascript", charset)
H A DTextResource.cpp13 TextResource::TextResource(const ResourceRequest& resourceRequest, Resource::Type type, const String& mimeType, const String& charset) argument
15 , m_decoder(TextResourceDecoder::create(mimeType, charset))
/external/apache-http/src/org/apache/http/auth/params/
H A DAuthParamBean.java49 public void setCredentialCharset (final String charset) { argument
50 AuthParams.setCredentialCharset(params, charset);
H A DAuthParams.java61 * 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...]
/external/chromium_org/net/base/
H A Ddata_url_unittest.cc16 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 Dnet_string_util_icu.cc16 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 Dnet_string_util_icu_alternatives_android.cc18 // 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...]
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebCachedURLRequest.cpp55 WebString WebCachedURLRequest::charset() const function in class:blink::WebCachedURLRequest
57 return WebString(m_private->charset());
/external/apache-http/src/org/apache/commons/codec/net/
H A DBCodec.java52 * 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 DRFC1522Codec.java54 * 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 DStringEntity.java60 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/apache-http/src/org/apache/http/util/
H A DEncodingUtils.java54 * 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...]
/external/chromium_org/chrome/renderer/pepper/
H A Dchrome_renderer_pepper_host_factory.cc74 PP_PrivateFontCharset charset; local
76 message, &description, &charset)) {
78 host_, instance, params.pp_resource(), description, charset));
/external/chromium_org/content/browser/
H A Dhistogram_internals_request_job.cc59 std::string* charset,
63 charset->assign("UTF8");
57 GetData( std::string* mime_type, std::string* charset, std::string* data, const net::CompletionCallback& callback) const argument
/external/chromium_org/ppapi/cpp/private/
H A Dflash_font_file.cc30 PP_PrivateFontCharset charset) {
33 instance.pp_instance(), description, charset));
28 FontFile(const InstanceHandle& instance, const PP_BrowserFont_Trusted_Description* description, PP_PrivateFontCharset charset) argument
/external/chromium_org/ppapi/thunk/
H A Dppb_flash_font_file_thunk.cc18 PP_PrivateFontCharset charset) {
22 return enter.functions()->CreateFlashFontFile(instance, description, charset);
16 Create(PP_Instance instance, const PP_BrowserFont_Trusted_Description* description, PP_PrivateFontCharset charset) argument
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
H A DCSSParserMode.cpp43 CSSParserContext::CSSParserContext(const Document& document, UseCounter* useCounter, const KURL& baseURL, const String& charset) argument
45 , m_charset(charset)
84 if (charset().isEmpty())
86 return KURL(baseURL(), url, charset());
/external/chromium_org/third_party/freetype/src/cff/
H A Dcffcmap.c129 CFF_Charset charset = &cff->charset; local
130 FT_UInt sid = charset->sids[idx];
143 CFF_Charset charset = &cff->charset; local
149 if ( !charset->sids )
/external/freetype/src/cff/
H A Dcffcmap.c129 CFF_Charset charset = &cff->charset; local
130 FT_UInt sid = charset->sids[idx];
143 CFF_Charset charset = &cff->charset; local
149 if ( !charset->sids )
/external/guava/guava/src/com/google/common/hash/
H A DAbstractHasher.java19 import java.nio.charset.Charset;
46 @Override public Hasher putString(CharSequence charSequence, Charset charset) { argument
48 return putBytes(charSequence.toString().getBytes(charset.name()));

Completed in 674 milliseconds

12345678910