summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-30 00:26:44 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-30 00:26:44 (GMT)
commit034f6cf10c53f11cdb0f1fd42d279122cdb8ebaf (patch)
treed38f9fe89e3057467f603a93cf3826c9515db009 /Include
parentb153615008570cffb2e5a782d96c2b79db51ea02 (diff)
downloadcpython-034f6cf10c53f11cdb0f1fd42d279122cdb8ebaf.zip
cpython-034f6cf10c53f11cdb0f1fd42d279122cdb8ebaf.tar.gz
cpython-034f6cf10c53f11cdb0f1fd42d279122cdb8ebaf.tar.bz2
Add PyUnicode_Copy() function, include it to the public API
Diffstat (limited to 'Include')
-rw-r--r--Include/unicodeobject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index a2c07f5..9f3f66d 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -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.