Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/email/
Dcharset.py159 def _encode(string, codec): function
293 header_bytes = _encode(string, codec)
319 header_bytes = _encode(string, codec)
343 length = encoder_module.header_length(_encode(this_line, charset))
353 header_bytes = _encode(joined_line, codec)
358 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
361 payload = self._encode(payload)
411 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( \
214 enc##_encode, \
221 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/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/uritemplates/uritemplate/
Dvariable.py374 def _encode(value, encoding='utf-8'): function
384 return urllib.quote(_encode(value), safe)
/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.py148 def _encode(data, name='data'): function
1274 body = _encode(body, 'body')