Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
d48b30fd
Commit
d48b30fd
authored
Jun 23, 2019
by
Alex Willmer
Committed by
Stefan Behnel
Jun 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare PyUnicode_FromStringAndSize and PyUnicode_FromString (GH-3010)
parent
8ac1a6a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Cython/Includes/cpython/unicode.pxd
Cython/Includes/cpython/unicode.pxd
+8
-0
No files found.
Cython/Includes/cpython/unicode.pxd
View file @
d48b30fd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment