2 # deprecated cimport for backwards compatibility:
3 from libc.string cimport const_char
6 cdef extern from "<string>" namespace "std":
11 string() nogil except +
12 string(char *) nogil except +
13 string(char *, size_t) nogil except +
14 string(string&) nogil except +
15 # as a string formed by a repetition of character c, n times.
16 string(size_t, char) nogil except +
18 const char* c_str() nogil
19 const char* data() nogil
21 size_t max_size() nogil
23 void resize(size_t) nogil
24 void resize(size_t, char c) nogil
25 size_t capacity() nogil
26 void reserve(size_t) nogil
30 char& at(size_t) nogil
31 char& operator[](size_t) nogil
32 int compare(string&) nogil
34 string& append(string&) nogil
35 string& append(string&, size_t, size_t) nogil
36 string& append(char *) nogil
37 string& append(char *, size_t) nogil
38 string& append(size_t, char) nogil
40 void push_back(char c) nogil
42 string& assign (string&) nogil
43 string& assign (string&, size_t, size_t) nogil
44 string& assign (char *, size_t) nogil
45 string& assign (char *) nogil
46 string& assign (size_t n, char c) nogil
48 string& insert(size_t, string&) nogil
49 string& insert(size_t, string&, size_t, size_t) nogil
50 string& insert(size_t, char* s, size_t) nogil
53 string& insert(size_t, char* s) nogil
54 string& insert(size_t, size_t, char c) nogil
56 size_t copy(char *, size_t, size_t) nogil
58 size_t find(string&) nogil
59 size_t find(string&, size_t) nogil
60 size_t find(char*, size_t pos, size_t) nogil
61 size_t find(char*, size_t pos) nogil
62 size_t find(char, size_t pos) nogil
64 size_t rfind(string&, size_t) nogil
65 size_t rfind(char* s, size_t, size_t) nogil
66 size_t rfind(char*, size_t pos) nogil
67 size_t rfind(char c, size_t) nogil
68 size_t rfind(char c) nogil
70 size_t find_first_of(string&, size_t) nogil
71 size_t find_first_of(char* s, size_t, size_t) nogil
72 size_t find_first_of(char*, size_t pos) nogil
73 size_t find_first_of(char c, size_t) nogil
74 size_t find_first_of(char c) nogil
76 size_t find_first_not_of(string&, size_t) nogil
77 size_t find_first_not_of(char* s, size_t, size_t) nogil
78 size_t find_first_not_of(char*, size_t pos) nogil
79 size_t find_first_not_of(char c, size_t) nogil
80 size_t find_first_not_of(char c) nogil
82 size_t find_last_of(string&, size_t) nogil
83 size_t find_last_of(char* s, size_t, size_t) nogil
84 size_t find_last_of(char*, size_t pos) nogil
85 size_t find_last_of(char c, size_t) nogil
86 size_t find_last_of(char c) nogil
88 size_t find_last_not_of(string&, size_t) nogil
89 size_t find_last_not_of(char* s, size_t, size_t) nogil
90 size_t find_last_not_of(char*, size_t pos) nogil
92 string substr(size_t, size_t) nogil
94 string substr(size_t) nogil
96 size_t find_last_not_of(char c, size_t) nogil
97 size_t find_last_not_of(char c) nogil
99 #string& operator= (string&)
100 #string& operator= (char*)
101 #string& operator= (char)
103 string operator+ (string& rhs) nogil
104 string operator+ (char* rhs) nogil
106 bint operator==(string&) nogil
107 bint operator==(char*) nogil
109 bint operator!= (string& rhs ) nogil
110 bint operator!= (char* ) nogil
112 bint operator< (string&) nogil
113 bint operator< (char*) nogil
115 bint operator> (string&) nogil
116 bint operator> (char*) nogil
118 bint operator<= (string&) nogil
119 bint operator<= (char*) nogil
121 bint operator>= (string&) nogil
122 bint operator>= (char*) nogil