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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f5b096d0
Commit
f5b096d0
authored
Oct 26, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt some C-API declarations that used to have Py_UNICODE arguments to Py3.3 which uses Py_UCS4
parent
9369668f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
Cython/Includes/cpython/unicode.pxd
Cython/Includes/cpython/unicode.pxd
+19
-16
No files found.
Cython/Includes/cpython/unicode.pxd
View file @
f5b096d0
...
...
@@ -25,57 +25,60 @@ cdef extern from *:
char
*
PyUnicode_AS_DATA
(
object
o
)
# Return 1 or 0 depending on whether ch is a whitespace character.
bint
Py_UNICODE_ISSPACE
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISSPACE
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is a lowercase character.
bint
Py_UNICODE_ISLOWER
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISLOWER
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is an uppercase character.
bint
Py_UNICODE_ISUPPER
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISUPPER
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is a titlecase character.
bint
Py_UNICODE_ISTITLE
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISTITLE
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is a linebreak character.
bint
Py_UNICODE_ISLINEBREAK
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISLINEBREAK
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is a decimal character.
bint
Py_UNICODE_ISDECIMAL
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISDECIMAL
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is a digit character.
bint
Py_UNICODE_ISDIGIT
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISDIGIT
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is a numeric character.
bint
Py_UNICODE_ISNUMERIC
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISNUMERIC
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is an alphabetic character.
bint
Py_UNICODE_ISALPHA
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISALPHA
(
Py_U
CS4
ch
)
# Return 1 or 0 depending on whether ch is an alphanumeric character.
bint
Py_UNICODE_ISALNUM
(
Py_U
NICODE
ch
)
bint
Py_UNICODE_ISALNUM
(
Py_U
CS4
ch
)
# Return the character ch converted to lower case.
Py_UNICODE
Py_UNICODE_TOLOWER
(
Py_UNICODE
ch
)
# Used to return a Py_UNICODE value before Py3.3.
Py_UCS4
Py_UNICODE_TOLOWER
(
Py_UCS4
ch
)
# Return the character ch converted to upper case.
Py_UNICODE
Py_UNICODE_TOUPPER
(
Py_UNICODE
ch
)
# Used to return a Py_UNICODE value before Py3.3.
Py_UCS4
Py_UNICODE_TOUPPER
(
Py_UCS4
ch
)
# Return the character ch converted to title case.
Py_UNICODE
Py_UNICODE_TOTITLE
(
Py_UNICODE
ch
)
# Used to return a Py_UNICODE value before Py3.3.
Py_UCS4
Py_UNICODE_TOTITLE
(
Py_UCS4
ch
)
# Return the character ch converted to a decimal positive
# integer. Return -1 if this is not possible. This macro does not
# raise exceptions.
int
Py_UNICODE_TODECIMAL
(
Py_U
NICODE
ch
)
int
Py_UNICODE_TODECIMAL
(
Py_U
CS4
ch
)
# Return the character ch converted to a single digit
# integer. Return -1 if this is not possible. This macro does not
# raise exceptions.
int
Py_UNICODE_TODIGIT
(
Py_U
NICODE
ch
)
int
Py_UNICODE_TODIGIT
(
Py_U
CS4
ch
)
# Return the character ch converted to a double. Return -1.0 if
# this is not possible. This macro does not raise exceptions.
double
Py_UNICODE_TONUMERIC
(
Py_U
NICODE
ch
)
double
Py_UNICODE_TONUMERIC
(
Py_U
CS4
ch
)
# To create Unicode objects and access their basic sequence
# properties, use these APIs:
...
...
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