Commit d48b30fd authored by Alex Willmer's avatar Alex Willmer Committed by Stefan Behnel

Declare PyUnicode_FromStringAndSize and PyUnicode_FromString (GH-3010)

parent 8ac1a6a5
......@@ -92,6 +92,14 @@ cdef extern from *:
# when u is NULL.
unicode PyUnicode_FromUnicode(Py_UNICODE *u, Py_ssize_t size)
# Similar to PyUnicode_FromUnicode(), but u points to UTF-8 encoded
# bytes
unicode PyUnicode_FromStringAndSize(const char *u, Py_ssize_t size)
# Similar to PyUnicode_FromUnicode(), but u points to null-terminated
# UTF-8 encoded bytes. The size is determined with strlen().
unicode PyUnicode_FromString(const char *u)
# Create a Unicode Object from the given Unicode code point ordinal.
#
# The ordinal must be in range(0x10000) on narrow Python builds
......
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