Home
last modified time | relevance | path

Searched refs:PyUnicode_AsEncodedString (Results 1 – 25 of 43) 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()
Dmarshal.c469 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.c392 str = PyUnicode_AsEncodedString(res, NULL, NULL); in PyObject_Repr()
462 str = PyUnicode_AsEncodedString(res, NULL, NULL); in PyObject_Str()
1234 name = PyUnicode_AsEncodedString(name, NULL, NULL); in PyObject_SetAttr()
1347 name = PyUnicode_AsEncodedString(name, NULL, NULL); in _PyObject_GenericGetAttrWithDict()
1485 name = PyUnicode_AsEncodedString(name, NULL, NULL); in _PyObject_GenericSetAttrWithDict()
Dfileobject.c1857 encoded = PyUnicode_AsEncodedString(text, encoding, errors); in file_write()
2616 value = PyUnicode_AsEncodedString(v, cenc, errors); in PyFile_WriteObject()
Dbytesobject.c1103 w = PyUnicode_AsEncodedString(u, recode_encoding, errors); in _PyBytes_DecodeEscapeRecode()
2566 new = PyUnicode_AsEncodedString(x, encoding, errors); in bytes_new()
Dstringobject.c476 v = PyUnicode_AsEncodedString(v, NULL, NULL); in PyString_AsDecodedString()
556 v = PyUnicode_AsEncodedString(v, NULL, NULL); in PyString_AsEncodedString()
643 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()
7652 return PyUnicode_AsEncodedString((PyObject *)self, NULL, NULL); in unicode_str()
/external/python/cpython3/Doc/c-api/
Dunicode.rst1017 .. c:function:: PyObject* PyUnicode_AsEncodedString(PyObject *unicode, \
1038 :c:func:`PyUnicode_AsEncodedString`.
1109 :c:func:`PyUnicode_AsEncodedString`.
1182 :c:func:`PyUnicode_AsUTF32String` or :c:func:`PyUnicode_AsEncodedString`.
1257 :c:func:`PyUnicode_AsUTF16String` or :c:func:`PyUnicode_AsEncodedString`.
1295 :c:func:`PyUnicode_AsEncodedString`.
1357 :c:func:`PyUnicode_AsEncodedString`.
1389 :c:func:`PyUnicode_AsEncodedString`.
1421 :c:func:`PyUnicode_AsEncodedString`.
1473 :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/cpython2/Modules/
D_ssl.c2642 password_bytes = PyUnicode_AsEncodedString(password, NULL, NULL); in _pwinfo_set()
2750 keyfile_bytes = PyUnicode_AsEncodedString( in load_cert_chain()
2949 cafile_bytes = PyUnicode_AsEncodedString( in load_verify_locations()
2964 capath_bytes = PyUnicode_AsEncodedString( in load_verify_locations()
3062 filepath_bytes = PyUnicode_AsEncodedString( in load_dh_params()
D_struct.c1387 PyObject *str = PyUnicode_AsEncodedString(o_format, "ascii", NULL); in s_init()
/external/python/cpython2/Parser/
Dtokenizer.c814 utf8 = PyUnicode_AsEncodedString(decoded, "utf-8", NULL); in tok_stdin_decode()
1713 ret = PyUnicode_AsEncodedString(unicode_text, enc, "replace"); in dec_utf8()
/external/python/cpython3/PC/
Dpython3.def635 PyUnicode_AsEncodedString=python37.PyUnicode_AsEncodedString
/external/python/cpython2/PC/
D_winreg.c781 value = PyUnicode_AsEncodedString( in Py2Reg()
834 obs[j] = PyUnicode_AsEncodedString( in Py2Reg()
/external/tensorflow/tensorflow/compiler/xla/python/
Dnumpy_bridge.cc184 PyObject* bytes = PyUnicode_AsEncodedString(r, 0, 0); in ExtractStringAndDecref()
/external/python/cpython2/Modules/_io/
Dfileio.c279 stringobj = PyUnicode_AsEncodedString( in fileio_init()
/external/python/cpython3/Doc/data/
Drefcounts.dat2461 PyUnicode_AsEncodedString:PyObject*::+1:
2462 PyUnicode_AsEncodedString:PyObject*:unicode:0:
2463 PyUnicode_AsEncodedString:const char*:encoding::
2464 PyUnicode_AsEncodedString:const char*:errors::
/external/python/cpython3/Include/
Dunicodeobject.h1240 PyAPI_FUNC(PyObject*) PyUnicode_AsEncodedString(
/external/python/cpython3/Objects/
Dbytesobject.c1109 w = PyUnicode_AsEncodedString(u, recode_encoding, errors); in _PyBytes_DecodeEscapeRecode()
2561 new = PyUnicode_AsEncodedString(x, encoding, errors); in bytes_new()
Dobject.c378 t = PyUnicode_AsEncodedString(s, "utf-8", "backslashreplace"); in PyObject_Print()
/external/python/cpython3/Modules/
D_cursesmodule.c232 bytes = PyUnicode_AsEncodedString(obj, encoding, NULL); in PyCurses_ConvertToChtype()
355 *bytes = PyUnicode_AsEncodedString(obj, win->encoding, NULL); in PyCurses_ConvertToString()
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1357 PyObject *str = PyUnicode_AsEncodedString(value, in z_set()
/external/python/cpython2/Misc/NEWS.d/
D2.7.11rc1.rst339 socket.socket.getaddrinfo() now calls PyUnicode_AsEncodedString() instead of
/external/python/cpython2/Python/
Dgetargs.c1081 s = PyUnicode_AsEncodedString(u, in convertsimple()

12