Add PyUnicode_Copy() function, include it to the public API

This commit is contained in:
Victor Stinner 2011-09-30 02:26:44 +02:00
parent b153615008
commit 034f6cf10c
3 changed files with 27 additions and 21 deletions

View file

@ -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.