File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -645,6 +645,17 @@ APIs:
645645 difference being that it decrements the reference count of *right * by one.
646646
647647
648+ .. c :function :: PyObject* PyUnicode_BuildEncodingMap (PyObject* string)
649+
650+ Return a mapping suitable for decoding a custom single-byte encoding.
651+ Given a Unicode string *string* of up to 256 characters representing an encoding
652+ table, returns either a compact internal mapping object or a dictionary
653+ mapping character ordinals to byte values. Raises a :exc:`TypeError` and
654+ return ``NULL`` on invalid input.
655+
656+ .. versionadded:: 3.2
657+
658+
648659.. c:function:: const char* PyUnicode_GetDefaultEncoding(void)
649660
650661 Return the name of the default string encoding, ``"utf-8"``.
Original file line number Diff line number Diff line change @@ -2781,6 +2781,9 @@ PyUnicode_AppendAndDel:void:::
27812781PyUnicode_AppendAndDel:PyObject**:p_left:0:
27822782PyUnicode_AppendAndDel:PyObject*:right:-1:
27832783
2784+ PyUnicode_BuildEncodingMap:PyObject*::+1:
2785+ PyUnicode_BuildEncodingMap:PyObject*:string:::
2786+
27842787PyUnicode_GetDefaultEncoding:const char*:::
27852788PyUnicode_GetDefaultEncoding::void::
27862789
You can’t perform that action at this time.
0 commit comments