mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-92536: PEP 623: Remove wstr and legacy APIs from Unicode (GH-92537)
This commit is contained in:
parent
68fec31364
commit
f9c9354a7a
35 changed files with 199 additions and 2090 deletions
|
@ -171,13 +171,6 @@ PyAPI_FUNC(Py_ssize_t) PyUnicode_GetLength(
|
|||
);
|
||||
#endif
|
||||
|
||||
/* Get the number of Py_UNICODE units in the
|
||||
string representation. */
|
||||
|
||||
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
|
||||
PyObject *unicode /* Unicode object */
|
||||
);
|
||||
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
||||
/* Read a character from the string. */
|
||||
|
||||
|
@ -198,9 +191,7 @@ PyAPI_FUNC(int) PyUnicode_WriteChar(
|
|||
);
|
||||
#endif
|
||||
|
||||
/* Resize a Unicode object. The length is the number of characters, except
|
||||
if the kind of the string is PyUnicode_WCHAR_KIND: in this case, the length
|
||||
is the number of Py_UNICODE characters.
|
||||
/* Resize a Unicode object. The length is the number of codepoints.
|
||||
|
||||
*unicode is modified to point to the new (resized) object and 0
|
||||
returned on success.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue