annotate lib/swig/swigwin-2.0.11/Lib/std/std_basic_string.i @ 1980:c1c74df0a33e

changing most of auto types to their actual types
author Grumpy7
date Wed, 30 Oct 2013 00:47:37 -0700
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 %include <exception.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 %include <std_container.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 %include <std_alloc.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 %include <std_char_traits.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 %{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 #include <string>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 %}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 namespace std
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 %naturalvar basic_string;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 namespace std {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 template <class _CharT, class _Traits = char_traits<_CharT>, typename _Alloc = allocator<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 class basic_string
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 #if !defined(SWIG_STD_MODERN_STL) || defined(SWIG_STD_NOMODERN_STL)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 %ignore push_back;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 %ignore clear;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 %ignore compare;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 %ignore append;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 public:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 typedef size_t size_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 typedef ptrdiff_t difference_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 typedef _CharT value_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 typedef value_type reference;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 typedef value_type const_reference;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 typedef _Alloc allocator_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 static const size_type npos;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 #ifdef SWIG_EXPORT_ITERATOR_METHODS
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 class iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 class reverse_iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 class const_iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 class const_reverse_iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 %traits_swigtype(_CharT);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 %fragment(SWIG_Traits_frag(_CharT));
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 basic_string(const _CharT* __s, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 // Capacity:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 size_type length() const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 size_type max_size() const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 size_type capacity() const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 void reserve(size_type __res_arg = 0);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 // Modifiers:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 append(const basic_string& __str);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 append(const basic_string& __str, size_type __pos, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 append(const _CharT* __s, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 append(size_type __n, _CharT __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79 assign(const basic_string& __str);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 assign(const basic_string& __str, size_type __pos, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 assign(const _CharT* __s, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88 insert(size_type __pos1, const basic_string& __str);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91 insert(size_type __pos1, const basic_string& __str,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 size_type __pos2, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95 insert(size_type __pos, const _CharT* __s, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 insert(size_type __pos, size_type __n, _CharT __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 erase(size_type __pos = 0, size_type __n = npos);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 replace(size_type __pos, size_type __n, const basic_string& __str);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 replace(size_type __pos1, size_type __n1, const basic_string& __str,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108 size_type __pos2, size_type __n2);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111 replace(size_type __pos, size_type __n1, const _CharT* __s,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 size_type __n2);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 copy(_CharT* __s, size_type __n, size_type __pos = 0) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121 // String operations:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122 const _CharT* c_str() const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125 find(const _CharT* __s, size_type __pos, size_type __n) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128 find(const basic_string& __str, size_type __pos = 0) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131 find(_CharT __c, size_type __pos = 0) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 rfind(const basic_string& __str, size_type __pos = npos) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137 rfind(const _CharT* __s, size_type __pos, size_type __n) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 rfind(_CharT __c, size_type __pos = npos) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
142 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
143 find_first_of(const basic_string& __str, size_type __pos = 0) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
144
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
145 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
146 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
147
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
148 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
149 find_first_of(_CharT __c, size_type __pos = 0) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
150
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
151 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
152 find_last_of(const basic_string& __str, size_type __pos = npos) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
153
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
154 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
155 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
156
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
157 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
158 find_last_of(_CharT __c, size_type __pos = npos) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
159
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
160 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
161 find_first_not_of(const basic_string& __str, size_type __pos = 0) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
162
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
163 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
164 find_first_not_of(const _CharT* __s, size_type __pos,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
165 size_type __n) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
166
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
167 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
168 find_first_not_of(_CharT __c, size_type __pos = 0) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
169
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
170 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
171 find_last_not_of(const basic_string& __str, size_type __pos = npos) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
172
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
173 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
174 find_last_not_of(const _CharT* __s, size_type __pos,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
175 size_type __n) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
176
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
177 size_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
178 find_last_not_of(_CharT __c, size_type __pos = npos) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
179
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
180 basic_string
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
181 substr(size_type __pos = 0, size_type __n = npos) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
182
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
183 int
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
184 compare(const basic_string& __str) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
185
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
186 int
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
187 compare(size_type __pos, size_type __n, const basic_string& __str) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
188
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
189 int
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
190 compare(size_type __pos1, size_type __n1, const basic_string& __str,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
191 size_type __pos2, size_type __n2) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
192
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
193
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
194 %ignore pop_back();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
195 %ignore front() const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
196 %ignore back() const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
197 %ignore basic_string(size_type n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
198 %std_sequence_methods_val(basic_string);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
199
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
200
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
201 %ignore pop();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
202
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
203
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
204 #ifdef %swig_basic_string
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
205 // Add swig/language extra methods
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
206 %swig_basic_string(std::basic_string<_CharT, _Traits, _Alloc >);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
207 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
208
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
209 #ifdef SWIG_EXPORT_ITERATOR_METHODS
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
210
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
211
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
212 class iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
213 class reverse_iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
214 class const_iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
215 class const_reverse_iterator;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
216
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
217
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
218 void
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
219 insert(iterator __p, size_type __n, _CharT __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
220
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
221 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
222 replace(iterator __i1, iterator __i2, const basic_string& __str);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
223
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
224 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
225 replace(iterator __i1, iterator __i2, const _CharT* __s, size_type __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
226
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
227 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
228 replace(iterator __i1, iterator __i2, size_type __n, _CharT __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
229
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
230
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
231 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
232 replace(iterator __i1, iterator __i2, const _CharT* __k1, const _CharT* __k2);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
233
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
234 basic_string&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
235 replace(iterator __i1, iterator __i2, const_iterator __k1, const_iterator __k2);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
236 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
237
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
238 basic_string& operator +=(const basic_string& v);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
239
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
240 %newobject __add__;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
241 %newobject __radd__;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
242 %extend {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
243
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
244 std::basic_string<_CharT,_Traits,_Alloc >* __add__(const basic_string& v) {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
245 std::basic_string<_CharT,_Traits,_Alloc >* res = new std::basic_string<_CharT,_Traits,_Alloc >(*self);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
246 *res += v;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
247 return res;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
248 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
249
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
250 std::basic_string<_CharT,_Traits,_Alloc >* __radd__(const basic_string& v) {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
251 std::basic_string<_CharT,_Traits,_Alloc >* res = new std::basic_string<_CharT,_Traits,_Alloc >(v);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
252 *res += *self;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
253 return res;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
254 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
255
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
256 std::basic_string<_CharT,_Traits,_Alloc > __str__() {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
257 return *self;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
258 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
259
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
260 std::basic_ostream<_CharT, std::char_traits<_CharT> >&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
261 __rlshift__(std::basic_ostream<_CharT, std::char_traits<_CharT> >& out) {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
262 out << *self;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
263 return out;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
264 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
265 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
266
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
267 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
268 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
269
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
270