Home
last modified time | relevance | path

Searched refs:charset (Results 1 – 25 of 861) sorted by relevance

12345678910>>...35

/external/curl/lib/
Dcurl_fnmatch.c70 static int parsekeyword(unsigned char **pattern, unsigned char *charset) in parsekeyword() argument
102 charset[CURLFNM_DIGIT] = 1; in parsekeyword()
104 charset[CURLFNM_ALNUM] = 1; in parsekeyword()
106 charset[CURLFNM_ALPHA] = 1; in parsekeyword()
108 charset[CURLFNM_XDIGIT] = 1; in parsekeyword()
110 charset[CURLFNM_PRINT] = 1; in parsekeyword()
112 charset[CURLFNM_GRAPH] = 1; in parsekeyword()
114 charset[CURLFNM_SPACE] = 1; in parsekeyword()
116 charset[CURLFNM_BLANK] = 1; in parsekeyword()
118 charset[CURLFNM_UPPER] = 1; in parsekeyword()
[all …]
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
DTestConversion.java8 package com.ibm.icu.dev.test.charset;
12 import java.nio.charset.Charset;
13 import java.nio.charset.CharsetDecoder;
14 import java.nio.charset.CharsetEncoder;
15 import java.nio.charset.CoderResult;
16 import java.nio.charset.CodingErrorAction;
19 import com.ibm.icu.charset.CharsetCallback;
20 import com.ibm.icu.charset.CharsetDecoderICU;
21 import com.ibm.icu.charset.CharsetEncoderICU;
22 import com.ibm.icu.charset.CharsetICU;
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DMediaType.java18 import java.nio.charset.Charset;
37 private final String charset; field in MediaType
39 private MediaType(String mediaType, String type, String subtype, String charset) { in MediaType() argument
43 this.charset = charset; in MediaType()
56 String charset = null; in parse() local
67 if (charset != null && !charsetParameter.equalsIgnoreCase(charset)) { in parse()
70 charset = charsetParameter; in parse()
73 return new MediaType(string, type, subtype, charset); in parse()
96 public Charset charset() { in charset() method in MediaType
97 return charset != null ? Charset.forName(charset) : null; in charset()
[all …]
DResponseBody.java24 import java.nio.charset.Charset;
74 return r != null ? r : (reader = new InputStreamReader(byteStream(), charset())); in charStream()
83 return new String(bytes(), charset().name()); in string()
86 private Charset charset() { in charset() method in ResponseBody
88 return contentType != null ? contentType.charset(UTF_8) : UTF_8; in charset()
100 Charset charset = Util.UTF_8; in create() local
102 charset = contentType.charset(); in create()
103 if (charset == null) { in create()
104 charset = Util.UTF_8; in create()
108 Buffer buffer = new Buffer().writeString(content, charset); in create()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DMediaTypeTest.java20 import java.nio.charset.Charset;
21 import java.nio.charset.IllegalCharsetNameException;
22 import java.nio.charset.UnsupportedCharsetException;
41 assertEquals("UTF-8", mediaType.charset().name()); in testParse()
101 assertEquals("UTF-8", mediaType.charset().name()); in testCharsetIsOneOfManyParameters()
107 assertEquals("UTF-8", mediaType.charset().name()); in testCharsetAndQuoting()
112 assertEquals("UTF-8", mediaType.charset().name()); in testDuplicatedCharsets()
126 mediaType.charset(); in testIllegalCharsetName()
135 mediaType.charset(); in testUnsupportedCharset()
143 assertEquals("UTF-8", noCharset.charset(Util.UTF_8).name()); in testDefaultCharset()
[all …]
/external/apache-http/src/org/apache/http/params/
DHttpProtocolParams.java75 String charset = (String) params.getParameter in getHttpElementCharset() local
77 if (charset == null) { in getHttpElementCharset()
78 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; in getHttpElementCharset()
80 return charset; in getHttpElementCharset()
87 public static void setHttpElementCharset(final HttpParams params, final String charset) { in setHttpElementCharset() argument
91 params.setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET, charset); in setHttpElementCharset()
103 String charset = (String) params.getParameter in getContentCharset() local
105 if (charset == null) { in getContentCharset()
106 charset = HTTP.DEFAULT_CONTENT_CHARSET; in getContentCharset()
108 return charset; in getContentCharset()
[all …]
/external/guava/guava/src/com/google/common/hash/
DFunnels.java22 import java.nio.charset.Charset;
84 public static Funnel<CharSequence> stringFunnel(Charset charset) { in stringFunnel() argument
85 return new StringCharsetFunnel(charset); in stringFunnel()
89 private final Charset charset; field in Funnels.StringCharsetFunnel
91 StringCharsetFunnel(Charset charset) { in StringCharsetFunnel() argument
92 this.charset = Preconditions.checkNotNull(charset); in StringCharsetFunnel()
96 into.putString(from, charset); in funnel()
100 return "Funnels.stringFunnel(" + charset.name() + ")"; in toString()
106 return this.charset.equals(funnel.charset); in equals()
112 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode(); in hashCode()
[all …]
/external/apache-http/src/org/apache/http/util/
DEncodingUtils.java67 String charset in getString() argument
74 if (charset == null || charset.length() == 0) { in getString()
79 return new String(data, offset, length, charset); in getString()
95 public static String getString(final byte[] data, final String charset) { in getString() argument
99 return getString(data, 0, data.length, charset); in getString()
110 public static byte[] getBytes(final String data, final String charset) { in getBytes() argument
116 if (charset == null || charset.length() == 0) { in getBytes()
121 return data.getBytes(charset); in getBytes()
DEntityUtils.java99 String charset = null; in getContentCharSet() local
105 charset = param.getValue(); in getContentCharSet()
109 return charset; in getContentCharSet()
128 String charset = getContentCharSet(entity); in toString() local
129 if (charset == null) { in toString()
130 charset = defaultCharset; in toString()
132 if (charset == null) { in toString()
133 charset = HTTP.DEFAULT_CONTENT_CHARSET; in toString()
135 Reader reader = new InputStreamReader(instream, charset); in toString()
/external/jetty/src/java/org/eclipse/jetty/util/
DUrlEncoded.java80 public UrlEncoded(String s, String charset) in UrlEncoded() argument
83 decode(s,charset); in UrlEncoded()
93 public void decode(String query,String charset) in decode() argument
95 decodeTo(query,this,charset,-1); in decode()
109 public String encode(String charset) in encode() argument
111 return encode(charset,false); in encode()
119 public synchronized String encode(String charset, boolean equalsForNullValue) in encode() argument
121 return encode(this,charset,equalsForNullValue); in encode()
129 public static String encode(MultiMap map, String charset, boolean equalsForNullValue) in encode() argument
131 if (charset==null) in encode()
[all …]
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DStrictLineReader.java25 import java.nio.charset.Charset;
50 private final Charset charset; field in StrictLineReader
71 public StrictLineReader(InputStream in, Charset charset) { in StrictLineReader() argument
72 this(in, 8192, charset); in StrictLineReader()
86 public StrictLineReader(InputStream in, int capacity, Charset charset) { in StrictLineReader() argument
87 if (in == null || charset == null) { in StrictLineReader()
93 if (!(charset.equals(Util.US_ASCII))) { in StrictLineReader()
98 this.charset = charset; in StrictLineReader()
141 String res = new String(buf, pos, lineEnd - pos, charset.name()); in readLine()
153 return new String(buf, 0, length, charset.name()); in readLine()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DRelay.java24 import org.apache.harmony.niochar.charset.additional.IBM437;
31 import java.nio.charset.Charset;
32 import java.nio.charset.CharsetDecoder;
33 import java.nio.charset.CoderResult;
34 import java.nio.charset.CodingErrorAction;
73 Charset charset; in setCharset() local
75 charset = new IBM437("IBM437", new String[] { "IBM437", "CP437" }); in setCharset()
77 charset = Charset.forName(encoding); in setCharset()
80 if (charset == currentCharset || charset == null) { in setCharset()
84 CharsetDecoder newCd = charset.newDecoder(); in setCharset()
[all …]
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/cff/
Dcffload.c787 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument
797 if ( charset->max_cid > 0 ) in cff_charset_compute_cids()
802 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids()
803 max_cid = charset->sids[i]; in cff_charset_compute_cids()
806 if ( FT_NEW_ARRAY( charset->cids, (FT_ULong)max_cid + 1 ) ) in cff_charset_compute_cids()
813 charset->cids[charset->sids[j]] = (FT_UShort)j; in cff_charset_compute_cids()
815 charset->max_cid = max_cid; in cff_charset_compute_cids()
816 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids()
824 cff_charset_cid_to_gindex( CFF_Charset charset, in cff_charset_cid_to_gindex() argument
830 if ( cid <= charset->max_cid ) in cff_charset_cid_to_gindex()
[all …]
/external/freetype/src/cff/
Dcffload.c793 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument
803 if ( charset->max_cid > 0 ) in cff_charset_compute_cids()
808 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids()
809 max_cid = charset->sids[i]; in cff_charset_compute_cids()
812 if ( FT_NEW_ARRAY( charset->cids, (FT_ULong)max_cid + 1 ) ) in cff_charset_compute_cids()
819 charset->cids[charset->sids[j]] = (FT_UShort)j; in cff_charset_compute_cids()
821 charset->max_cid = max_cid; in cff_charset_compute_cids()
822 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids()
830 cff_charset_cid_to_gindex( CFF_Charset charset, in cff_charset_cid_to_gindex() argument
836 if ( cid <= charset->max_cid ) in cff_charset_cid_to_gindex()
[all …]
/external/pdfium/third_party/freetype/src/cff/
Dcffload.c787 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument
797 if ( charset->max_cid > 0 ) in cff_charset_compute_cids()
802 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids()
803 max_cid = charset->sids[i]; in cff_charset_compute_cids()
806 if ( FT_NEW_ARRAY( charset->cids, (FT_ULong)max_cid + 1 ) ) in cff_charset_compute_cids()
813 charset->cids[charset->sids[j]] = (FT_UShort)j; in cff_charset_compute_cids()
815 charset->max_cid = max_cid; in cff_charset_compute_cids()
816 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids()
824 cff_charset_cid_to_gindex( CFF_Charset charset, in cff_charset_cid_to_gindex() argument
830 if ( cid <= charset->max_cid ) in cff_charset_cid_to_gindex()
[all …]
/external/guava/guava/src/com/google/common/io/
DByteSink.java27 import java.nio.charset.Charset;
58 public CharSink asCharSink(Charset charset) { in asCharSink() argument
59 return new AsCharSink(charset); in asCharSink()
140 private final Charset charset; field in ByteSink.AsCharSink
142 private AsCharSink(Charset charset) { in AsCharSink() argument
143 this.charset = checkNotNull(charset); in AsCharSink()
148 return new OutputStreamWriter(ByteSink.this.openStream(), charset); in openStream()
153 return ByteSink.this.toString() + ".asCharSink(" + charset + ")"; in toString()
DFiles.java49 import java.nio.charset.Charset;
81 public static BufferedReader newReader(File file, Charset charset) in newReader() argument
84 checkNotNull(charset); in newReader()
86 new InputStreamReader(new FileInputStream(file), charset)); in newReader()
98 public static BufferedWriter newWriter(File file, Charset charset) in newWriter() argument
101 checkNotNull(charset); in newWriter()
103 new OutputStreamWriter(new FileOutputStream(file), charset)); in newWriter()
215 public static CharSource asCharSource(File file, Charset charset) { in asCharSource() argument
216 return asByteSource(file).asCharSource(charset); in asCharSource()
229 public static CharSink asCharSink(File file, Charset charset, in asCharSink() argument
[all …]
/external/oauth/core/src/main/java/net/oauth/http/
DHttpMessage.java134 String charset = m.group(1); in getCharset() local
135 if (charset.length() >= 2 && charset.charAt(0) == '"' in getCharset()
136 && charset.charAt(charset.length() - 1) == '"') { in getCharset()
137 charset = charset.substring(1, charset.length() - 1); in getCharset()
138 charset = charset.replace("\\\"", "\""); in getCharset()
140 return charset; in getCharset()
/external/curl/tests/data/
Dtest203116 Content-Type: text/html; charset=iso-8859-1
26 Content-Type: text/html; charset=iso-8859-1
36 Content-Type: text/html; charset=iso-8859-1
47 Content-Type: text/html; charset=iso-8859-1
57 Content-Type: text/html; charset=iso-8859-1
67 Content-Type: text/html; charset=iso-8859-1
77 Content-Type: text/html; charset=iso-8859-1
87 Content-Type: text/html; charset=iso-8859-1
97 Content-Type: text/html; charset=iso-8859-1
108 Content-Type: text/html; charset=iso-8859-1
[all …]
Dtest202820 Content-Type: text/html; charset=iso-8859-1
31 Content-Type: text/html; charset=iso-8859-1
43 Content-Type: text/html; charset=iso-8859-1
54 Content-Type: text/html; charset=iso-8859-1
64 Content-Type: text/html; charset=iso-8859-1
74 Content-Type: text/html; charset=iso-8859-1
85 Content-Type: text/html; charset=iso-8859-1
97 Content-Type: text/html; charset=iso-8859-1
108 Content-Type: text/html; charset=iso-8859-1
118 Content-Type: text/html; charset=iso-8859-1
[all …]
/external/chromium-trace/catapult/third_party/Paste/paste/
Dwsgiwrappers.py109 defaults = StackedObjectProxy(default=dict(charset=None, errors='replace',
118 self.charset = defaults.get('charset')
119 if self.charset:
124 self.charset = browser_charset
194 if self.charset:
195 params = UnicodeMultiDict(params, encoding=self.charset,
221 if self.charset:
222 params = UnicodeMultiDict(params, encoding=self.charset,
246 if self.charset:
247 params = UnicodeMultiDict(params, encoding=self.charset,
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/font/
DBitmapCharacterSet.java66 IntMap<BitmapCharacter> charset = entry.getValue(); in write() local
67 writeCharset(oc, style, charset); in write()
72 …protected void writeCharset(OutputCapsule oc, int style, IntMap<BitmapCharacter> charset) throws I… in writeCharset() argument
73 int size = charset.size(); in writeCharset()
77 for (Entry<BitmapCharacter> chr : charset){ in writeCharset()
104 IntMap<BitmapCharacter> charset = new IntMap<BitmapCharacter>(); in readCharset() local
111 charset.put(index, chr); in readCharset()
113 return charset; in readCharset()
195 IntMap<BitmapCharacter> charset = entry.getValue(); in merge() local
197 IntMap<BitmapCharacter> old = this.characters.put(style, charset); in merge()
[all …]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DInputFile.java16 import java.nio.charset.CharacterCodingException;
17 import java.nio.charset.Charset;
18 import java.nio.charset.CharsetDecoder;
19 import java.nio.charset.CharsetEncoder;
20 import java.nio.charset.CodingErrorAction;
35 private Charset charset; field in InputFile
109 charset = Charset.forName(encoding); in setEncoding()
110 decoder = charset.newDecoder(); in setEncoding()
111 encoder = charset.newEncoder(); in setEncoding()
122 return charset.displayName(); in getEncoding()
/external/apache-http/src/org/apache/http/auth/params/
DAuthParams.java75 String charset = (String) params.getParameter in getCredentialCharset() local
79 if (charset == null) { in getCredentialCharset()
80 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; in getCredentialCharset()
82 return charset; in getCredentialCharset()
92 public static void setCredentialCharset(final HttpParams params, final String charset) { in setCredentialCharset() argument
96 params.setParameter(AuthPNames.CREDENTIAL_CHARSET, charset); in setCredentialCharset()
/external/chromium-trace/catapult/third_party/webapp2/tests/
Drequest_test.py49 self.assertEqual(req.charset, 'iso-8859-4')
55 self.assertEqual(req.charset, 'iso-8859-1')
61 self.assertEqual(req.charset.lower(), 'utf-8')
65 charset = match.group(1).lower().strip().strip('"').strip()
67 charset = 'utf-8'
68 self.assertEqual(charset, 'utf-8')
72 charset = match.group(1).lower().strip().strip('"').strip()
74 charset = 'utf-8'
75 self.assertEqual(charset, 'iso-8859-4')
79 charset = match.group(1).lower().strip().strip('"').strip()
[all …]

12345678910>>...35