Skip to content
Snippets Groups Projects
Commit 38fdcf586b71 authored by Thomas A Caswell's avatar Thomas A Caswell
Browse files

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

parent 25e841a6a4e8
No related branches found
No related tags found
No related merge requests found
......@@ -10,5 +10,9 @@
# Return the size of the object. o has to be a PyUnicodeObject
# (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)
......@@ -13,5 +17,12 @@
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
# to be a PyUnicodeObject (not checked).
Py_ssize_t PyUnicode_GET_DATA_SIZE(object o)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment