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
Boxiang Sun
cython
Commits
968226ac
Commit
968226ac
authored
Oct 10, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend PyUnicode C-API declarations
parent
22a54c70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Cython/Includes/cpython/unicode.pxd
Cython/Includes/cpython/unicode.pxd
+15
-0
No files found.
Cython/Includes/cpython/unicode.pxd
View file @
968226ac
...
...
@@ -525,3 +525,18 @@ cdef extern from *:
#
# New in version 3.3.
bytes
PyUnicode_EncodeCodePage
(
int
code_page
,
object
unicode
,
const
char
*
errors
)
# Py_UCS4 helpers (new in CPython 3.3)
# These utility functions work on strings of Py_UCS4 characters and
# otherwise behave like the C standard library functions with the same name.
size_t
Py_UCS4_strlen
(
const
Py_UCS4
*
u
)
Py_UCS4
*
Py_UCS4_strcpy
(
Py_UCS4
*
s1
,
const
Py_UCS4
*
s2
)
Py_UCS4
*
Py_UCS4_strncpy
(
Py_UCS4
*
s1
,
const
Py_UCS4
*
s2
,
size_t
n
)
Py_UCS4
*
Py_UCS4_strcat
(
Py_UCS4
*
s1
,
const
Py_UCS4
*
s2
)
int
Py_UCS4_strcmp
(
const
Py_UCS4
*
s1
,
const
Py_UCS4
*
s2
)
int
Py_UCS4_strncmp
(
const
Py_UCS4
*
s1
,
const
Py_UCS4
*
s2
,
size_t
n
)
Py_UCS4
*
Py_UCS4_strchr
(
const
Py_UCS4
*
s
,
Py_UCS4
c
)
Py_UCS4
*
Py_UCS4_strrchr
(
const
Py_UCS4
*
s
,
Py_UCS4
c
)
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