mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy()
This commit is contained in:
parent
8b358e55db
commit
46408606d8
2 changed files with 2 additions and 2 deletions
|
@ -1607,7 +1607,7 @@ PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strrchr(
|
||||||
and raise a MemoryError exception on memory allocation failure, otherwise
|
and raise a MemoryError exception on memory allocation failure, otherwise
|
||||||
return a new allocated buffer (use PyMem_Free() to free the buffer). */
|
return a new allocated buffer (use PyMem_Free() to free the buffer). */
|
||||||
|
|
||||||
PyAPI_FUNC(Py_UNICODE*) PyUnicode_strdup(
|
PyAPI_FUNC(Py_UNICODE*) PyUnicode_AsUnicodeCopy(
|
||||||
PyObject *unicode
|
PyObject *unicode
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -10015,7 +10015,7 @@ Py_UNICODE_strrchr(const Py_UNICODE *s, Py_UNICODE c)
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_UNICODE*
|
Py_UNICODE*
|
||||||
PyUnicode_strdup(PyObject *object)
|
PyUnicode_AsUnicodeCopy(PyObject *object)
|
||||||
{
|
{
|
||||||
PyUnicodeObject *unicode = (PyUnicodeObject *)object;
|
PyUnicodeObject *unicode = (PyUnicodeObject *)object;
|
||||||
Py_UNICODE *copy;
|
Py_UNICODE *copy;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue