File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -645,6 +645,17 @@ APIs:
645
645
difference being that it decrements the reference count of *right * by one.
646
646
647
647
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
+
648
659
.. c:function:: const char* PyUnicode_GetDefaultEncoding(void)
649
660
650
661
Return the name of the default string encoding, ``"utf-8"``.
Original file line number Diff line number Diff line change @@ -2778,6 +2778,9 @@ PyUnicode_AppendAndDel:void:::
2778
2778
PyUnicode_AppendAndDel:PyObject**:p_left:0:
2779
2779
PyUnicode_AppendAndDel:PyObject*:right:-1:
2780
2780
2781
+ PyUnicode_BuildEncodingMap:PyObject*::+1:
2782
+ PyUnicode_BuildEncodingMap:PyObject*:string:::
2783
+
2781
2784
PyUnicode_GetDefaultEncoding:const char*:::
2782
2785
PyUnicode_GetDefaultEncoding::void::
2783
2786
You can’t perform that action at this time.
0 commit comments