/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | MediaType.java | 18 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 64 if (charset != null) throw new IllegalArgumentException("Multiple charsets: " + string); in parse() 65 charset = parameter.group(2) != null in parse() 70 return new MediaType(string, type, subtype, charset); in parse() 93 public Charset charset() { in charset() method in MediaType 94 return charset != null ? Charset.forName(charset) : null; in charset() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | MediaTypeTest.java | 20 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() 98 assertEquals("UTF-8", mediaType.charset().name()); in testCharsetIsOneOfManyParameters() 104 assertEquals("UTF-8", mediaType.charset().name()); in testCharsetAndQuoting() 118 mediaType.charset(); in testIllegalCharsetName() 127 mediaType.charset(); in testUnsupportedCharset() 135 assertEquals("UTF-8", noCharset.charset(Util.UTF_8).name()); in testDefaultCharset() 136 assertEquals("US-ASCII", noCharset.charset(Charset.forName("US-ASCII")).name()); in testDefaultCharset() [all …]
|
/external/apache-http/src/org/apache/http/params/ |
D | HttpProtocolParams.java | 70 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/chromium_org/net/base/ |
D | net_string_util_icu_alternatives_android.cc | 21 const char* charset) { in ConvertToJstring() argument 26 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset)); in ConvertToJstring() 37 const std::string& text, const char* charset) { in ConvertToNormalizedJstring() argument 42 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset)); in ConvertToNormalizedJstring() 52 const std::string& text, const char* charset) { in ConvertToJstringWithSubstitutions() argument 57 base::android::ConvertUTF8ToJavaString(env, base::StringPiece(charset)); in ConvertToJstringWithSubstitutions() 68 bool ConvertToUtf8(const std::string& text, const char* charset, in ConvertToUtf8() argument 71 ScopedJavaLocalRef<jstring> java_result = ConvertToJstring(text, charset); in ConvertToUtf8() 78 bool ConvertToUtf8AndNormalize(const std::string& text, const char* charset, in ConvertToUtf8AndNormalize() argument 82 text, charset); in ConvertToUtf8AndNormalize() [all …]
|
D | net_string_util_icu.cc | 16 bool ConvertToUtf8(const std::string& text, const char* charset, in ConvertToUtf8() argument 21 UConverter* converter(ucnv_open(charset, &err)); in ConvertToUtf8() 43 bool ConvertToUtf8AndNormalize(const std::string& text, const char* charset, in ConvertToUtf8AndNormalize() argument 45 return base::ConvertToUtf8AndNormalize(text, charset, output); in ConvertToUtf8AndNormalize() 48 bool ConvertToUTF16(const std::string& text, const char* charset, in ConvertToUTF16() argument 50 return base::CodepageToUTF16(text, charset, in ConvertToUTF16() 55 const char* charset, in ConvertToUTF16WithSubstitutions() argument 57 return base::CodepageToUTF16(text, charset, in ConvertToUTF16WithSubstitutions()
|
D | data_url_unittest.cc | 16 const char* charset; member 177 std::string charset; in TEST() local 180 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); in TEST() 184 EXPECT_EQ(tests[i].charset, charset); in TEST()
|
/external/guava/guava/src/com/google/common/io/ |
D | Files.java | 42 import java.nio.charset.Charset; 72 public static BufferedReader newReader(File file, Charset charset) in newReader() argument 75 new InputStreamReader(new FileInputStream(file), charset)); in newReader() 86 public static BufferedWriter newWriter(File file, Charset charset) in newWriter() argument 89 new OutputStreamWriter(new FileOutputStream(file), charset)); in newWriter() 151 Charset charset) { 152 return CharStreams.newReaderSupplier(newInputStreamSupplier(file), charset); 164 Charset charset) { 165 return newWriterSupplier(file, charset, false); 179 Charset charset, boolean append) { [all …]
|
D | Resources.java | 29 import java.nio.charset.Charset; 74 URL url, Charset charset) { 75 return CharStreams.newReaderSupplier(newInputStreamSupplier(url), charset); 98 public static String toString(URL url, Charset charset) throws IOException { 99 return CharStreams.toString(newReaderSupplier(url, charset)); 112 public static <T> T readLines(URL url, Charset charset, 114 return CharStreams.readLines(newReaderSupplier(url, charset), callback); 127 public static List<String> readLines(URL url, Charset charset) 129 return CharStreams.readLines(newReaderSupplier(url, charset));
|
/external/apache-http/src/org/apache/http/util/ |
D | EncodingUtils.java | 62 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()
|
D | EntityUtils.java | 94 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/chromium_org/third_party/freetype/src/cff/ |
D | cffload.c | 780 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument 790 if ( charset->max_cid > 0 ) in cff_charset_compute_cids() 795 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids() 796 max_cid = charset->sids[i]; in cff_charset_compute_cids() 799 if ( FT_NEW_ARRAY( charset->cids, (FT_ULong)max_cid + 1 ) ) in cff_charset_compute_cids() 806 charset->cids[charset->sids[j]] = (FT_UShort)j; in cff_charset_compute_cids() 808 charset->max_cid = max_cid; in cff_charset_compute_cids() 809 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids() 817 cff_charset_cid_to_gindex( CFF_Charset charset, in cff_charset_cid_to_gindex() argument 823 if ( cid <= charset->max_cid ) in cff_charset_cid_to_gindex() [all …]
|
/external/freetype/src/cff/ |
D | cffload.c | 787 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/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/ |
D | cffload.c | 780 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument 790 if ( charset->max_cid > 0 ) in cff_charset_compute_cids() 795 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids() 796 max_cid = charset->sids[i]; in cff_charset_compute_cids() 799 if ( FT_NEW_ARRAY( charset->cids, (FT_ULong)max_cid + 1 ) ) in cff_charset_compute_cids() 806 charset->cids[charset->sids[j]] = (FT_UShort)j; in cff_charset_compute_cids() 808 charset->max_cid = max_cid; in cff_charset_compute_cids() 809 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids() 817 cff_charset_cid_to_gindex( CFF_Charset charset, in cff_charset_cid_to_gindex() argument 823 if ( cid <= charset->max_cid ) in cff_charset_cid_to_gindex() [all …]
|
/external/oauth/core/src/main/java/net/oauth/http/ |
D | HttpMessage.java | 134 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/apache-http/src/org/apache/http/auth/params/ |
D | AuthParams.java | 70 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/chromium_org/third_party/WebKit/Source/core/dom/ |
D | ProcessingInstruction.cpp | 97 String charset; in didAttributeChanged() local 98 if (!checkStyleSheet(href, charset)) in didAttributeChanged() 100 process(href, charset); in didAttributeChanged() 103 bool ProcessingInstruction::checkStyleSheet(String& href, String& charset) in checkStyleSheet() argument 126 charset = attrs.get("charset"); in checkStyleSheet() 135 void ProcessingInstruction::process(const String& href, const String& charset) in process() argument 159 request.setCharset(charset.isEmpty() ? document().charset() : charset); in process() 188 …:setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSh… in setCSSStyleSheet() argument 196 CSSParserContext parserContext(document(), 0, baseURL, charset); in setCSSStyleSheet() 257 String charset; in insertedInto() local [all …]
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
D | NetStringUtil.java | 11 import java.nio.charset.Charset; 12 import java.nio.charset.CharsetDecoder; 13 import java.nio.charset.CodingErrorAction; 34 Charset charset = Charset.forName(charset_name); in convertToUnicode() local 35 CharsetDecoder decoder = charset.newDecoder(); in convertToUnicode() 73 Charset charset = Charset.forName(charset_name); in convertToUnicodeWithSubstitutions() local 80 CharsetDecoder decoder = charset.newDecoder(); in convertToUnicodeWithSubstitutions()
|
/external/pdfium/fpdfsdk/src/ |
D | fpdf_sysfontinfo.cpp | 31 …virtual void* MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR famil… in MapFont() argument 34 return m_pInfo->MapFont(m_pInfo, weight, bItalic, charset, pitch_family, family, &bExact); in MapFont() 64 virtual FX_BOOL GetFontCharset(void* hFont, int& charset) in GetFontCharset() argument 67 charset = m_pInfo->GetFontCharset(m_pInfo, hFont); in GetFontCharset() 80 DLLEXPORT void STDCALL FPDF_AddInstalledFont(void* mapper, const char* name, int charset) in FPDF_AddInstalledFont() argument 82 ((CFX_FontMapper*)mapper)->AddInstalledFont(name, charset); in FPDF_AddInstalledFont() 109 static void* DefaultMapFont(struct _FPDF_SYSFONTINFO* pThis, int weight, int bItalic, int charset, … in DefaultMapFont() argument 111 …return ((FPDF_SYSFONTINFO_DEFAULT*)pThis)->m_pFontInfo->MapFont(weight, bItalic, charset, pitch_fa… in DefaultMapFont() 136 int charset; in DefaultGetFontCharset() local 137 if (!((FPDF_SYSFONTINFO_DEFAULT*)pThis)->m_pFontInfo->GetFontCharset(hFont, charset)) return 0; in DefaultGetFontCharset() [all …]
|
/external/apache-http/src/org/apache/commons/codec/net/ |
D | BCodec.java | 49 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()
|
D | URLCodec.java | 55 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()
|
D | QuotedPrintableCodec.java | 63 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()
|
/external/chromium_org/chrome/utility/importer/ |
D | bookmark_html_reader.cc | 107 std::string charset; in ImportBookmarksFile() local 126 if (internal::ParseCharsetFromLine(line, &charset)) in ImportBookmarksFile() 131 charset, in ImportBookmarksFile() 148 internal::ParseBookmarkFromLine(line, charset, &title, in ImportBookmarksFile() 151 internal::ParseMinimumBookmarkFromLine(line, charset, &title, &url); in ImportBookmarksFile() 243 bool ParseCharsetFromLine(const std::string& line, std::string* charset) { in ParseCharsetFromLine() argument 253 *charset = line.substr(begin, end - begin); in ParseCharsetFromLine() 260 const std::string& charset, in ParseFolderNameFromLine() argument 278 base::CodepageToUTF16(line.substr(tag_end, end - tag_end), charset.c_str(), in ParseFolderNameFromLine() 305 const std::string& charset, in ParseBookmarkFromLine() argument [all …]
|
/external/pdfium/core/src/fxge/ge/ |
D | fx_ge_linux.cpp | 57 …virtual void* MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR famil… 59 …void* FindFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR family, FX… 105 void* CFX_LinuxFontInfo::MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPC… in MapFont() argument 120 switch (charset) { in MapFont() 160 if (charset == FXFONT_ANSI_CHARSET && (pitch_family & FXFONT_FF_FIXEDPITCH)) { in MapFont() 163 return FindFont(weight, bItalic, charset, pitch_family, cstr_face, !bCJK); in MapFont() 165 static FX_DWORD _LinuxGetCharset(int charset) in _LinuxGetCharset() argument 167 switch(charset) { in _LinuxGetCharset() 205 void* CFX_LinuxFontInfo::FindFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LP… in FindFont() argument 208 FX_DWORD charset_flag = _LinuxGetCharset(charset); in FindFont() [all …]
|
/external/pdfium/core/src/fxge/apple/ |
D | fx_mac_imp.cpp | 32 …virtual void* MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCSTR famil… 48 void* CFX_MacFontInfo::MapFont(int weight, FX_BOOL bItalic, int charset, int pitch_family, FX_LPCST… in MapFont() argument 65 if (charset == FXFONT_ANSI_CHARSET && (pitch_family & FXFONT_FF_FIXEDPITCH)) { in MapFont() 68 if (charset == FXFONT_ANSI_CHARSET || charset == FXFONT_SYMBOL_CHARSET) { in MapFont() 71 switch (charset) { in MapFont()
|
/external/apache-http/src/org/apache/http/entity/ |
D | StringEntity.java | 55 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()
|