Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xavier Thompson
cython
Commits
88b9af1b
Commit
88b9af1b
authored
12 years ago
by
Stefan Behnel
Browse files
Options
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
...
...
This diff is collapsed.
Click to expand it.
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