Home
last modified time | relevance | path

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

/external/pigweed/pw_hdlc/py/
Ddecode_test.py27 def _encode(address: int, control: int, data: bytes) -> bytes: function
75 (_encode(0, 0, b''), [Expected(0, b'\0', b'')]),
76 (_encode(55, 0x99, b''), [Expected(55, b'\x99', b'')]),
77 (_encode(55, 0x99, b'') * 3, [Expected(55, b'\x99', b'')] * 3),
79 (_encode(0, 0, b'\0'), [Expected(0, b'\0', b'\0')]),
80 (_encode(123, 0, b'A'), [Expected(123, b'\0', b'A')]),
82 (_encode(0, 0, b'Hello, world!'), [Expected(0, b'\0', b'Hello, world!')]),
83 (_encode(123, 0, b'\0\0\1\0\0'), [Expected(123, b'\0', b'\0\0\1\0\0')]),
85 (_encode(1, 2, b'\x7e'), [Expected(1, b'\2', b'\x7e')]),
86 (_encode(1, 2, b'\x7d'), [Expected(1, b'\2', b'\x7d')]),
[all …]
/external/python/cpython3/Lib/email/
Dcharset.py159 def _encode(string, codec): function
291 header_bytes = _encode(string, codec)
317 header_bytes = _encode(string, codec)
341 length = encoder_module.header_length(_encode(this_line, charset))
351 header_bytes = _encode(joined_line, codec)
356 header_bytes = _encode(joined_line, codec)
Dgenerator.py99 self._encoded_NL = self._encode(self._NL)
101 self._encoded_EMPTY = self._encode(self._EMPTY)
145 def _encode(self, s): member in Generator
365 payload = self._encode(payload)
415 def _encode(self, s): member in BytesGenerator
Dheader.py77 return [(_charset._encode(string, str(charset)), str(charset))
/external/lzma/CPP/7zip/Compress/
DBcjCoder.h21 int _encode; variable
26 CCoder(int encode): _bufferPos(0), _encode(encode) { x86_Convert_Init(_prevMask); } in CCoder()
DBranchMisc.h24 int _encode; variable
30 CCoder(Func_Bra bra, int encode): _bufferPos(0), _encode(encode), BraFunc(bra) {} in CCoder()
DBranchMisc.cpp18 UInt32 processed = (UInt32)BraFunc(data, size, _bufferPos, _encode); in STDMETHODIMP_()
DBcjCoder.cpp19 UInt32 processed = (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, _encode); in STDMETHODIMP_()
/external/python/setuptools/setuptools/command/
Dupload_docs.py26 def _encode(s): function
117 value = _encode(value)
119 yield _encode(title)
154 credentials = _encode(self.username + ':' + self.password)
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dmetadata.pyx.pxi36 encoded_key = _encode(key)
37 encoded_value = value if encoded_key[-4:] == b'-bin' else _encode(value)
Darguments.pyx.pxi57 cdef bytes encoded_key = _encode(key)
66 encoded_value = _encode(value)
Dgrpc_string.pyx.pxi36 cdef bytes _encode(object string_or_none): function
Dchannel.pyx.pxi143 call_state.c_call, code, _encode(details), NULL)
363 encoded_details = _encode(details)
Doperation.pyx.pxi110 self._c_details = _slice_from_bytes(_encode(self._details))
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h73 static Py_ssize_t encoding##_encode( \
216 enc##_encode, \
223 enc##_encode, NULL, NULL, \
/external/python/cpython2/Modules/cjkcodecs/
Dcjkcodecs.h73 static Py_ssize_t encoding##_encode( \
215 enc##_encode, \
222 enc##_encode, NULL, NULL, \
/external/markdown/markdown/
Dhtml4.py74 def _encode(text, encoding): function
170 write(_encode(text, encoding))
/external/python/cpython2/Lib/test/
Dtest_pydoc.py555 self.assertEqual(pydoc._encode(self.Q.__doc__, 'ascii'), 'Rational numbers: ℚ')
565 self.assertEqual(open('pipe').read(), pydoc._encode(doc))
581 self.assertEqual(output['content'], pydoc._encode(doc))
/external/python/uritemplates/uritemplate/
Dvariable.py376 def _encode(value, encoding='utf-8'): function
386 return urllib.quote(_encode(value), safe)
/external/python/cpython3/Lib/test/
Dtest_urlparse.py182 def _encode(t): function
186 bytes_cases = [_encode(x) for x in str_cases]
211 def _encode(t): function
215 bytes_cases = [_encode(x) for x in str_cases]
485 def _encode(t): function
487 bytes_cases = [_encode(x) for x in str_cases]
515 def _encode(t): function
517 bytes_cases = [_encode(x) for x in str_cases]
/external/python/cpython2/Lib/xml/etree/
DElementTree.py903 write("<!--%s-->" % _encode(text, encoding))
905 write("<?%s?>" % _encode(text, encoding))
994 write(_encode(text, encoding))
1055 def _encode(text, encoding): function
/external/python/cpython2/Lib/
Dpydoc.py85 result = _encode(result)
198 def _encode(text, encoding='ascii'): function
204 def _encode(text, encoding=None): function
460 return _encode('''
1419 pipe.write(_encode(text))
1429 file.write(_encode(text))
1438 lines = plain(_encode(plain(text), getattr(sys.stdout, 'encoding', _encoding))).split('\n')
1482 sys.stdout.write(_encode(plain(text), getattr(sys.stdout, 'encoding', _encoding)))
/external/python/cpython3/Lib/http/
Dclient.py159 def _encode(data, name='data'): function
1300 body = _encode(body, 'body')
/external/caliper/lib/
Djersey-core-1.11.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/jersey-module- ...
/external/conscrypt/benchmark-android/
Dvogar.jarMETA-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties ...