Home
last modified time | relevance | path

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

12

/external/python/cpython3/Python/
Dimportdl.c59 encoded = PyUnicode_AsEncodedString(name, "ascii", NULL); in get_encoded_name()
65 encoded = PyUnicode_AsEncodedString(name, "punycode", NULL); in get_encoded_name()
Dsysmodule.c124 encoded = PyUnicode_AsEncodedString(repr_str, in sys_displayhook_unencodable()
Dmarshal.c453 utf8 = PyUnicode_AsEncodedString(v, "utf8", "surrogatepass"); in w_complex_object()
/external/python/cpython2/Include/
Dunicodeobject.h151 # define PyUnicode_AsEncodedString PyUnicodeUCS2_AsEncodedString macro
238 # define PyUnicode_AsEncodedString PyUnicodeUCS4_AsEncodedString macro
714 PyAPI_FUNC(PyObject*) PyUnicode_AsEncodedString(
/external/python/cpython2/Objects/
Dobject.c387 str = PyUnicode_AsEncodedString(res, NULL, NULL); in PyObject_Repr()
457 str = PyUnicode_AsEncodedString(res, NULL, NULL); in PyObject_Str()
1229 name = PyUnicode_AsEncodedString(name, NULL, NULL); in PyObject_SetAttr()
1342 name = PyUnicode_AsEncodedString(name, NULL, NULL); in _PyObject_GenericGetAttrWithDict()
1480 name = PyUnicode_AsEncodedString(name, NULL, NULL); in _PyObject_GenericSetAttrWithDict()
Dfileobject.c1836 encoded = PyUnicode_AsEncodedString(text, encoding, errors); in file_write()
2571 value = PyUnicode_AsEncodedString(v, cenc, errors); in PyFile_WriteObject()
Dstringobject.c476 v = PyUnicode_AsEncodedString(v, NULL, NULL); in PyString_AsDecodedString()
556 v = PyUnicode_AsEncodedString(v, NULL, NULL); in PyString_AsEncodedString()
637 w = PyUnicode_AsEncodedString( in PyString_DecodeEscape()
Dunicodeobject.c1316 v = PyUnicode_AsEncodedString(unicode, encoding, errors); in PyUnicode_Encode()
1345 PyObject *PyUnicode_AsEncodedString(PyObject *unicode, in PyUnicode_AsEncodedString() function
1397 v = PyUnicode_AsEncodedString(unicode, NULL, errors); in _PyUnicode_AsDefaultEncodedString()
7657 return PyUnicode_AsEncodedString((PyObject *)self, NULL, NULL); in unicode_str()
/external/python/cpython3/Doc/c-api/
Dunicode.rst989 .. c:function:: PyObject* PyUnicode_AsEncodedString(PyObject *unicode, \
1010 :c:func:`PyUnicode_AsEncodedString`.
1075 :c:func:`PyUnicode_AsEncodedString`.
1148 :c:func:`PyUnicode_AsUTF32String` or :c:func:`PyUnicode_AsEncodedString`.
1223 :c:func:`PyUnicode_AsUTF16String` or :c:func:`PyUnicode_AsEncodedString`.
1261 :c:func:`PyUnicode_AsEncodedString`.
1323 :c:func:`PyUnicode_AsEncodedString`.
1355 :c:func:`PyUnicode_AsEncodedString`.
1387 :c:func:`PyUnicode_AsEncodedString`.
1466 :c:func:`PyUnicode_AsEncodedString`.
[all …]
/external/python/cpython2/Doc/data/
Drefcounts.dat1534 PyUnicode_AsEncodedString:PyObject*::+1:
1535 PyUnicode_AsEncodedString:PyObject*:unicode::
1536 PyUnicode_AsEncodedString:const char*:encoding::
1537 PyUnicode_AsEncodedString:const char*:errors::
/external/python/cpython3/Doc/data/
Drefcounts.dat1534 PyUnicode_AsEncodedString:PyObject*::+1:
1535 PyUnicode_AsEncodedString:PyObject*:unicode::
1536 PyUnicode_AsEncodedString:const char*:encoding::
1537 PyUnicode_AsEncodedString:const char*:errors::
/external/tensorflow/tensorflow/compiler/xla/python/
Dnumpy_bridge.cc155 PyObject* bytes = PyUnicode_AsEncodedString(r, 0, 0); in ExtractStringAndDecref()
/external/python/cpython2/Parser/
Dtokenizer.c814 utf8 = PyUnicode_AsEncodedString(decoded, "utf-8", NULL); in tok_stdin_decode()
1706 ret = PyUnicode_AsEncodedString(unicode_text, enc, "replace"); in dec_utf8()
/external/python/cpython3/PC/
Dpython3.def627 PyUnicode_AsEncodedString=python36.PyUnicode_AsEncodedString
/external/python/cpython2/PC/
D_winreg.c782 value = PyUnicode_AsEncodedString( in Py2Reg()
835 obs[j] = PyUnicode_AsEncodedString( in Py2Reg()
/external/python/cpython2/Modules/
D_ssl.c2560 password_bytes = PyUnicode_AsEncodedString(password, NULL, NULL); in _pwinfo_set()
2668 keyfile_bytes = PyUnicode_AsEncodedString( in load_cert_chain()
2867 cafile_bytes = PyUnicode_AsEncodedString( in load_verify_locations()
2882 capath_bytes = PyUnicode_AsEncodedString( in load_verify_locations()
D_struct.c1383 PyObject *str = PyUnicode_AsEncodedString(o_format, "ascii", NULL); in s_init()
/external/python/cpython2/Modules/_io/
Dfileio.c253 stringobj = PyUnicode_AsEncodedString( in fileio_init()
/external/python/cpython3/Include/
Dunicodeobject.h1236 PyAPI_FUNC(PyObject*) PyUnicode_AsEncodedString(
/external/python/cpython3/Objects/
Dbytesobject.c1088 w = PyUnicode_AsEncodedString(u, recode_encoding, errors); in _PyBytes_DecodeEscapeRecode()
2551 new = PyUnicode_AsEncodedString(x, encoding, errors); in bytes_new()
Dobject.c389 t = PyUnicode_AsEncodedString(s, "utf-8", "backslashreplace"); in PyObject_Print()
/external/python/cpython3/Modules/
D_cursesmodule.c233 bytes = PyUnicode_AsEncodedString(obj, encoding, NULL); in PyCurses_ConvertToChtype()
354 *bytes = PyUnicode_AsEncodedString(obj, win->encoding, NULL); in PyCurses_ConvertToString()
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1349 PyObject *str = PyUnicode_AsEncodedString(value, in z_set()
/external/python/cpython2/Python/
Dgetargs.c1081 s = PyUnicode_AsEncodedString(u, in convertsimple()
Dast.c3383 v = PyUnicode_AsEncodedString(u, encoding, NULL); in decode_utf8()
3535 v = PyUnicode_AsEncodedString(u, c->c_encoding, NULL); in parsestr()

12