/third_party/curl/lib/ |
H A D | curl_fnmatch.c | 74 static int parsekeyword(unsigned char **pattern, unsigned char *charset) in parsekeyword() argument 106 charset[CURLFNM_DIGIT] = 1; in parsekeyword() 108 charset[CURLFNM_ALNUM] = 1; in parsekeyword() 110 charset[CURLFNM_ALPHA] = 1; in parsekeyword() 112 charset[CURLFNM_XDIGIT] = 1; in parsekeyword() 114 charset[CURLFNM_PRINT] = 1; in parsekeyword() 116 charset[CURLFNM_GRAPH] = 1; in parsekeyword() 118 charset[CURLFNM_SPACE] = 1; in parsekeyword() 120 charset[CURLFNM_BLANK] = 1; in parsekeyword() 122 charset[CURLFNM_UPPE in parsekeyword() 143 setcharorrange(unsigned char **pp, unsigned char *charset) setcharorrange() argument 165 setcharset(unsigned char **p, unsigned char *charset) setcharset() argument 262 unsigned char charset[CURLFNM_CHSET_SIZE] = { 0 }; loop() local [all...] |
/third_party/python/Lib/email/ |
H A D | header.py | 20 from email import charset as _charset 34 # Match encoded-word strings in the form =?charset?q?Hello_World?= 37 (?P<charset>[^?]*?) # non-greedy up to the next ? is the charset 64 """Decode a message header value without converting charset. 66 Returns a list of (string, charset) pairs containing each of the decoded 79 return [(_charset._encode(string, str(charset)), str(charset)) 80 for string, charset in header._chunks] 81 # If no encoding, just return the header with no charset [all...] |
H A D | _encoded_words.py | 10 # =?charset[*lang]?cte?encoded_string?= 12 # for more information about charset see the charset module. Here it is one 13 # of the preferred MIME charset names (hopefully; you never know when parsing). 26 # problems encountered during conversion. 'charset' and 'lang' are the 153 """Decode encoded word and return (string, charset, lang, defects) tuple. 157 =?charset*lang?cte?encoded_string?= 164 then from the resulting bytes into unicode using the specified charset. If 169 The specified charset and language are returned. The default for language, 173 _, charset, ct [all...] |
H A D | message.py | 18 from email import charset as _charset 43 three tuple (charset, language, value), it will be encoded according 45 be encoded according to RFC2231 rules, using the utf-8 charset and 50 # are (charset, language, value). charset is a string, not a Charset 297 payload = bpayload.decode(self.get_param('charset', 'ascii'), 'replace') 330 def set_payload(self, payload, charset=None): 333 Optional charset sets the message's default character set. See 337 if charset is None: 340 if not isinstance(charset, Charse [all...] |
H A D | utils.py | 40 from email.charset import Charset 67 # were invalid in the charset the source was supposed to be in. This 76 def formataddr(pair, charset='utf-8'): 84 The optional charset is the character set that is used to encode 96 if isinstance(charset, str): 97 charset = Charset(charset) 98 encoded_name = charset.header_encode(name) 242 def encode_rfc2231(s, charset=None, language=None): 245 If neither charset no [all...] |
H A D | charset.py | 28 # In "=?charset?q?hello_world?=", the =?, ?q?, and ?= add up to 7 112 def add_charset(charset, header_enc=None, body_enc=None, output_charset=None): 115 charset is the input character set, and must be the canonical name of a 122 message bodies in the input charset are to be encoded. Default is no 126 in. Conversions will proceed from input charset, to Unicode, to the 127 output charset when the method Charset.convert() is called. The default 131 the module's charset-to-codec mapping; use add_codec(charset, codecname) 137 CHARSETS[charset] = (header_enc, body_enc, output_charset) 149 def add_codec(charset, codecnam [all...] |
H A D | contentmanager.py | 2 import email.charset namespace 66 charset = msg.get_param('charset', 'ASCII') 67 return content.decode(charset, errors=errors) 144 def _encode_text(string, charset, cte, policy): 145 lines = string.encode(charset).splitlines() 183 def set_text_content(msg, string, subtype="plain", charset='utf-8', cte=None, 187 cte, payload = _encode_text(string, charset, cte, msg.policy) 189 msg.set_param('charset', 190 email.charset [all...] |
/third_party/skia/third_party/externals/sfntly/java/lib/ |
H A D | icu4j-charset-4_8_1_1.jar | ... .charset.Charset88591, com.ibm.icu.charset.CharsetICU)
com.ibm.icu.charset. ... |
/third_party/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
H A D | TestConversion.java | 10 package com.ibm.icu.dev.test.charset; 14 import java.nio.charset.Charset; 15 import java.nio.charset.CharsetDecoder; 16 import java.nio.charset.CharsetEncoder; 17 import java.nio.charset.CoderResult; 18 import java.nio.charset.CodingErrorAction; 25 import com.ibm.icu.charset.CharsetCallback; 26 import com.ibm.icu.charset.CharsetDecoderICU; 27 import com.ibm.icu.charset.CharsetEncoderICU; 28 import com.ibm.icu.charset 60 String charset; // charset global() field in TestConversion.ConversionCase [all...] |
/third_party/node/deps/npm/node_modules/negotiator/lib/ |
H A D | charset.js | 35 var charset = parseCharset(accepts[i].trim(), i); 37 if (charset) { 38 accepts[j++] = charset; 49 * Parse a charset from the Accept-Charset header. 57 var charset = match[1]; 71 charset: charset, 78 * Get the priority of a charset. 82 function getCharsetPriority(charset, accepted, index) { 86 var spec = specify(charset, accepte [all...] |
/third_party/node/deps/undici/src/node_modules/@fastify/busboy/lib/types/ |
H A D | urlencoded.js | 7 const RE_CHARSET = /^charset$/i 19 let charset 23 charset = parsedConType[i][1].toLowerCase() 28 if (charset === undefined) { charset = cfg.defCharset || 'utf8' } 31 this.charset = charset 100 this.boy.emit('field', decodeText(key, 'binary', this.charset), 138 this.boy.emit('field', decodeText(this._key, 'binary', this.charset), 139 decodeText(this._val, 'binary', this.charset), [all...] |
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/ |
H A D | InputFile.java | 18 import java.nio.charset.CharacterCodingException; 19 import java.nio.charset.Charset; 20 import java.nio.charset.CharsetDecoder; 21 import java.nio.charset.CharsetEncoder; 22 import java.nio.charset.CodingErrorAction; 37 private Charset charset; field in InputFile 111 charset = Charset.forName(encoding); in setEncoding() 112 decoder = charset.newDecoder(); in setEncoding() 113 encoder = charset.newEncoder(); in setEncoding() 124 return charset in getEncoding() [all...] |
/third_party/node/deps/undici/src/node_modules/@fastify/busboy/lib/utils/ |
H A D | parseParams.js | 120 let charset = '' 148 charset = tmp.substring(1) 163 if (charset) { 167 charset) 169 charset = '' 181 if (charset && tmp.length) { 184 charset)
|
H A D | decodeText.js | 10 function getDecoder (charset) { 13 switch (charset) { 39 charset = charset.toLowerCase() 42 return decoders.other.bind(charset)
|
/third_party/skia/third_party/externals/expat/expat/xmlwf/ |
H A D | xmlmime.c | 120 getXMLCharset(const char *buf, char *charset) { in getXMLCharset() argument 123 charset[0] = '\0'; in getXMLCharset() 127 strcpy(charset, "us-ascii"); in getXMLCharset() 136 if (! matchkey(p, next, "xml") && charset[0] == '\0') in getXMLCharset() 144 if (matchkey(p, next, "charset")) { in getXMLCharset() 149 char *s = charset; in getXMLCharset() 154 if (s == charset + CHARSET_MAX - 1) { in getXMLCharset() 155 charset[0] = '\0'; in getXMLCharset() 189 printf("charset=\"%s\"\n", buf); in main()
|
H A D | ct.c | 115 getXMLCharset(const char *buf, char *charset) { in getXMLCharset() argument 118 charset[0] = '\0'; in getXMLCharset() 122 strcpy(charset, "us-ascii"); in getXMLCharset() 135 if (matchkey(p, next, "charset")) { in getXMLCharset() 140 char *s = charset; in getXMLCharset() 145 if (s == charset + CHARSET_MAX - 1) { in getXMLCharset() 146 charset[0] = '\0'; in getXMLCharset() 172 printf("charset = \"%s\"\n", buf); in main()
|
/third_party/node/test/js-native-api/test_string/ |
H A D | test_null.c | 6 #define DECLARE_TEST(charset, str_arg) \ 8 test_create_##charset(napi_env env, napi_callback_info info) { \ 17 napi_create_string_##charset(NULL, \ 22 napi_create_string_##charset(env, NULL, NAPI_AUTO_LENGTH, &result); \ 25 napi_create_string_##charset(env, NULL, 0, &result); \ 28 napi_create_string_##charset(env, (str_arg), NAPI_AUTO_LENGTH, NULL); \
|
/third_party/icu/icu4c/source/common/ |
H A D | uinvchar.h | 68 # error Unknown charset family! 91 # error Unknown charset family! in uprv_upperOrdinal() 109 # error Unknown charset family! in uprv_lowerOrdinal() 137 # error Unknown charset family! 157 # error Unknown charset family! 177 # error Unknown charset family! 197 # error Unknown charset family!
|
/third_party/node/deps/icu-small/source/common/ |
H A D | uinvchar.h | 68 # error Unknown charset family! 91 # error Unknown charset family! in uprv_upperOrdinal() 109 # error Unknown charset family! in uprv_lowerOrdinal() 137 # error Unknown charset family! 157 # error Unknown charset family! 177 # error Unknown charset family! 197 # error Unknown charset family!
|
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | uinvchar.h | 68 # error Unknown charset family! 91 # error Unknown charset family! in uprv_upperOrdinal() 109 # error Unknown charset family! in uprv_lowerOrdinal() 137 # error Unknown charset family! 157 # error Unknown charset family! 177 # error Unknown charset family! 197 # error Unknown charset family!
|
/third_party/skia/third_party/externals/freetype/src/cff/ |
H A D | cffload.c | 831 cff_charset_compute_cids( CFF_Charset charset, in cff_charset_compute_cids() argument 840 if ( charset->max_cid > 0 ) in cff_charset_compute_cids() 845 if ( charset->sids[i] > max_cid ) in cff_charset_compute_cids() 846 max_cid = charset->sids[i]; in cff_charset_compute_cids() 849 if ( FT_NEW_ARRAY( charset->cids, (FT_ULong)max_cid + 1 ) ) in cff_charset_compute_cids() 857 charset->cids[charset->sids[i]] = (FT_UShort)i; in cff_charset_compute_cids() 859 charset->max_cid = max_cid; in cff_charset_compute_cids() 860 charset->num_glyphs = num_glyphs; in cff_charset_compute_cids() 868 cff_charset_cid_to_gindex( CFF_Charset charset, in FT_LOCAL_DEF() 882 cff_charset_free_cids( CFF_Charset charset, FT_Memory memory ) cff_charset_free_cids() argument 891 cff_charset_done( CFF_Charset charset, FT_Stream stream ) cff_charset_done() argument 906 cff_charset_load( CFF_Charset charset, FT_UInt num_glyphs, FT_Stream stream, FT_ULong base_offset, FT_ULong offset, FT_Bool invert ) cff_charset_load() argument 1632 cff_encoding_load( CFF_Encoding encoding, CFF_Charset charset, FT_UInt num_glyphs, FT_Stream stream, FT_ULong base_offset, FT_ULong offset ) cff_encoding_load() argument [all...] |
H A D | cffcmap.c | 137 CFF_Charset charset = &cff->charset; in cff_sid_to_glyph_name() local 138 FT_UInt sid = charset->sids[idx]; in cff_sid_to_glyph_name() 152 CFF_Charset charset = &cff->charset; in FT_CALLBACK_DEF() local 160 if ( !charset->sids ) in FT_CALLBACK_DEF()
|
/third_party/python/Lib/re/ |
H A D | _compiler.py | 86 charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 96 _compile_charset(charset, flags, code) 214 def _compile_charset(charset, flags, code): 215 # compile charset subprogram 217 for op, av in charset: 241 def _optimize_charset(charset, iscased=None, fixup=None, fixes=None): 247 for op, av in charset: 330 if hascased or len(out) < len(charset): 333 return charset, hascased 342 # To represent a big charset, firs [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | test__encoded_words.py | 64 def _test(self, source, result, charset='us-ascii', lang='', defects=[]): 67 self.assertEqual(char, charset) 123 charset = 'unknown-8bit', 129 charset = 'foobar', 136 charset = 'utf-8\udce2\udc80\udc9d', 143 charset='utf-8') 202 self.assertEqual(_ew.encode('foo\uDCACbar', charset='unknown-8bit'),
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | convtest.cpp | 29 * is for a Unicode charset, so it would be difficult to only exclude those. 90 char charset[100], cbopt[4]; in TestToUnicode() local 117 s=testCase->getString("charset", errorCode); in TestToUnicode() 118 s.extract(0, 0x7fffffff, charset, sizeof(charset), ""); in TestToUnicode() 119 cc.charset=charset; in TestToUnicode() 186 logln("TestToUnicode[%d] %s", i, charset); in TestToUnicode() 202 char charset[100], cbopt[4]; in TestFromUnicode() local 230 s=testCase->getString("charset", errorCod in TestFromUnicode() 356 char charset[100]; TestGetUnicodeSet() local [all...] |