diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Includes/libcpp/string.pxd | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/libcpp/string.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Includes/libcpp/string.pxd | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/contrib/tools/cython/Cython/Includes/libcpp/string.pxd b/contrib/tools/cython/Cython/Includes/libcpp/string.pxd index a894144f1f..5f965e8d97 100644 --- a/contrib/tools/cython/Cython/Includes/libcpp/string.pxd +++ b/contrib/tools/cython/Cython/Includes/libcpp/string.pxd @@ -1,13 +1,13 @@ - -# deprecated cimport for backwards compatibility: -from libc.string cimport const_char - + +# deprecated cimport for backwards compatibility: +from libc.string cimport const_char + cdef extern from "<string>" namespace "std::string" nogil: const size_t npos - -cdef extern from "<string>" namespace "std" nogil: - cdef cppclass string: - + +cdef extern from "<string>" namespace "std" nogil: + cdef cppclass string: + cppclass iterator: iterator() char& operator*() @@ -54,19 +54,19 @@ cdef extern from "<string>" namespace "std" nogil: reverse_iterator rend() const_reverse_iterator const_rend "rend"() - const char* c_str() - const char* data() - size_t size() - size_t max_size() - size_t length() + const char* c_str() + const char* data() + size_t size() + size_t max_size() + size_t length() void resize(size_t) except + void resize(size_t, char) except + void shrink_to_fit() except + - size_t capacity() + size_t capacity() void reserve(size_t) except + - void clear() - bint empty() - + void clear() + bint empty() + iterator erase(iterator first, iterator last) iterator erase(iterator p) iterator erase(const_iterator first, const_iterator last) @@ -74,7 +74,7 @@ cdef extern from "<string>" namespace "std" nogil: string& erase(size_t pos, size_t len) except + string& erase(size_t pos) except + string& erase() except + - + char& at(size_t pos) except + char& operator[](size_t pos) char& front() @@ -85,22 +85,22 @@ cdef extern from "<string>" namespace "std" nogil: int compare(const char* s) except + int compare(size_t pos, size_t len, const char* s) except + int compare(size_t pos, size_t len, const char* s , size_t n) except + - + string& append(const string& s) except + string& append(const string& s, size_t subpos, size_t sublen) except + string& append(const char* s) except + string& append(const char* s, size_t n) except + string& append(size_t n, char c) except + - + 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& insert(size_t pos, const string& s, size_t subpos, size_t sublen) except + string& insert(size_t pos, const string& s) except + string& insert(size_t pos, const char* s, size_t n) except + @@ -108,10 +108,10 @@ cdef extern from "<string>" namespace "std" nogil: string& insert(size_t pos, size_t n, char c) except + void insert(iterator p, size_t n, char c) except + iterator insert(iterator p, char c) except + - + size_t copy(char* s, size_t len, size_t pos) except + size_t copy(char* s, size_t len) except + - + size_t find(const string& s, size_t pos) size_t find(const string& s) size_t find(const char* s, size_t pos, size_t n) @@ -119,39 +119,39 @@ cdef extern from "<string>" namespace "std" nogil: size_t find(const char* s) size_t find(char c, size_t pos) size_t find(char c) - + size_t rfind(const string&, size_t pos) size_t rfind(const string&) size_t rfind(const char* s, size_t pos, size_t n) size_t rfind(const char* s, size_t pos) size_t rfind(const char* s) size_t rfind(char c, size_t pos) - size_t rfind(char c) - + size_t rfind(char c) + size_t find_first_of(const string&, size_t pos) size_t find_first_of(const string&) size_t find_first_of(const char* s, size_t pos, size_t n) size_t find_first_of(const char* s, size_t pos) size_t find_first_of(const char* s) size_t find_first_of(char c, size_t pos) - size_t find_first_of(char c) - + size_t find_first_of(char c) + size_t find_first_not_of(const string& s, size_t pos) size_t find_first_not_of(const string& s) size_t find_first_not_of(const char* s, size_t pos, size_t n) size_t find_first_not_of(const char* s, size_t pos) size_t find_first_not_of(const char*) size_t find_first_not_of(char c, size_t pos) - size_t find_first_not_of(char c) - + size_t find_first_not_of(char c) + size_t find_last_of(const string& s, size_t pos) size_t find_last_of(const string& s) size_t find_last_of(const char* s, size_t pos, size_t n) size_t find_last_of(const char* s, size_t pos) size_t find_last_of(const char* s) size_t find_last_of(char c, size_t pos) - size_t find_last_of(char c) - + size_t find_last_of(char c) + size_t find_last_not_of(const string& s, size_t pos) size_t find_last_not_of(const string& s) size_t find_last_not_of(const char* s, size_t pos, size_t n) @@ -159,33 +159,33 @@ cdef extern from "<string>" namespace "std" nogil: size_t find_last_not_of(const char* s) size_t find_last_not_of(char c, size_t pos) size_t find_last_not_of(char c) - + string substr(size_t pos, size_t len) except + string substr(size_t pos) except + - string substr() - + string substr() + #string& operator= (const string&) #string& operator= (const char*) - #string& operator= (char) - + #string& operator= (char) + string operator+ (const string&) except + string operator+ (const char*) except + - + bint operator==(const string&) bint operator==(const char*) - + bint operator!= (const string&) bint operator!= (const char*) - + bint operator< (const string&) bint operator< (const char*) - + bint operator> (const string&) bint operator> (const char*) - + bint operator<= (const string&) bint operator<= (const char*) - + bint operator>= (const string&) bint operator>= (const char*) |