Home
last modified time | relevance | path

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

123456

/external/apache-http/src/org/apache/http/params/
DHttpProtocolParams.java70 String charset = (String) params.getParameter in getHttpElementCharset() local
72 if (charset == null) { in getHttpElementCharset()
73 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; in getHttpElementCharset()
75 return charset; in getHttpElementCharset()
82 public static void setHttpElementCharset(final HttpParams params, final String charset) { in setHttpElementCharset() argument
86 params.setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET, charset); in setHttpElementCharset()
98 String charset = (String) params.getParameter in getContentCharset() local
100 if (charset == null) { in getContentCharset()
101 charset = HTTP.DEFAULT_CONTENT_CHARSET; in getContentCharset()
103 return charset; in getContentCharset()
[all …]
/external/freetype/src/cff/
Dcffload.c733 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument
742 if ( charset->max_cid > 0 ) in cff_charset_compute_cids()
746 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids()
747 max_cid = charset->sids[i]; in cff_charset_compute_cids()
750 if ( FT_NEW_ARRAY( charset->cids, max_cid ) ) in cff_charset_compute_cids()
754 charset->cids[charset->sids[i]] = (FT_UShort)i; in cff_charset_compute_cids()
756 charset->max_cid = max_cid; in cff_charset_compute_cids()
757 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids()
765 cff_charset_cid_to_gindex( CFF_Charset charset, in cff_charset_cid_to_gindex() argument
771 if ( cid < charset->max_cid ) in cff_charset_cid_to_gindex()
[all …]
Dcffcmap.c129 CFF_Charset charset = &cff->charset; in cff_sid_to_glyph_name() local
131 FT_UInt sid = charset->sids[idx]; in cff_sid_to_glyph_name()
155 CFF_Charset charset = &cff->charset; in cff_cmap_unicode_init() local
160 if ( !charset->sids ) in cff_cmap_unicode_init()
/external/apache-http/src/org/apache/http/util/
DEncodingUtils.java62 String charset in getString() argument
69 if (charset == null || charset.length() == 0) { in getString()
74 return new String(data, offset, length, charset); in getString()
90 public static String getString(final byte[] data, final String charset) { in getString() argument
94 return getString(data, 0, data.length, charset); in getString()
105 public static byte[] getBytes(final String data, final String charset) { in getBytes() argument
111 if (charset == null || charset.length() == 0) { in getBytes()
116 return data.getBytes(charset); in getBytes()
DEntityUtils.java94 String charset = null; in getContentCharSet() local
100 charset = param.getValue(); in getContentCharSet()
104 return charset; in getContentCharSet()
123 String charset = getContentCharSet(entity); in toString() local
124 if (charset == null) { in toString()
125 charset = defaultCharset; in toString()
127 if (charset == null) { in toString()
128 charset = HTTP.DEFAULT_CONTENT_CHARSET; in toString()
130 Reader reader = new InputStreamReader(instream, charset); in toString()
/external/apache-http/src/org/apache/http/auth/params/
DAuthParams.java70 String charset = (String) params.getParameter in getCredentialCharset() local
74 if (charset == null) { in getCredentialCharset()
75 charset = HTTP.DEFAULT_PROTOCOL_CHARSET; in getCredentialCharset()
77 return charset; in getCredentialCharset()
87 public static void setCredentialCharset(final HttpParams params, final String charset) { in setCredentialCharset() argument
91 params.setParameter(AuthPNames.CREDENTIAL_CHARSET, charset); in setCredentialCharset()
/external/apache-http/src/org/apache/commons/codec/net/
DURLCodec.java55 protected String charset = StringEncodings.UTF8; field in URLCodec
98 public URLCodec(String charset) { in URLCodec() argument
100 this.charset = charset; in URLCodec()
220 public String encode(String pString, String charset) in encode() argument
226 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode()
264 public String decode(String pString, String charset) in decode() argument
270 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode()
352 return this.charset; in getEncoding()
361 return this.charset; in getDefaultCharset()
DBCodec.java49 private String charset = StringEncodings.UTF8; field in BCodec
67 public BCodec(final String charset) { in BCodec() argument
69 this.charset = charset; in BCodec()
102 public String encode(final String value, final String charset) throws EncoderException { in encode() argument
107 return encodeText(value, charset); in encode()
205 return this.charset; in getDefaultCharset()
DQuotedPrintableCodec.java63 private String charset = StringEncodings.UTF8; field in QuotedPrintableCodec
101 public QuotedPrintableCodec(String charset) { in QuotedPrintableCodec() argument
103 this.charset = charset; in QuotedPrintableCodec()
275 …public String decode(String pString, String charset) throws DecoderException, UnsupportedEncodingE… in decode() argument
279 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset); in decode()
361 return this.charset; in getDefaultCharset()
381 public String encode(String pString, String charset) throws UnsupportedEncodingException { in encode() argument
385 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode()
DRFC1522Codec.java65 protected String encodeText(final String text, final String charset) in encodeText() argument
73 buffer.append(charset); in encodeText()
77 byte [] rawdata = doEncoding(text.getBytes(charset)); in encodeText()
110 String charset = text.substring(from, to); in decodeText() local
111 if (charset.equals("")) { in decodeText()
128 return new String(data, charset); in decodeText()
DQCodec.java51 private String charset = StringEncodings.UTF8; field in QCodec
123 public QCodec(final String charset) { in QCodec() argument
125 this.charset = charset; in QCodec()
185 public String encode(final String pString, final String charset) throws EncoderException { in encode() argument
190 return encodeText(pString, charset); in encode()
288 return this.charset; in getDefaultCharset()
/external/webkit/WebCore/css/
DCSSStyleSheet.h51 …static PassRefPtr<CSSStyleSheet> create(Node* ownerNode, const String& href, const String& charset) in create() argument
53 return adoptRef(new CSSStyleSheet(ownerNode, href, charset)); in create()
55 …tic PassRefPtr<CSSStyleSheet> create(CSSRule* ownerRule, const String& href, const String& charset) in create() argument
57 return adoptRef(new CSSStyleSheet(ownerRule, href, charset)); in create()
86 const String& charset() const { return m_charset; } in charset() function
97 CSSStyleSheet(Node* ownerNode, const String& href, const String& charset);
98 CSSStyleSheet(CSSStyleSheet* parentSheet, const String& href, const String& charset);
99 CSSStyleSheet(CSSRule* ownerRule, const String& href, const String& charset);
DCSSStyleSheet.cpp36 CSSStyleSheet::CSSStyleSheet(CSSStyleSheet* parentSheet, const String& href, const String& charset) in CSSStyleSheet() argument
40 , m_charset(charset) in CSSStyleSheet()
46 CSSStyleSheet::CSSStyleSheet(Node *parentNode, const String& href, const String& charset) in CSSStyleSheet() argument
50 , m_charset(charset) in CSSStyleSheet()
56 CSSStyleSheet::CSSStyleSheet(CSSRule *ownerRule, const String& href, const String& charset) in CSSStyleSheet() argument
59 , m_charset(charset) in CSSStyleSheet()
DCSSImportRule.cpp55 void CSSImportRule::setCSSStyleSheet(const String& url, const String& charset, const CachedCSSStyle… in setCSSStyleSheet() argument
59 m_styleSheet = CSSStyleSheet::create(this, url, charset); in setCSSStyleSheet()
99 m_cachedSheet = docLoader->requestCSSStyleSheet(absHref, parentSheet->charset()); in insertedIntoParent()
/external/expat/xmlwf/
Dxmlmime.c88 getXMLCharset(const char *buf, char *charset) in getXMLCharset() argument
92 charset[0] = '\0'; in getXMLCharset()
96 strcpy(charset, "us-ascii"); in getXMLCharset()
104 if (!matchkey(p, next, "xml") && charset[0] == '\0') in getXMLCharset()
116 char *s = charset; in getXMLCharset()
121 if (s == charset + CHARSET_MAX - 1) { in getXMLCharset()
122 charset[0] = '\0'; in getXMLCharset()
Dct.c84 getXMLCharset(const char *buf, char *charset) in getXMLCharset() argument
88 charset[0] = '\0'; in getXMLCharset()
92 strcpy(charset, "us-ascii"); in getXMLCharset()
110 char *s = charset; in getXMLCharset()
115 if (s == charset + CHARSET_MAX - 1) { in getXMLCharset()
116 charset[0] = '\0'; in getXMLCharset()
/external/icu4c/test/intltest/
Dconvtest.cpp83 char charset[100], cbopt[4]; in TestToUnicode() local
111 s.extract(0, 0x7fffffff, charset, sizeof(charset), ""); in TestToUnicode()
112 cc.charset=charset; in TestToUnicode()
179 logln("TestToUnicode[%d] %s", i, charset); in TestToUnicode()
195 char charset[100], cbopt[4]; in TestFromUnicode() local
224 s.extract(0, 0x7fffffff, charset, sizeof(charset), ""); in TestFromUnicode()
225 cc.charset=charset; in TestFromUnicode()
332 logln("TestFromUnicode[%d] %s", i, charset); in TestFromUnicode()
349 char charset[100]; in TestGetUnicodeSet() local
378 s.extract(0, 0x7fffffff, charset, sizeof(charset), ""); in TestGetUnicodeSet()
[all …]
/external/apache-http/src/org/apache/http/entity/
DStringEntity.java55 public StringEntity(final String s, String charset) in StringEntity() argument
61 if (charset == null) { in StringEntity()
62 charset = HTTP.DEFAULT_CONTENT_CHARSET; in StringEntity()
64 this.content = s.getBytes(charset); in StringEntity()
65 setContentType(HTTP.PLAIN_TEXT_TYPE + HTTP.CHARSET_PARAM + charset); in StringEntity()
/external/webkit/WebCore/loader/
DDocLoader.cpp136 CachedCSSStyleSheet* DocLoader::requestCSSStyleSheet(const String& url, const String& charset) in requestCSSStyleSheet() argument
138 …rn static_cast<CachedCSSStyleSheet*>(requestResource(CachedResource::CSSStyleSheet, url, charset)); in requestCSSStyleSheet()
141 CachedCSSStyleSheet* DocLoader::requestUserCSSStyleSheet(const String& url, const String& charset) in requestUserCSSStyleSheet() argument
143 return cache()->requestUserCSSStyleSheet(this, url, charset); in requestUserCSSStyleSheet()
146 CachedScript* DocLoader::requestScript(const String& url, const String& charset) in requestScript() argument
148 return static_cast<CachedScript*>(requestResource(CachedResource::Script, url, charset)); in requestScript()
198 …equestResource(CachedResource::Type type, const String& url, const String& charset, bool isPreload) in requestResource() argument
215 CachedResource* resource = cache()->requestResource(this, type, fullURL, charset, isPreload); in requestResource()
368 void DocLoader::preload(CachedResource::Type type, const String& url, const String& charset, bool r… in preload() argument
374 PendingPreload pendingPreload = { type, url, charset }; in preload()
[all …]
DDocLoader.h59 CachedCSSStyleSheet* requestCSSStyleSheet(const String& url, const String& charset);
60 CachedCSSStyleSheet* requestUserCSSStyleSheet(const String& url, const String& charset);
61 CachedScript* requestScript(const String& url, const String& charset);
109 …void preload(CachedResource::Type, const String& url, const String& charset, bool referencedFromBo…
114 …CachedResource* requestResource(CachedResource::Type, const String& url, const String& charset, bo…
115 void requestPreload(CachedResource::Type, const String& url, const String& charset);
/external/apache-http/src/org/apache/http/impl/io/
DAbstractSessionOutputBuffer.java61 private String charset = HTTP.US_ASCII; field in AbstractSessionOutputBuffer
78 this.charset = HttpProtocolParams.getHttpElementCharset(params); in init()
79 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) in init()
80 || this.charset.equalsIgnoreCase(HTTP.ASCII); in init()
142 write(s.getBytes(this.charset)); in writeLine()
169 byte[] tmp = s.toString().getBytes(this.charset); in writeLine()
DAbstractSessionInputBuffer.java62 private String charset = HTTP.US_ASCII; field in AbstractSessionInputBuffer
83 this.charset = HttpProtocolParams.getHttpElementCharset(params); in init()
84 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) in init()
85 || this.charset.equalsIgnoreCase(HTTP.ASCII); in init()
230 String s = new String(this.linebuffer.buffer(), 0, l, this.charset); in lineFromLineBuffer()
251 String s = new String(this.buffer, off, len, this.charset); in lineFromReadBuffer()
/external/apache-http/src/org/apache/http/impl/auth/
DBasicScheme.java141 String charset = AuthParams.getCredentialCharset(request.getParams()); in authenticate() local
142 return authenticate(credentials, charset, isProxy()); in authenticate()
156 final String charset, in authenticate() argument
161 if (charset == null) { in authenticate()
171 EncodingUtils.getBytes(tmp.toString(), charset)); in authenticate()
DDigestScheme.java233 String charset = getParameter("charset"); in authenticate() local
234 if (charset == null) { in authenticate()
235 charset = AuthParams.getCredentialCharset(request.getParams()); in authenticate()
236 getParameters().put("charset", charset); in authenticate()
281 String charset = getParameter("charset"); in createDigest() local
282 if (charset == null) { in createDigest()
283 charset = "ISO-8859-1"; in createDigest()
314 String tmp2=encode(md5Helper.digest(EncodingUtils.getBytes(a1, charset))); in createDigest()
325 String md5a1 = encode(md5Helper.digest(EncodingUtils.getBytes(a1, charset))); in createDigest()
/external/webkit/WebCore/dom/
DProcessingInstruction.cpp160 String charset = attrs.get("charset"); in checkStyleSheet() local
161 if (charset.isEmpty()) in checkStyleSheet()
162 charset = document()->frame()->loader()->encoding(); in checkStyleSheet()
164 …t = document()->docLoader()->requestCSSStyleSheet(document()->completeURL(href).string(), charset); in checkStyleSheet()
190 void ProcessingInstruction::setCSSStyleSheet(const String& url, const String& charset, const Cached… in setCSSStyleSheet() argument
195 RefPtr<CSSStyleSheet> newSheet = CSSStyleSheet::create(this, url, charset); in setCSSStyleSheet()

123456