From 58b5e84d52bc15ff1cae26ecff36e5a99d6715b6 Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Fri, 26 May 2006 19:24:53 +0000 Subject: needforspeed: stringlib refactoring, continued. added count and find helpers; updated unicodeobject to use stringlib_count --- Objects/stringobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Objects/stringobject.c') diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 5d57f15566..75325ab84a 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1548,7 +1548,7 @@ string_partition(PyStringObject *self, PyObject *sep_obj) else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) return NULL; - return partition( + return stringlib_partition( (PyObject*) self, PyString_AS_STRING(self), PyString_GET_SIZE(self), sep_obj, sep, sep_len @@ -1579,7 +1579,7 @@ string_rpartition(PyStringObject *self, PyObject *sep_obj) else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) return NULL; - return rpartition( + return stringlib_rpartition( (PyObject*) self, PyString_AS_STRING(self), PyString_GET_SIZE(self), sep_obj, sep, sep_len -- cgit v1.2.1