Commit 9faf0fd7 authored by Thomas A Caswell's avatar Thomas A Caswell Committed by Stefan Behnel

Add missing "PyUnicode_GET_LENGTH" to unicode.pxd (GH-3692)

parent bba78fb8
...@@ -10,8 +10,19 @@ cdef extern from *: ...@@ -10,8 +10,19 @@ cdef extern from *:
# Return the size of the object. o has to be a PyUnicodeObject # Return the size of the object. o has to be a PyUnicodeObject
# (not checked). # (not checked).
#
# Deprecated since version 3.3, will be removed in version 3.10:
# Part of the old-style Unicode API, please migrate to using
# PyUnicode_GET_LENGTH().
Py_ssize_t PyUnicode_GET_SIZE(object o) Py_ssize_t PyUnicode_GET_SIZE(object o)
# Return the length of the Unicode string, in code points. o has
# to be a Unicode object in the “canonical” representation (not
# checked).
#
# New in version 3.3.
Py_ssize_t PyUnicode_GET_LENGTH(object o)
# Return the size of the object's internal buffer in bytes. o has # Return the size of the object's internal buffer in bytes. o has
# to be a PyUnicodeObject (not checked). # to be a PyUnicodeObject (not checked).
Py_ssize_t PyUnicode_GET_DATA_SIZE(object o) Py_ssize_t PyUnicode_GET_DATA_SIZE(object o)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment