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
88b9af1b
Commit
88b9af1b
authored
Jul 07, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
std::string.c_str() actually returns a 'const char*', add declaration of std::string.data() method
parent
7af9d486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Cython/Includes/libcpp/string.pxd
Cython/Includes/libcpp/string.pxd
+4
-1
No files found.
Cython/Includes/libcpp/string.pxd
View file @
88b9af1b
from
libc.string
cimport
const_char
cdef
extern
from
"<string>"
namespace
"std"
:
size_t
npos
=
-
1
...
...
@@ -10,7 +12,8 @@ cdef extern from "<string>" namespace "std":
# as a string formed by a repetition of character c, n times.
string
(
size_t
,
char
)
char
*
c_str
()
nogil
const_char
*
c_str
()
nogil
const_char
*
data
()
nogil
size_t
size
()
nogil
size_t
max_size
()
nogil
size_t
length
()
nogil
...
...
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