diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-13 21:52:00 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-07-13 21:53:35 +0200 |
commit | 22891e074d0742a85aaa652560e3f9909e595c62 (patch) | |
tree | d817d463e86e9acfc48147c2064090a7e73dde5a /Cython/Includes/libcpp | |
parent | a46ed3f401b0f7520566cacd25261d612784b3a4 (diff) | |
parent | 06607884c9653da58c9c352dc9a76a3f1d4a02ad (diff) | |
download | cython-22891e074d0742a85aaa652560e3f9909e595c62.tar.gz |
Merge branch '0.29.x'
Diffstat (limited to 'Cython/Includes/libcpp')
-rw-r--r-- | Cython/Includes/libcpp/string.pxd | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Cython/Includes/libcpp/string.pxd b/Cython/Includes/libcpp/string.pxd index b5c5c5ee1..a894144f1 100644 --- a/Cython/Includes/libcpp/string.pxd +++ b/Cython/Includes/libcpp/string.pxd @@ -7,6 +7,7 @@ cdef extern from "<string>" namespace "std::string" nogil: cdef extern from "<string>" namespace "std" nogil: cdef cppclass string: + cppclass iterator: iterator() char& operator*() @@ -15,6 +16,7 @@ cdef extern from "<string>" namespace "std" nogil: iterator operator--() bint operator==(iterator) bint operator!=(iterator) + cppclass reverse_iterator: char& operator*() iterator operator++() @@ -27,8 +29,10 @@ cdef extern from "<string>" namespace "std" nogil: bint operator>(reverse_iterator) bint operator<=(reverse_iterator) bint operator>=(reverse_iterator) + cppclass const_iterator(iterator): pass + cppclass const_reverse_iterator(reverse_iterator): pass @@ -62,6 +66,7 @@ cdef extern from "<string>" namespace "std" nogil: void reserve(size_t) except + void clear() bint empty() + iterator erase(iterator first, iterator last) iterator erase(iterator p) iterator erase(const_iterator first, const_iterator last) @@ -90,11 +95,11 @@ cdef extern from "<string>" namespace "std" nogil: void push_back(char c) except + void pop_back() - string& assign (const string& s) except + - string& assign (const string& s, size_t subpos, size_t sublen) except + - string& assign (const char* s, size_t n) except + - string& assign (const char* s) except + - string& assign (size_t n, char c) except + + string& assign(const string& s) except + + string& assign(const string& s, size_t subpos, size_t sublen) except + + string& assign(const char* s, size_t n) except + + string& assign(const char* s) except + + string& assign(size_t n, char c) except + string& insert(size_t pos, const string& s, size_t subpos, size_t sublen) except + string& insert(size_t pos, const string& s) except + |