mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
[3.13] gh-46236: Document PyUnicode_DecodeCodePageStateful
(GH-127934) (GH-129961)
gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934)
(cherry picked from commit 8d9d3e4ecb
)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
fd665d5f09
commit
a38bacd41f
2 changed files with 14 additions and 0 deletions
|
@ -1352,6 +1352,13 @@ the user settings on the machine running the codec.
|
||||||
in *consumed*.
|
in *consumed*.
|
||||||
|
|
||||||
|
|
||||||
|
.. c:function:: PyObject* PyUnicode_DecodeCodePageStateful(int code_page, const char *str, \
|
||||||
|
Py_ssize_t size, const char *errors, Py_ssize_t *consumed)
|
||||||
|
|
||||||
|
Similar to :c:func:`PyUnicode_DecodeMBCSStateful`, except uses the code page
|
||||||
|
specified by *code_page*.
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: PyObject* PyUnicode_AsMBCSString(PyObject *unicode)
|
.. c:function:: PyObject* PyUnicode_AsMBCSString(PyObject *unicode)
|
||||||
|
|
||||||
Encode a Unicode object using MBCS and return the result as Python bytes
|
Encode a Unicode object using MBCS and return the result as Python bytes
|
||||||
|
|
|
@ -2622,6 +2622,13 @@ PyUnicode_DecodeMBCSStateful:Py_ssize_t:size::
|
||||||
PyUnicode_DecodeMBCSStateful:const char*:errors::
|
PyUnicode_DecodeMBCSStateful:const char*:errors::
|
||||||
PyUnicode_DecodeMBCSStateful:Py_ssize_t*:consumed::
|
PyUnicode_DecodeMBCSStateful:Py_ssize_t*:consumed::
|
||||||
|
|
||||||
|
PyUnicode_DecodeCodePageStateful:PyObject*::+1:
|
||||||
|
PyUnicode_DecodeCodePageStateful:int:code_page::
|
||||||
|
PyUnicode_DecodeCodePageStateful:const char*:s::
|
||||||
|
PyUnicode_DecodeCodePageStateful:Py_ssize_t:size::
|
||||||
|
PyUnicode_DecodeCodePageStateful:const char*:errors::
|
||||||
|
PyUnicode_DecodeCodePageStateful:Py_ssize_t*:consumed::
|
||||||
|
|
||||||
PyUnicode_EncodeCodePage:PyObject*::+1:
|
PyUnicode_EncodeCodePage:PyObject*::+1:
|
||||||
PyUnicode_EncodeCodePage:int:code_page::
|
PyUnicode_EncodeCodePage:int:code_page::
|
||||||
PyUnicode_EncodeCodePage:PyObject*:unicode:0:
|
PyUnicode_EncodeCodePage:PyObject*:unicode:0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue