Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyFastANI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Larralde
PyFastANI
Commits
9fd4ab21
Commit
9fd4ab21
authored
3 years ago
by
Martin Larralde
Browse files
Options
Downloads
Patches
Plain Diff
Add missing Cython headers for the new PyUnicode API
parent
3657ed2b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfastani/_unicode.pxd
+31
-0
31 additions, 0 deletions
pyfastani/_unicode.pxd
with
31 additions
and
0 deletions
pyfastani/_unicode.pxd
0 → 100644
+
31
−
0
View file @
9fd4ab21
from
libc.stdint
cimport
uint8_t
,
uint16_t
,
uint32_t
cdef
extern
from
*
:
ctypedef
uint8_t
Py_UCS1
ctypedef
uint16_t
Py_UCS2
ctypedef
uint32_t
Py_UCS4
object
PyUnicode_New
(
Py_ssize_t
,
Py_UCS4
)
int
PyUnicode_WriteChar
(
object
,
Py_ssize_t
,
Py_UCS4
)
except
-
1
Py_UCS4
PyUnicode_ReadChar
(
object
,
Py_ssize_t
)
cdef
int
PyUnicode_1BYTE_KIND
cdef
int
PyUnicode_2BYTE_KIND
cdef
int
PyUnicode_4BYTE_KIND
ssize_t
PyUnicode_GET_LENGTH
(
object
)
int
PyUnicode_KIND
(
object
)
void
*
PyUnicode_DATA
(
object
)
void
PyUnicode_WRITE
(
int
kind
,
void
*
data
,
Py_ssize_t
index
,
Py_UCS4
value
)
nogil
Py_UCS4
PyUnicode_READ
(
int
kind
,
void
*
data
,
Py_ssize_t
index
)
nogil
Py_UCS1
*
PyUnicode_1BYTE_DATA
(
object
)
nogil
Py_UCS2
*
PyUnicode_2BYTE_DATA
(
object
)
nogil
Py_UCS4
*
PyUnicode_4BYTE_DATA
(
object
)
nogil
object
PyUnicode_FromStringAndSize
(
const
char
*
,
Py_ssize_t
)
object
PyUnicode_FromKindAndData
(
int
kind
,
const
void
*
buffer
,
Py_ssize_t
size
)
int
PyUnicode_READY
(
object
)
except
-
1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment