diff options
| author | Inada Naoki <songofacandy@gmail.com> | 2020-03-14 15:59:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-14 15:59:27 +0900 |
| commit | 3a8c56295d6272ad2177d2de8af4c3f824f3ef92 (patch) | |
| tree | 9f4d7a615bd78987c6d36ee3ab7e084ee8ee1bc1 /Include/cpython | |
| parent | 7a5cbc72988aee668816be9d1ef44c0cb4081ff6 (diff) | |
| download | cpython-git-3a8c56295d6272ad2177d2de8af4c3f824f3ef92.tar.gz | |
Revert "bpo-39087: Add _PyUnicode_GetUTF8Buffer()" (GH-18985)
* Revert "bpo-39087: Add _PyUnicode_GetUTF8Buffer() (GH-17659)"
This reverts commit c7ad974d341d3edb6b9d2a2dcae4d3d4794ada6b.
* Update unicodeobject.h
Diffstat (limited to 'Include/cpython')
| -rw-r--r-- | Include/cpython/unicodeobject.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index be91d2d9fc..0df64790c1 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -734,19 +734,6 @@ PyAPI_FUNC(void*) _PyUnicode_AsKind(PyObject *s, unsigned int kind); /* --- Manage the default encoding ---------------------------------------- */ -/* Get a buffer to the UTF-8 encoding of the Unicode object unicode. - Returns -1 on error. - - Successful calls must be paired to - calls to PyBuffer_Release. -*/ - -PyAPI_FUNC(int) _PyUnicode_GetUTF8Buffer( - PyObject *unicode, /* Unicode object */ - const char *errors, /* error handling */ - Py_buffer *view /* (out) buffer to the UTF-8 encoding */ - ); - /* Returns a pointer to the default encoding (UTF-8) of the Unicode object unicode and the size of the encoded representation in bytes stored in *size. |
