mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Add PyUnicode_Copy() function, include it to the public API
This commit is contained in:
parent
b153615008
commit
034f6cf10c
3 changed files with 27 additions and 21 deletions
|
@ -510,6 +510,11 @@ PyAPI_FUNC(int) _PyUnicode_Ready(
|
|||
);
|
||||
#endif
|
||||
|
||||
/* Get a copy of a Unicode string. */
|
||||
PyAPI_FUNC(PyObject*) PyUnicode_Copy(
|
||||
PyObject *unicode
|
||||
);
|
||||
|
||||
/* Copy character from one unicode object into another, this function performs
|
||||
character conversion when necessary and falls back to memcpy if possible.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue