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
Gwenaël Samain
cython
Commits
454d5be2
Commit
454d5be2
authored
Jun 29, 2012
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't need terminating null for Python conversion.
parent
6c21bf3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Utility/CppConvert.pyx
Cython/Utility/CppConvert.pyx
+2
-2
No files found.
Cython/Utility/CppConvert.pyx
View file @
454d5be2
...
@@ -18,12 +18,12 @@ cdef string {{cname}}(object o) except *:
...
@@ -18,12 +18,12 @@ cdef string {{cname}}(object o) except *:
#from libcpp.string cimport string
#from libcpp.string cimport string
cdef
extern
from
*
:
cdef
extern
from
*
:
cdef
cppclass
string
"const std::string"
:
cdef
cppclass
string
"const std::string"
:
char
*
c_str
()
char
*
data
()
size_t
size
()
size_t
size
()
@
cname
(
"{{cname}}"
)
@
cname
(
"{{cname}}"
)
cdef
object
{{
cname
}}(
string
&
s
):
cdef
object
{{
cname
}}(
string
&
s
):
return
s
.
c_str
()[:
s
.
size
()]
return
s
.
data
()[:
s
.
size
()]
#################### vector.from_py ####################
#################### vector.from_py ####################
...
...
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