Commit 88b9af1b authored by Stefan Behnel's avatar Stefan Behnel

std::string.c_str() actually returns a 'const char*', add declaration of std::string.data() method

parent 7af9d486
from libc.string cimport const_char
cdef extern from "<string>" namespace "std": cdef extern from "<string>" namespace "std":
size_t npos = -1 size_t npos = -1
...@@ -10,7 +12,8 @@ cdef extern from "<string>" namespace "std": ...@@ -10,7 +12,8 @@ cdef extern from "<string>" namespace "std":
# as a string formed by a repetition of character c, n times. # as a string formed by a repetition of character c, n times.
string(size_t, char) string(size_t, char)
char* c_str() nogil const_char* c_str() nogil
const_char* data() nogil
size_t size() nogil size_t size() nogil
size_t max_size() nogil size_t max_size() nogil
size_t length() nogil size_t length() nogil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment