Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/cython/src/Cython/Includes/libcpp/string.pxd

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 # deprecated cimport for backwards compatibility:
3 from libc.string cimport const_char
4
5
6 cdef extern from "<string>" namespace "std":
7
8 size_t npos = -1
9
10 cdef cppclass string:
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 +
17
18 const char* c_str() nogil
19 const char* data() nogil
20 size_t size() nogil
21 size_t max_size() nogil
22 size_t length() 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
27 void clear() nogil
28 bint empty() nogil
29
30 char& at(size_t) nogil
31 char& operator[](size_t) nogil
32 int compare(string&) nogil
33
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
39
40 void push_back(char c) nogil
41
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
47
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
51
52
53 string& insert(size_t, char* s) nogil
54 string& insert(size_t, size_t, char c) nogil
55
56 size_t copy(char *, size_t, size_t) nogil
57
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
63
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
69
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
75
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
81
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
87
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
91
92 string substr(size_t, size_t) nogil
93 string substr() nogil
94 string substr(size_t) nogil
95
96 size_t find_last_not_of(char c, size_t) nogil
97 size_t find_last_not_of(char c) nogil
98
99 #string& operator= (string&)
100 #string& operator= (char*)
101 #string& operator= (char)
102
103 string operator+ (string& rhs) nogil
104 string operator+ (char* rhs) nogil
105
106 bint operator==(string&) nogil
107 bint operator==(char*) nogil
108
109 bint operator!= (string& rhs ) nogil
110 bint operator!= (char* ) nogil
111
112 bint operator< (string&) nogil
113 bint operator< (char*) nogil
114
115 bint operator> (string&) nogil
116 bint operator> (char*) nogil
117
118 bint operator<= (string&) nogil
119 bint operator<= (char*) nogil
120
121 bint operator>= (string&) nogil
122 bint operator>= (char*) nogil
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698