Searched refs:charset (Results 1 - 25 of 418) sorted by relevance

1234567891011>>

/external/apache-http/src/org/apache/http/auth/params/
H A DAuthParams.java56 * 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 DAuthParamBean.java43 public void setCredentialCharset (final String charset) { argument
44 AuthParams.setCredentialCharset(params, charset);
/external/chromium_org/net/base/
H A Dnet_string_util.h19 // 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 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) {
26 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset));
33 // Attempts to convert |text| encoded in |charset| to a jstring (Java unicode
37 const std::string& text, const char* charset) {
42 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset));
49 // Converts |text| encoded in |charset| to a jstring (Java unicode string).
52 const std::string& text, const char* charset) {
57 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset));
68 bool ConvertToUtf8(const std::string& text, const char* charset, argument
20 ConvertToJstring(const std::string& text, const char* charset) argument
36 ConvertToNormalizedJstring( const std::string& text, const char* charset) argument
51 ConvertToJstringWithSubstitutions( const std::string& text, const char* charset) argument
78 ConvertToUtf8AndNormalize(const std::string& text, const char* charset, std::string* output) argument
89 ConvertToUTF16(const std::string& text, const char* charset, base::string16* output) argument
99 ConvertToUTF16WithSubstitutions(const std::string& text, const char* charset, base::string16* output) argument
[all...]
H A Ddata_url_unittest.cc16 const char* charset; member in struct:__anon8400::ParseTestData
42 { "data:;charset=,test",
66 { "data:foo/bar;baz=1;charset=kk,boo",
72 { "data:foo/bar;charset=kk;baz=1,boo",
92 { "data:f(oo/bar;baz=1;charset=kk,boo",
152 { "data:text/plain;charset=utf-8;base64,SGVsbMO2",
177 std::string charset; local
180 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data);
184 EXPECT_EQ(tests[i].charset, charset);
[all...]
/external/apache-http/src/org/apache/http/util/
H A DEncodingUtils.java49 * 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 DEntityUtils.java94 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 DHttpProtocolParams.java63 * 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/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DMediaType.java18 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 DStyleSheetResource.h44 StyleSheetResource(const ResourceRequest& request, Type type, const String& mimeType, const String& charset) argument
45 : TextResource(request, type, mimeType, 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/chromium_org/net/android/java/src/org/chromium/net/
H A DNetStringUtil.java11 import java.nio.charset.Charset;
12 import java.nio.charset.CharsetDecoder;
13 import java.nio.charset.CodingErrorAction;
26 * @param charset Character set it's in encoded in.
34 Charset charset = Charset.forName(charset_name);
35 CharsetDecoder decoder = charset.newDecoder();
47 * @param charset Character set it's in encoded in.
65 * @param charset Character set it's in encoded in.
73 Charset charset = Charset.forName(charset_name);
78 // but Charset.decode() docs say it uses the "charset'
[all...]
/external/guava/guava/src/com/google/common/io/
H A DResources.java29 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...]
H A DFiles.java42 import java.nio.charset.Charset;
69 * @param charset the character set used when writing the file
72 public static BufferedReader newReader(File file, Charset charset) argument
75 new InputStreamReader(new FileInputStream(file), charset));
83 * @param charset the character set used when writing the file
86 public static BufferedWriter newWriter(File file, Charset charset) argument
89 new OutputStreamWriter(new FileOutputStream(file), charset));
147 * @param charset the character set used when reading the file
151 Charset charset) {
152 return CharStreams.newReaderSupplier(newInputStreamSupplier(file), charset);
150 newReaderSupplier(File file, Charset charset) argument
163 newWriterSupplier(File file, Charset charset) argument
178 newWriterSupplier(File file, Charset charset, boolean append) argument
222 toString(File file, Charset charset) argument
298 copy( InputSupplier<R> from, File to, Charset charset) argument
312 write(CharSequence from, File to, Charset charset) argument
326 append(CharSequence from, File to, Charset charset) argument
341 write(CharSequence from, File to, Charset charset, boolean append) argument
356 copy(File from, Charset charset, OutputSupplier<W> to) argument
370 copy(File from, Charset charset, Appendable to) argument
510 readFirstLine(File file, Charset charset) argument
525 readLines(File file, Charset charset) argument
540 readLines(File file, Charset charset, LineProcessor<T> callback) argument
[all...]
/external/chromium_org/net/url_request/
H A Durl_request_data_job.cc20 std::string* charset,
28 return DataURL::Parse(url, mime_type, charset, data)? OK: ERR_INVALID_URL;
19 GetData(std::string* mime_type, std::string* charset, std::string* data, const CompletionCallback& callback) const argument
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DMediaTypeTest.java20 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 DBCodec.java47 * 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 DRFC1522Codec.java49 * 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 DStringEntity.java55 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 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()));
H A DHashFunction.java20 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/pdfium/core/src/fxge/apple/
H A Dfx_mac_imp.cpp32 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 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/third_party/WebKit/Source/web/
H A DWebCachedURLRequest.cpp57 WebString WebCachedURLRequest::charset() const function in class:blink::WebCachedURLRequest
59 return WebString(m_private->charset());

Completed in 873 milliseconds

1234567891011>>