Home
last modified time | relevance | path

Searched refs:encode (Results 151 - 175 of 824) sorted by relevance

12345678910>>...33

/third_party/python/Lib/test/test_email/
H A Dtest_asian_codecs.py39 eq(h.encode(), """\
42 eq(decode_header(h.encode()),
53 enc = h.encode()
59 eq(str(h).encode(jcode), subject_bytes)
H A Dtest_email.py231 msgdata = fp.read().encode('ascii')
326 source = m.encode('iso-8859-1')
347 source = m.encode('iso-8859-1')
355 data = fp.read().encode('ascii')
668 x = 'this is a quéstionable thing to do'.encode('utf-8')
897 eq(h.encode(), """\
902 eq(h.encode(), """\
948 eq(h.encode(maxlinelen=76), """\
966 eq(h.encode(), '''\
976 eq(h.encode(), '''\
[all...]
H A Dtest_generator.py233 typ = lambda self, x: x.encode('ascii')
237 "collègue\n\n").encode('utf-8')
239 'pr=C3=A9sente_mon_coll=C3=A8gue?=\n\n').encode('ascii')
256 """).encode('latin1')
267 """).encode('ascii')
289 """).encode('utf-8').replace(b'\n', b'\r\n')
310 """).encode().replace(b"\n", b"\r\n")
/third_party/ffmpeg/tests/fate/
H A Dvorbis.mak1 FATE_VORBIS += fate-vorbis-encode
2 fate-vorbis-encode: CMD = enc_dec_pcm ogg wav s16le $(TARGET_SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav -c:a vorbis -strict experimental
3 fate-vorbis-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
4 fate-vorbis-encode: CMP_SHIFT = 0
5 fate-vorbis-encode: CMP_TARGET = 296
6 fate-vorbis-encode: SIZE_TOLERANCE = 3560
7 fate-vorbis-encode: FUZZ = 30
100 fate-vorbis-encode: CMP = stddev
/third_party/python/Lib/test/
H A Dtest_utf8source.py9 "Питон".encode("utf-8"),
13 "\П".encode("utf-8"),
32 source_code = '# coding: Latin-1\nu = "Ç"\n'.encode("Latin-1")
H A Dtest_secrets.py24 self.assertTrue(secrets.compare_digest(a.encode('utf-8'), b.encode('utf-8')))
34 self.assertFalse(secrets.compare_digest(a.encode('utf-8'), b.encode('utf-8')))
39 b = a.encode('utf-8')
H A Dtest_wsgiref.py66 ]).encode('iso-8859-1')]
117 "Hello, world!").encode("iso-8859-1")
204 ver = sys.version.split()[0].encode('ascii')
205 py = python_implementation().encode('ascii')
224 return [e["PATH_INFO"].encode("latin1")]
611 return [e['wsgi.url_scheme'].encode('iso-8859-1')]
614 s('200 OK',[])(e['wsgi.url_scheme'].encode('iso-8859-1'))
619 return ['\u0442\u0435\u0441\u0442'.encode("utf-8")]
632 "http").encode("iso-8859-1"))
639 "http").encode("is
[all...]
H A Dtest_unicode.py53 return text.encode().decode()
1673 self.assertEqual(subclass.encode('ascii'), b'ascii')
1674 self.assertEqual(subclass.encode('utf-8'), b'ascii')
1744 utf8_cent = '¢'.encode('utf-8')
1769 self.assertEqual(x.encode('utf-7'), y)
1772 self.assertEqual('\uD801'.encode('utf-7'), b'+2AE-')
1773 self.assertEqual('\uD801x'.encode('utf-7'), b'+2AE-x')
1774 self.assertEqual('\uDC01'.encode('utf-7'), b'+3AE-')
1775 self.assertEqual('\uDC01x'.encode('utf-7'), b'+3AE-x')
1781 self.assertEqual('\uD801\U000abcde'.encode('ut
[all...]
/third_party/rust/crates/rust-openssl/openssl/src/
H A Dsymm.rs852 assert_eq!(hex::encode(&r0), hex::encode(c0)); in test_aes_256_ecb()
866 assert_eq!(hex::encode(p1), hex::encode(p0)); in test_aes_256_ecb()
912 println!("Computed: {}", hex::encode(&computed)); in cipher_test()
913 println!("Expected: {}", hex::encode(&expected)); in cipher_test()
944 println!("Computed: {}", hex::encode(&computed)); in cipher_test_nopad()
945 println!("Expected: {}", hex::encode(&expected)); in cipher_test_nopad()
1293 assert_eq!(ct, hex::encode(out)); in test_aes128_gcm()
1294 assert_eq!(tag, hex::encode(actual_ta in test_aes128_gcm()
[all...]
/third_party/python/Lib/email/
H A Dcharset.py154 built-in, or to the encode() method of a Unicode string.
165 return string.encode('ascii', 'surrogateescape')
167 return string.encode(codec)
223 input_charset.encode('ascii')
285 """Header-encode a string by converting it first to bytes.
291 to encode this string to bytes using the character set's
304 """Header-encode a string by converting it first to bytes.
310 to encode this string to bytes using the character set's
329 # Now comes the hard part. We must encode bytes but we can't split on
332 # encode t
[all...]
/third_party/node/test/parallel/
H A Dtest-fs-mkdtemp.js89 const tmpFolder = fs.mkdtempSync(encoder.encode(path.join(tmpdir.path, 'foo.')));
94 const utf8 = fs.mkdtempSync(encoder.encode(path.join(tmpdir.path, '\u0222abc.')));
99 fs.mkdtemp(encoder.encode(path.join(tmpdir.path, 'bar.')), common.mustCall(handler));
103 fs.mkdtemp(encoder.encode(path.join(tmpdir.path, 'bar.')), {}, common.mustCall(handler));
106 fs.mkdtemp(encoder.encode(path.join(tmpdir.path, 'bar.X')), common.mustCall(handler));
/third_party/python/Lib/test/test_importlib/source/
H A Dtest_source_encoding.py48 source_lines = [encoding_line.encode('utf-8')]
49 source_lines.append(self.source_line.encode(encoding))
57 source = "{0}\na=42\n".format(encoding_line).encode("koi8-r")
62 self.run_test(self.source_line.encode('utf-8'))
77 self.run_test(codecs.BOM_UTF8 + self.source_line.encode('utf-8'))
/third_party/python/Lib/encodings/
H A Dutf_16.py13 encode = codecs.utf_16_encode variable
23 def encode(self, input, final=False): member in IncrementalEncoder
113 def encode(self, input, errors='strict'): member in StreamWriter
149 encode=encode,
H A Dutf_32.py8 encode = codecs.utf_32_encode variable
18 def encode(self, input, final=False): member in IncrementalEncoder
108 def encode(self, input, errors='strict'): member in StreamWriter
144 encode=encode,
H A Duu_codec.py28 write(('begin %o %s\n' % (mode & 0o777, filename)).encode('ascii'))
71 def encode(self, input, errors='strict'): member in Codec
78 def encode(self, input, final=False): member in IncrementalEncoder
96 encode=uu_encode,
H A Dhex_codec.py22 def encode(self, input, errors='strict'): member in Codec
28 def encode(self, input, final=False): member in IncrementalEncoder
48 encode=hex_encode,
H A Dbase64_codec.py22 def encode(self, input, errors='strict'): member in Codec
28 def encode(self, input, final=False): member in IncrementalEncoder
48 encode=base64_encode,
/third_party/node/deps/v8/src/compiler/backend/arm64/
H A Dinstruction-selector-arm64.cc279 m.opcode() | AddressingModeField::encode(kMode_MRI); in TryEmitExtendingLoad()
301 *opcode |= AddressingModeField::encode(kMode_Operand2_R_LSL_I); in TryMatchAnyShift()
305 *opcode |= AddressingModeField::encode(kMode_Operand2_R_LSR_I); in TryMatchAnyShift()
308 *opcode |= AddressingModeField::encode(kMode_Operand2_R_ASR_I); in TryMatchAnyShift()
312 *opcode |= AddressingModeField::encode(kMode_Operand2_R_ASR_I); in TryMatchAnyShift()
317 *opcode |= AddressingModeField::encode(kMode_Operand2_R_ROR_I); in TryMatchAnyShift()
340 *opcode |= AddressingModeField::encode( in TryMatchAnyExtend()
354 *opcode |= AddressingModeField::encode( in TryMatchAnyExtend()
361 *opcode |= AddressingModeField::encode(kMode_Operand2_R_SXTW); in TryMatchAnyExtend()
613 opcode |= AddressingModeField::encode(kMode_Roo in EmitLoad()
[all...]
/third_party/node/deps/v8/src/web-snapshot/
H A Dweb-snapshot.cc68 auto flags = AsyncFunctionBitField::encode(IsAsyncFunction(kind)) | in FunctionKindToFunctionFlags()
69 GeneratorFunctionBitField::encode(IsGeneratorFunction(kind)) | in FunctionKindToFunctionFlags()
70 ArrowFunctionBitField::encode(IsArrowFunction(kind)) | in FunctionKindToFunctionFlags()
71 MethodBitField::encode(IsConciseMethod(kind)) | in FunctionKindToFunctionFlags()
72 StaticBitField::encode(IsStatic(kind)) | in FunctionKindToFunctionFlags()
73 ClassConstructorBitField::encode(IsClassConstructor(kind)) | in FunctionKindToFunctionFlags()
74 DefaultConstructorBitField::encode(IsDefaultConstructor(kind)) | in FunctionKindToFunctionFlags()
75 DerivedConstructorBitField::encode(IsDerivedConstructor(kind)); in FunctionKindToFunctionFlags()
171 auto flags = ReadOnlyBitField::encode(false) | in GetDefaultAttributeFlags()
172 ConfigurableBitField::encode(tru in GetDefaultAttributeFlags()
[all...]
/third_party/protobuf/ruby/tests/
H A Dbasic.rb86 assert_equal "", TestSingularFields.encode(m)
90 assert_not_equal "", TestSingularFields.encode(m)
93 assert_equal "", TestSingularFields.encode(m)
281 serialized = proto_module::Wrapper::encode(m)
288 serialized2 = proto_module::Wrapper::encode(m3)
323 serialized = proto_module::Wrapper::encode(m)
330 serialized2 = proto_module::Wrapper::encode(m3)
365 serialized = proto_module::Wrapper::encode(m)
372 serialized2 = proto_module::Wrapper::encode(m3)
380 raw = Outer.encode(
[all...]
/third_party/skia/src/core/
H A DSkColorSpaceXformSteps.cpp37 this->flags.encode = !dst->gammaIsLinear(); in SkColorSpaceXformSteps()
71 this->flags.encode && in SkColorSpaceXformSteps()
82 this->flags.encode = false; in SkColorSpaceXformSteps()
88 !this->flags.encode && in SkColorSpaceXformSteps()
120 if (flags.encode) { in apply()
136 if (flags.encode) { p->append_transfer_function(dstTFInv); } in apply()
216 if (flags.encode) { in program()
/third_party/PyYAML/lib/yaml/
H A Demitter.py573 data = ch.encode('utf-8')
605 data = ch.encode('utf-8')
795 self.stream.write('\uFEFF'.encode(self.encoding))
811 data = data.encode(self.encoding)
824 data = data.encode(self.encoding)
835 data = data.encode(self.encoding)
841 data = data.encode(self.encoding)
848 data = data.encode(self.encoding)
872 data = data.encode(self.encoding)
892 data = data.encode(sel
[all...]
/third_party/node/deps/v8/src/parsing/
H A Dtoken.cc38 IsPropertyNameBits::encode(Token::IsAnyIdentifier(a) || a == ESCAPED_KEYWORD),
40 IsKeywordBits::encode(true) | IsPropertyNameBits::encode(true),
H A Dpreparser.h96 PreParserExpression() : code_(TypeField::encode(kNull)) {} in PreParserExpression()
100 return PreParserExpression(TypeField::encode(kFailure)); in Failure()
104 return PreParserExpression(TypeField::encode(kExpression)); in Default()
108 return PreParserExpression(TypeField::encode(kSpreadExpression)); in Spread()
112 return PreParserExpression(TypeField::encode(kIdentifierExpression) | in FromIdentifier()
113 IdentifierTypeField::encode(id.type_)); in FromIdentifier()
120 return PreParserExpression(TypeField::encode(kExpression)); in BinaryOperation()
124 return PreParserExpression(TypeField::encode(kExpression) | in Assignment()
125 ExpressionTypeField::encode(kAssignment)); in Assignment()
133 return PreParserExpression(TypeField::encode(kObjectLiteralExpressio in ObjectLiteral()
[all...]
/third_party/python/Lib/http/
H A Dclient.py162 """Call data.encode("latin-1") but show a better error message."""
164 return data.encode("latin-1")
171 "%s (%.20r) is not valid Latin-1. Use %s.encode('utf-8') "
909 self._tunnel_host.encode("ascii"), self._tunnel_port)
912 headers.append(f"{header}: {value}\r\n".encode("latin-1"))
988 encode = self._is_textIO(data)
989 if encode and self.debuglevel > 0:
995 if encode:
996 datablock = datablock.encode("iso-8859-1")
1021 encode
[all...]

Completed in 25 milliseconds

12345678910>>...33