Home
last modified time | relevance | path

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

/third_party/python/Python/
Dimportdl.c64 encoded = PyUnicode_AsEncodedString(name, "ascii", NULL); in get_encoded_name()
70 encoded = PyUnicode_AsEncodedString(name, "punycode", NULL); in get_encoded_name()
Dmarshal.c453 utf8 = PyUnicode_AsEncodedString(v, "utf8", "surrogatepass"); in w_complex_object()
Dbltinmodule.c2203 po = PyUnicode_AsEncodedString(stringpo, in builtin_input_impl()
Dsysmodule.c625 encoded = PyUnicode_AsEncodedString(repr_str, in sys_displayhook_unencodable()
Dgetargs.c1114 s = PyUnicode_AsEncodedString(arg, in convertsimple()
/third_party/python/Include/
Dunicodeobject.h408 PyAPI_FUNC(PyObject*) PyUnicode_AsEncodedString(
/third_party/python/Doc/data/
Drefcounts.dat2475 PyUnicode_AsEncodedString:PyObject*::+1:
2476 PyUnicode_AsEncodedString:PyObject*:unicode:0:
2477 PyUnicode_AsEncodedString:const char*:encoding::
2478 PyUnicode_AsEncodedString:const char*:errors::
Dstable_abi.dat705 function,PyUnicode_AsEncodedString,3.2,,
/third_party/python/PC/
Dpython3dll.c623 EXPORT_FUNC(PyUnicode_AsEncodedString)
/third_party/python/Modules/
D_cursesmodule.c258 bytes = PyUnicode_AsEncodedString(obj, encoding, NULL); in PyCurses_ConvertToChtype()
381 *bytes = PyUnicode_AsEncodedString(obj, win->encoding, NULL); in PyCurses_ConvertToString()
Dsocketmodule.c1649 obj2 = PyUnicode_AsEncodedString(obj, "idna", NULL); in idna_converter()
6560 idna = PyUnicode_AsEncodedString(hobj, "idna", NULL);
D_elementtree.c3962 temp = PyUnicode_AsEncodedString(buffer, "utf-8", "surrogatepass"); in _elementtree_XMLParser__parse_whole()
D_pickle.c2665 encoded = PyUnicode_AsEncodedString(obj, "utf-8", "surrogatepass"); in write_unicode_binary()
/third_party/alsa-lib/modules/mixer/simple/
Dpython.c410 obj2 = PyUnicode_AsEncodedString(t1, "utf-8", "strict"); in enum_item_name_ops()
/third_party/python/Objects/
Dbytearrayobject.c786 encoded = PyUnicode_AsEncodedString(arg, encoding, errors); in bytearray___init___impl()
Dobject.c297 t = PyUnicode_AsEncodedString(s, "utf-8", "backslashreplace"); in PyObject_Print()
Dbytesobject.c2613 bytes = PyUnicode_AsEncodedString(x, encoding, errors); in bytes_new_impl()
Dunicodeobject.c3797 return PyUnicode_AsEncodedString(unicode, in PyUnicode_EncodeFSDefault()
3820 PyUnicode_AsEncodedString(PyObject *unicode, in PyUnicode_AsEncodedString() function
11674 return PyUnicode_AsEncodedString(self, encoding, errors); in unicode_encode_impl()
/third_party/python/Misc/
Dstable_abi.toml1452 [function.PyUnicode_AsEncodedString]
DHISTORY389 PyUnicode_AsEncodedString() instead of calling the encode() method of the
8660 PyUnicode_AsUTF8String() and PyUnicode_AsEncodedString(unicode, "utf-8",
8683 PyUnicode_AsEncodedString(), it was replaced by a better fallback (use the
12731 - Issue #8922: Normalize the encoding name in PyUnicode_AsEncodedString() to
12733 "iso-8859-1" in PyUnicode_AsEncodedString() and PyUnicode_Decode().
12777 - Enable shortcuts for common encodings in PyUnicode_AsEncodedString() for any
DNEWS33613 PyUnicode_AsEncodedString() instead of calling the encode() method of the
/third_party/protobuf/python/google/protobuf/pyext/
Dmessage.cc783 encoded_string = PyUnicode_AsEncodedString(arg, "utf-8", NULL); in CheckString()
/third_party/python/Doc/c-api/
Dunicode.rst1027 .. c:function:: PyObject* PyUnicode_AsEncodedString(PyObject *unicode, \