We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
str::endswith()
1 parent bc2f77a commit 03adaeeCopy full SHA for 03adaee
1 file changed
src/str.cpp
@@ -162,6 +162,22 @@ bool str_base::endswith(object_cref suffix) const
162
return result;
163
}
164
165
+bool str_base::endswith(object_cref suffix, object_cref start) const
166
+{
167
+ bool result = _BOOST_PYTHON_ASLONG(this->attr("endswith")(suffix,start).ptr());
168
+ if (PyErr_Occurred())
169
+ throw_error_already_set();
170
+ return result;
171
+}
172
+
173
+bool str_base::endswith(object_cref suffix, object_cref start, object_cref end) const
174
175
+ bool result = _BOOST_PYTHON_ASLONG(this->attr("endswith")(suffix,start,end).ptr());
176
177
178
179
180
181
BOOST_PYTHON_DEFINE_STR_METHOD(expandtabs, 0)
182
BOOST_PYTHON_DEFINE_STR_METHOD(expandtabs, 1)
183
0 commit comments