File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,22 @@ bool str_base::endswith(object_cref suffix) const
162162 return result;
163163}
164164
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+ if (PyErr_Occurred ())
177+ throw_error_already_set ();
178+ return result;
179+ }
180+
165181BOOST_PYTHON_DEFINE_STR_METHOD (expandtabs, 0 )
166182BOOST_PYTHON_DEFINE_STR_METHOD(expandtabs, 1 )
167183
You can’t perform that action at this time.
0 commit comments