Home
last modified time | relevance | path

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

12345678910>>...25

/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;
95 public static Funnel<CharSequence> stringFunnel(Charset charset) { in stringFunnel() argument
96 return new StringCharsetFunnel(charset); in stringFunnel()
100 private final Charset charset; field in Funnels.StringCharsetFunnel
102 StringCharsetFunnel(Charset charset) { in StringCharsetFunnel() argument
103 this.charset = Preconditions.checkNotNull(charset); in StringCharsetFunnel()
107 into.putString(from, charset); in funnel()
111 return "Funnels.stringFunnel(" + charset.name() + ")"; in toString()
117 return this.charset.equals(funnel.charset); in equals()
123 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode(); in hashCode()
[all …]
/external/guava/guava/src/com/google/common/io/
DFiles.java50 import java.nio.charset.Charset;
83 public static BufferedReader newReader(File file, Charset charset) in newReader() argument
86 checkNotNull(charset); in newReader()
88 new InputStreamReader(new FileInputStream(file), charset)); in newReader()
100 public static BufferedWriter newWriter(File file, Charset charset) in newWriter() argument
103 checkNotNull(charset); in newWriter()
105 new OutputStreamWriter(new FileOutputStream(file), charset)); in newWriter()
217 public static CharSource asCharSource(File file, Charset charset) { in asCharSource() argument
218 return asByteSource(file).asCharSource(charset); in asCharSource()
231 public static CharSink asCharSink(File file, Charset charset, in asCharSink() argument
[all …]
DByteSink.java27 import java.nio.charset.Charset;
58 public CharSink asCharSink(Charset charset) { in asCharSink() argument
59 return new AsCharSink(charset); in asCharSink()
155 private final Charset charset; field in ByteSink.AsCharSink
157 private AsCharSink(Charset charset) { in AsCharSink() argument
158 this.charset = checkNotNull(charset); in AsCharSink()
163 return new OutputStreamWriter(ByteSink.this.openStream(), charset); in openStream()
168 return ByteSink.this.toString() + ".asCharSink(" + charset + ")"; in toString()
DResources.java32 import java.nio.charset.Charset;
109 URL url, Charset charset) { in newReaderSupplier() argument
110 return CharStreams.asInputSupplier(asCharSource(url, charset)); in newReaderSupplier()
119 public static CharSource asCharSource(URL url, Charset charset) { in asCharSource() argument
120 return asByteSource(url).asCharSource(charset); in asCharSource()
144 public static String toString(URL url, Charset charset) throws IOException { in toString() argument
145 return asCharSource(url, charset).read(); in toString()
159 public static <T> T readLines(URL url, Charset charset, in readLines() argument
161 return CharStreams.readLines(newReaderSupplier(url, charset), callback); in readLines()
179 public static List<String> readLines(URL url, Charset charset) in readLines() argument
[all …]
/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/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/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/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/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/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/chromium-trace/trace-viewer/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/chromium-trace/trace-viewer/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 …]
/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/pdfium/core/src/fxge/ge/
Dfx_ge_linux.cpp32 …virtual void* MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR famil…
34 …void* FindFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR family, FX…
80 void* CFX_LinuxFontInfo::MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPC… in MapFont() argument
95 switch (charset) { in MapFont()
135 if (charset == FXFONT_ANSI_CHARSET && (pitch_family & FXFONT_FF_FIXEDPITCH)) { in MapFont()
138 return FindFont(weight, bItalic, charset, pitch_family, cstr_face, !bCJK); in MapFont()
140 static FX_DWORD _LinuxGetCharset(int charset) in _LinuxGetCharset() argument
142 switch(charset) { in _LinuxGetCharset()
180 void* CFX_LinuxFontInfo::FindFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LP… in FindFont() argument
183 FX_DWORD charset_flag = _LinuxGetCharset(charset); in FindFont()
[all …]
/external/pdfium/fpdfsdk/src/
Dfpdf_sysfontinfo.cpp32 …virtual void* MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR famil… in MapFont() argument
35 return m_pInfo->MapFont(m_pInfo, weight, bItalic, charset, pitch_family, family, &bExact); in MapFont()
65 virtual FX_BOOL GetFontCharset(void* hFont, int& charset) FX_OVERRIDE in GetFontCharset() argument
68 charset = m_pInfo->GetFontCharset(m_pInfo, hFont); in GetFontCharset()
84 DLLEXPORT void STDCALL FPDF_AddInstalledFont(void* mapper, const char* name, int charset) in FPDF_AddInstalledFont() argument
86 ((CFX_FontMapper*)mapper)->AddInstalledFont(name, charset); in FPDF_AddInstalledFont()
118 static void* DefaultMapFont(struct _FPDF_SYSFONTINFO* pThis, int weight, int bItalic, int charset, … in DefaultMapFont() argument
120 …return ((FPDF_SYSFONTINFO_DEFAULT*)pThis)->m_pFontInfo->MapFont(weight, bItalic, charset, pitch_fa… in DefaultMapFont()
145 int charset; in DefaultGetFontCharset() local
146 if (!((FPDF_SYSFONTINFO_DEFAULT*)pThis)->m_pFontInfo->GetFontCharset(hFont, charset)) return 0; in DefaultGetFontCharset()
[all …]
/external/apache-http/src/org/apache/commons/codec/net/
DBCodec.java54 private String charset = StringEncodings.UTF8; field in BCodec
72 public BCodec(final String charset) { in BCodec() argument
74 this.charset = charset; in BCodec()
107 public String encode(final String value, final String charset) throws EncoderException { in encode() argument
112 return encodeText(value, charset); in encode()
210 return this.charset; in getDefaultCharset()
DURLCodec.java60 protected String charset = StringEncodings.UTF8; field in URLCodec
103 public URLCodec(String charset) { in URLCodec() argument
105 this.charset = charset; in URLCodec()
225 public String encode(String pString, String charset) in encode() argument
231 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode()
269 public String decode(String pString, String charset) in decode() argument
275 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode()
357 return this.charset; in getEncoding()
366 return this.charset; in getDefaultCharset()
DQuotedPrintableCodec.java68 private String charset = StringEncodings.UTF8; field in QuotedPrintableCodec
106 public QuotedPrintableCodec(String charset) { in QuotedPrintableCodec() argument
108 this.charset = charset; in QuotedPrintableCodec()
280 …public String decode(String pString, String charset) throws DecoderException, UnsupportedEncodingE… in decode() argument
284 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode()
366 return this.charset; in getDefaultCharset()
386 public String encode(String pString, String charset) throws UnsupportedEncodingException { in encode() argument
390 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode()

12345678910>>...25